You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is also a (mostly) spurious warning emitted:
➜ sandbox git:(t9393) ✗ javac JavaAnnot.java
➜ sandbox git:(t9393) ✗ scalac Test.scala
Test.scala:1: warning: Implementation restriction: subclassing Classfile does not
make your annotation visible at runtime. If that is what
you want, you must write the annotation class in Java.
class C extends JavaAnnot {
^
one warning found
➜ sandbox git:(t9393) ✗ scala Test
java.lang.IncompatibleClassChangeError: class C has interface JavaAnnot as super class
at java.lang.ClassLoader.defineClass1(Native Method)