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

Object and local inner class disagree on InnerClass attributes #9251

Closed
scabug opened this issue Mar 26, 2015 · 5 comments
Closed

Object and local inner class disagree on InnerClass attributes #9251

scabug opened this issue Mar 26, 2015 · 5 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 26, 2015

When you call Foo.bar.apply of the following code, you get IncompatibleClassChangeError

object Foo {
  def bar() = () => {
    case class Zot(i: Int)

    classOf[Zot].getDeclaringClass
  }
}
java.lang.IncompatibleClassChangeError: Foo$ and Foo$$anonfun$bar$1$Zot$3 disagree on InnerClasses attribute

This javac bug evaluation might help in locating the bug http://bugs.java.com/view_bug.do?bug_id=2210448

@scabug
Copy link
Author

scabug commented Mar 26, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9251?orig=1
Reporter: Heikki Vesalainen (hvesalai)
Affected Versions: 2.11.4
Duplicates #9105

@scabug
Copy link
Author

scabug commented Mar 26, 2015

Heikki Vesalainen (hvesalai) said:
The workaround is obviously not having the local inner class within the anonymous function.

@scabug
Copy link
Author

scabug commented Mar 26, 2015

@scabug scabug closed this as completed Mar 26, 2015
@scabug
Copy link
Author

scabug commented Mar 26, 2015

Heikki Vesalainen (hvesalai) said:
I confirm it as fixed. I'm sorry for not trying this with the newest version in the first place.

@scabug
Copy link
Author

scabug commented Mar 26, 2015

@lrytz said:
no worries!

@scabug scabug added this to the 2.11.6 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants