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
% scalac a.scala
% scalac b.scala
% scala Test
java.lang.VerifyError:classA2 overrides final method g$1.()I
at java.lang.ClassLoader.defineClass1(NativeMethod)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
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)
Still in trunk naturally.
The text was updated successfully, but these errors were encountered:
@adriaanm said:
should name mangle the lambda lifted method to include the outer class's name
normally, don't need to include the class name since they should end up being private
they're public here because they're accessed from an inner class
[Thanks to Paul for the minimization below]
On Mon, Apr 9, 2012 at 9:48 AM, Jason Zaugg jzaugg@gmail.com wrote:
Thinking about how it could happen made it possible to reproduce it.
It's particularly evil because it only happens with separate
compilation. Here's the single file version. This has no
VerifyError.
But do it like this...
And off we go.
Still in trunk naturally.
The text was updated successfully, but these errors were encountered: