Skip to content
New issue

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

Got VerifyError when creating anon classs from ArrayBuffer #1037

Closed
scabug opened this issue Jun 12, 2008 · 3 comments
Closed

Got VerifyError when creating anon classs from ArrayBuffer #1037

scabug opened this issue Jun 12, 2008 · 3 comments

Comments

@scabug
Copy link

scabug commented Jun 12, 2008

Welcome to Scala version 2.7.1.final (Java HotSpot(TM) 64-Bit Server
VM, Java 1.6.0_01-dp).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import collection.mutable.ArrayBuffer
import collection.mutable.ArrayBuffer

scala> val ls = new ArrayBuffer[Int]{ override val initialSize = 100 }
java.lang.VerifyError: class $$anon$$1 overrides final method initialSize.()I
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
       at java.net.URLClassLoader.access$$000(URLClassLoader.ja...
@scabug
Copy link
Author

scabug commented Jun 12, 2008

@scabug
Copy link
Author

scabug commented Jun 17, 2008

Michael Pradel (pradel) said:
Works in trunk.

@scabug
Copy link
Author

scabug commented Jun 18, 2008

@blair said:
This appears to be fixed by r15371.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant