Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Java Interface Types on Rakudo #3298

Open
p6rt opened this issue Dec 27, 2013 · 1 comment
Open

Issue with Java Interface Types on Rakudo #3298

p6rt opened this issue Dec 27, 2013 · 1 comment
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Dec 27, 2013

Migrated from rt.perl.org#120879 (status was 'new')

Searchable as RT120879$

@p6rt
Copy link
Author

p6rt commented Dec 27, 2013

From fernando.ribeiro@upic.com.br

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

@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant