JVM_IR: No EnclosingMethod attribute for member classes.

The comment in the code is correct that EnclosingMethod
attributes should only be generated for local and
anonymous classes. We were generating them for member
classes as well which leads to invalid class files.

With this change I had to mute one more tests. That is
because we lose the parent method and therefore we
see a class as a member class instead of a local class.
With the old descriptor based check that test still
passes.
This commit is contained in:
Mads Ager
2019-05-15 15:33:08 +02:00
committed by max-kammerer
parent 79aa954682
commit d2c372a4f7
4 changed files with 2 additions and 3 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
package test
class WithClassObject {