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
If at some point i need to get into details of my use case, please let me know, but i was able to isolate the problem which is now reproducible with this simple code
If I comment apply() method or remove with CommonTrait it works fine, otherwise i get this:
Exception in thread "main" java.lang.VerifyError:classFoo$$anon$1 overrides final method foo.(Ljava/lang/Object;)LDecoratedFoo;
at java.lang.ClassLoader.defineClass1(NativeMethod)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
. . ..
I've classified it as a Bug for now, but as I am in the process of learning Scala I may very well be doing something wrong, so please let me know
The text was updated successfully, but these errors were encountered:
@paulp said:
A verify error is always a bug. This one is caused by a corner case with static forwarders, where "foo" looks safe but is not. Right now you can work around it by compiling with -Xno-forwarders.
Commit Message Bot (anonymous) said:
(extempore in r25392) Changed forwarders not to generate final methods, which otherwise would
induce VerifyErrors anytime the companion class was subclassed and had a
method with the same signature. Closes #4827, no review.
If at some point i need to get into details of my use case, please let me know, but i was able to isolate the problem which is now reproducible with this simple code
If I comment apply() method or remove with CommonTrait it works fine, otherwise i get this:
I've classified it as a Bug for now, but as I am in the process of learning Scala I may very well be doing something wrong, so please let me know
The text was updated successfully, but these errors were encountered: