-
Notifications
You must be signed in to change notification settings - Fork 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
IncompatibleClassChangeError on getDeclaringClass #7994
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7994?orig=1
|
Matt Hicks (darkfrog) said: |
@som-snytt said: |
Matt Hicks (darkfrog) said: |
closing backend tickets which are likely stale; comment and/or reopen if you have evidence this is still applicable |
Fixed, the 2.12 backend got an onvehaul of InnerClass attribute computation. Let's verify the result is correct and add a regression test to https://github.com/scala/scala/tree/v2.13.0-M3/test/files/jvm/innerClassAttribute |
@lrytz did this end up getting verified as fixed? |
It doesn't crash, at least. I'll leave it open in case
|
Empty seems wrong? I am ready to look at the issue, where are the relevant codes or files? thanks |
The two anonymous classes are both not "member" classes, so @jxnu-liguobin you could add a test case, that would be welcome. Just tested with Java, it does the same: public class Test {
public static void main(String[] args) {
Object o = new MyTest() {
Object i = new MyTest() { };
};
}
}
class MyTest {
public MyTest() {
System.out.println(this.getClass().getName());
System.out.println(this.getClass().getDeclaringClass());
}
}
|
@lrytz |
test case for scala/bug#7994
Executing this simple snippet of code:
Results in:
The text was updated successfully, but these errors were encountered: