changeset 3512:2edcdbb2943a

Summary: With -XDGenerateValueAsReference option in effect class files should not be marked with ACC_VALUE
author sadayapalam
date Tue, 05 Jul 2016 15:28:16 +0530
parents ca533bf26159
children 9204dd938160
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	Mon Jul 04 18:14:21 2016 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Tue Jul 05 15:28:16 2016 +0530
@@ -1809,6 +1809,8 @@
             result &= ~STATIC;
             result |= ACC_SPECIES;
         }
+        if (foldValueAsReference)
+            result &= ~VALUE;
         return result;
     }