We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting a ClassCastException on a simple attempt to get annotations of a class.
ClassCastException
I've attached a zip with code that reproduces the problem. The trigger is simple:
public static void main(String[] args) { for (Object ann : MyCommand.class.getAnnotations()) { System.out.println(ann.getClass().getName()); } }
Running with java works just fine, with avian I get a ClassCastException:
# java -cp build/classes/java/main org.abiri.Main com.sun.proxy.$Proxy1 # avian -cp build/classes/java/main org.abiri.Main java/lang/ClassCastException: [B cannot be cast to [Ljava.lang.Object; at java/lang/Class.countAnnotations (line 686) at java/lang/Class.getAnnotations (line 693) at org/abiri/Main.main (line 5)
running on a macOS with avian installed via homebrew, version 1.2.0.
avian-bug.zip
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm getting a
ClassCastException
on a simple attempt to get annotations of a class.I've attached a zip with code that reproduces the problem. The trigger is simple:
Running with java works just fine, with avian I get a
ClassCastException
:running on a macOS with avian installed via homebrew, version 1.2.0.
avian-bug.zip
The text was updated successfully, but these errors were encountered: