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
Exception in thread "main" java.lang.AbstractMethodError: Method A.func()Ljava/lang/Object; is abstract
at A.func(A.java)
at Main$.main(A1.scala:14)
at Main.main(A1.scala)
The text was updated successfully, but these errors were encountered:
Compiler version
3.6.3-RC2
Minimized code
Output
Use
javap -c -s- v I1
to check the bytecode: (Simplified it a bit)public static java.lang.String func$(I1); descriptor: (LI1;)Ljava/lang/String; flags: ACC_PUBLIC, ACC_STATIC public java.lang.String func(); descriptor: ()Ljava/lang/String; flags: ACC_PUBLIC
Expectation
When
I1
is written by Java, the output is:Note that java does not generate static method
func$
here. But scalac misses a bridge method here.Further bug: java.lang.AbstractMethodError when implements
I1
with a Java classException in thread "main" java.lang.AbstractMethodError: Method A.func()Ljava/lang/Object; is abstract at A.func(A.java) at Main$.main(A1.scala:14) at Main.main(A1.scala)
The text was updated successfully, but these errors were encountered: