Skip to content

Duplicate method name&signature with lazy #21

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

Closed
scabug opened this issue Aug 29, 2007 · 2 comments
Closed

Duplicate method name&signature with lazy #21

scabug opened this issue Aug 29, 2007 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Aug 29, 2007

== Code ==

class C {
    lazy val g = new C {
        lazy val h = error("irrelevant")
    }
}

object Test extends Application {
    new C().g
}

== What happened ==

 java.lang.!ClassFormatError: Duplicate method name&signature in class file C$$$$anon$$0
	at java.lang.!ClassLoader.defineClass1(Native Method)
	at java.lang.!ClassLoader.defineClass(Unknown Source)
	at java.security.!SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$$000(Unknown Source)
	at java.net.URLClassLoader$$1.run(Unknown Source)
	at java.security.!AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.!ClassLoader.loadClass(Unknown Source)
	at java.lang.!ClassLoader.loadClass(Unknown Source)
	at java.lang.!ClassLoader.loadClassInternal(Unknown Source)
	at Test$$.<init>(Chain10.scala:10)
	at Test$$.<clinit>(Chain10.scala)
	at Test.main(Chain10.scala)
@scabug
Copy link
Author

scabug commented Aug 29, 2007

Imported From: https://issues.scala-lang.org/browse/SI-21?orig=1
Reporter: Eric Willigers (ewilligers)

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone 2.6.0 deleted

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

2 participants