Skip Menu |
Report information
Id: 120879
Status: new
Priority: 0/
Queue: perl6

Owner: jnthn [at] jnthn.net
Requestors: fernando.ribeiro [at] upic.com.br
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: JVM



Subject: Issue with Java Interface Types on Rakudo Perl
Download (untitled) / with headers
text/plain 671b
Consider the following code: use org::apache::activemq::ActiveMQConnectionFactory:from<java>:jar('activemq-all-5.9.0.jar'); my $connFactory = ActiveMQConnectionFactory.'constructor/new/(Ljava/lang/String;)V'('tcp://localhost:61616'); my $conn = $connFactory.'method/createConnection/()Ljavax/jms/Connection;'(); # javax.jms.Connection is an interface $conn.'method/close/()V'(); The last line fails with the following error: java.lang.IncompatibleClassChangeError: Found interface javax.jms.Connection, but class was expected [1] http://docs.oracle.com/javaee/7/api/javax/jms/ConnectionFactory.html [2] http://docs.oracle.com/javaee/7/api/javax/jms/Connection.html


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org