-
Notifications
You must be signed in to change notification settings - Fork 21
java.lang.IncompatibleClassChangeError when using Java-class, which implements @interface #8348
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8348?orig=1
|
@soc said (edited on Feb 27, 2014 2:03:56 PM UTC): |
Sergey Zaytsev (serghy) said: |
This appears to have been fixed as a by-product of scala/scala@7d51b3f. |
- scala/bug#5638 was fixed by something farther back than I can build. - scala/bug#8348 was fixed by scala#5251. - scala/bug#9291 was fixed by scala#6092.
When invoking method from instances of class, which implement interfaces, declared in Java as
public @interface SomeInterface
- then throwsjava.lang.IncompatibleClassChangeError
. But if use that in Java classes - all works fine. Now to solve this problem used workaround which use static methods from Java-class with additional argument of this-object.for example:
when disassembly
in scala call of method -> invokeinterface
in java call of method -> invokevirtual
Full bundle, which replicates this behaviour in bundle.zip, which attached
The text was updated successfully, but these errors were encountered: