changeset 54669:e79550bd57fb lworld

JDK-8221330: [lworld] Javac adds InnerClass attribute without appropriate value flag Author: sadayapalam
author dsimms
date Mon, 25 Mar 2019 18:35:34 +0100
parents c5e3f6ae4c01
children ecfe9065f490
files src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Tue Mar 19 09:32:58 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Mon Mar 25 18:35:34 2019 +0100
@@ -1061,6 +1061,8 @@
     /** Enter an inner class into the `innerClasses' set/queue.
      */
     void enterInner(ClassSymbol c) {
+        if (types.isLoxSymbol(c))
+            c = types.getValSymbol(c);
         if (c.type.isCompound()) {
             throw new AssertionError("Unexpected intersection type: " + c.type);
         }