commit | d92f20e7ce752561e581c2c9a51bcb5817f26adc | [log] [tgz] |
---|---|---|
author | Manoj Palat <manpalat@in.ibm.com> | Sun Mar 08 13:48:10 2020 -0400 |
committer | Manoj Palat <manpalat@in.ibm.com> | Sun Mar 08 13:50:47 2020 -0400 |
tree | 5a305740e92735795358c41a041c2cb705effdd6 | |
parent | 274629e31baf81131db0bde27ed8a15272b193a5 [diff] |
Bug 560569 - [14] generated record class file has some kind of weird side effect Change-Id: I5d923de9b0ffd476565e26e5e0322bd2c43484d4
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java index c5b5d8f..a478dea 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
@@ -5986,6 +5986,9 @@ if (this.bootstrapMethods != null) { this.bootstrapMethods.clear(); } + if (this.recordBootstrapMethods != null) { + this.recordBootstrapMethods.clear(); + } this.missingTypes = null; this.visitedTypes = null; }
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java index aacb0bb..aaa54e5 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java
@@ -175,6 +175,7 @@ classFile.referenceBinding = null; classFile.innerClassesBindings = null; classFile.bootstrapMethods = null; + classFile.recordBootstrapMethods = null; classFile.missingTypes = null; classFile.visitedTypes = null; }