--- old/common/bin/unshuffle_list.txt 2015-05-26 21:40:49.083831484 -0700
+++ new/common/bin/unshuffle_list.txt 2015-05-26 21:40:49.007831483 -0700
@@ -1301,7 +1301,6 @@
jdk/src/jdk.deploy.osx/macosx/native/libosx/Dispatch.m : jdk/src/macosx/native/com/apple/concurrent/Dispatch.m
jdk/src/jdk.deploy.osx/macosx/native/libosx/JavaAppLauncher.m : jdk/src/macosx/native/apple/launcher/JavaAppLauncher.m
jdk/src/jdk.deploy.osx/macosx/native/libosx/KeystoreImpl.m : jdk/src/macosx/native/apple/security/KeystoreImpl.m
-jdk/src/jdk.dev/share/classes/com/sun/tools/hat : jdk/src/share/classes/com/sun/tools/hat
jdk/src/jdk.hprof.agent/share/classes/com/sun/demo/jvmti/hprof : jdk/src/share/classes/com/sun/demo/jvmti/hprof
jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver : jdk/src/share/classes/com/sun/net/httpserver
jdk/src/jdk.httpserver/share/classes/sun/net/httpserver : jdk/src/share/classes/sun/net/httpserver
@@ -1486,16 +1485,16 @@
langtools/src/java.compiler/share/classes/javax/lang/model : langtools/src/share/classes/javax/lang/model
langtools/src/java.compiler/share/classes/javax/tools : langtools/src/share/classes/javax/tools
langtools/src/jdk.compiler/share/classes/com/sun/source : langtools/src/share/classes/com/sun/source
-langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile : langtools/src/share/classes/com/sun/tools/classfile
langtools/src/jdk.compiler/share/classes/com/sun/tools/doclint : langtools/src/share/classes/com/sun/tools/doclint
langtools/src/jdk.compiler/share/classes/com/sun/tools/doclint/resources : langtools/src/share/classes/com/sun/tools/doclint/resources
langtools/src/jdk.compiler/share/classes/com/sun/tools/javac : langtools/src/share/classes/com/sun/tools/javac
langtools/src/jdk.compiler/share/classes/com/sun/tools/javah : langtools/src/share/classes/com/sun/tools/javah
-langtools/src/jdk.compiler/share/classes/com/sun/tools/javap : langtools/src/share/classes/com/sun/tools/javap
langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac : langtools/src/share/classes/com/sun/tools/sjavac
-langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps : langtools/src/share/classes/com/sun/tools/jdeps
-langtools/src/jdk.dev/share/classes/com/sun/tools/jdeps/resources : langtools/src/share/classes/com/sun/tools/jdeps/resources
langtools/src/jdk.javadoc/share/classes/com/sun/javadoc : langtools/src/share/classes/com/sun/javadoc
langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets : langtools/src/share/classes/com/sun/tools/doclets
langtools/src/jdk.javadoc/share/classes/com/sun/tools/javadoc : langtools/src/share/classes/com/sun/tools/javadoc
+langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile : langtools/src/share/classes/com/sun/tools/classfile
+langtools/src/jdk.jdeps/share/classes/com/sun/tools/javap : langtools/src/share/classes/com/sun/tools/javap
+langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps : langtools/src/share/classes/com/sun/tools/jdeps
+langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources : langtools/src/share/classes/com/sun/tools/jdeps/resources
nashorn/src/jdk.scripting.nashorn/share/classes : nashorn/src
--- old/make/CheckModules.gmk 2015-05-26 21:40:49.455831489 -0700
+++ new/make/CheckModules.gmk 2015-05-26 21:40:49.379831488 -0700
@@ -29,7 +29,7 @@
include $(SPEC)
include MakeBase.gmk
-JDEPS_MODULES_XML := $(JDK_OUTPUTDIR)/modules/jdk.dev/com/sun/tools/jdeps/resources/jdeps-modules.xml
+JDEPS_MODULES_XML := $(JDK_OUTPUTDIR)/modules/jdk.jdeps/com/sun/tools/jdeps/resources/jdeps-modules.xml
#
# Verify access across module boundaries
--- old/make/CompileJavaModules.gmk 2015-05-26 21:40:49.779831494 -0700
+++ new/make/CompileJavaModules.gmk 2015-05-26 21:40:49.707831493 -0700
@@ -412,6 +412,12 @@
################################################################################
+jdk.jdeps_CLEAN_FILES := $(wildcard \
+ $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
+ $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
+
+################################################################################
+
jdk.jdi_EXCLUDES += \
com/sun/tools/example/debug/bdi \
com/sun/tools/example/debug/event \
--- old/make/Images.gmk 2015-05-26 21:40:50.111831499 -0700
+++ new/make/Images.gmk 2015-05-26 21:40:50.031831498 -0700
@@ -46,7 +46,7 @@
# tools
TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev jdk.javadoc jdk.jcmd jdk.jconsole \
- jdk.hotspot.agent jdk.hprof.agent jdk.jartool jdk.jdi jdk.jdwp.agent \
+ jdk.hotspot.agent jdk.hprof.agent jdk.jartool jdk.jdeps jdk.jdi jdk.jdwp.agent \
jdk.policytool jdk.rmic jdk.xml.bind jdk.xml.ws
ifeq ($(OPENJDK_TARGET_OS), windows)
--- old/make/Main.gmk 2015-05-26 21:40:50.443831504 -0700
+++ new/make/Main.gmk 2015-05-26 21:40:50.367831503 -0700
@@ -412,7 +412,7 @@
# Explicitly add dependencies for special targets
java.base-java: unpack-sec
- jdk.dev-gendata: java rmic
+ jdk.jdeps-gendata: java rmic
zip-security: java.base-java java.security.jgss-java java.security.jgss-libs \
$(filter jdk.crypto%, $(JAVA_TARGETS))
--- old/./modules.xml 2015-05-26 21:40:50.779831509 -0700
+++ new/./modules.xml 2015-05-26 21:40:50.699831508 -0700
@@ -1526,13 +1526,6 @@
com.sun.tools.javah
- com.sun.tools.javap
-
-
- com.sun.tools.classfile
- jdk.dev
-
- com.sun.tools.doclintjdk.javadoc
@@ -1551,6 +1544,7 @@
com.sun.tools.javac.filejdk.javadoc
+ jdk.jdepscom.sun.tools.javac.jvm
@@ -1575,6 +1569,7 @@
com.sun.tools.javac.utiljdk.javadoc
+ jdk.jdeps
@@ -1607,8 +1602,6 @@
jdk.devjava.base
- java.xml
- jdk.compilerjdk.hotspot.agent
@@ -1678,6 +1671,16 @@
+ jdk.jdeps
+ java.base
+ java.compiler
+ java.xml
+ jdk.compiler
+
+ com.sun.tools.javap
+
+
+ jdk.jdijava.basejdk.attach
--- old/jdk/make/launcher/Launcher-jdk.compiler.gmk 2015-05-26 21:40:51.295831517 -0700
+++ new/jdk/make/launcher/Launcher-jdk.compiler.gmk 2015-05-26 21:40:51.147831515 -0700
@@ -35,11 +35,6 @@
-DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javah.Main"$(COMMA) }'))
-$(eval $(call SetupLauncher,javap, \
- -DEXPAND_CLASSPATH_WILDCARDS \
- -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
- -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.javap.Main"$(COMMA) }'))
-
$(eval $(call SetupLauncher,serialver, \
-DEXPAND_CLASSPATH_WILDCARDS \
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.tools.serialver.SerialVer"$(COMMA) }'))
--- old/jdk/make/launcher/Launcher-jdk.dev.gmk 2015-05-26 21:40:51.883831525 -0700
+++ new/jdk/make/launcher/Launcher-jdk.dev.gmk 2015-05-26 21:40:51.731831523 -0700
@@ -25,10 +25,5 @@
include LauncherCommon.gmk
-$(eval $(call SetupLauncher,jdeps, \
- -DEXPAND_CLASSPATH_WILDCARDS \
- -DNEVER_ACT_AS_SERVER_CLASS_MACHINE \
- -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "com.sun.tools.jdeps.Main"$(COMMA) }'))
-
$(eval $(call SetupLauncher,jimage,\
-DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "jdk.tools.jimage.Main"$(COMMA) }'))
--- old/jdk/test/tools/launcher/VersionCheck.java 2015-05-26 21:40:53.019831542 -0700
+++ new/jdk/test/tools/launcher/VersionCheck.java 2015-05-26 21:40:52.251831531 -0700
@@ -195,6 +195,7 @@
Map envMap = new HashMap<>();
envMap.put(TestHelper.JLDEBUG_KEY, "true");
TestHelper.TestResult tr = doExec(envMap, javaCmd, "-version");
+ System.out.println(tr.toString());
List alist = new ArrayList<>();
alist.addAll(tr.testOutput);
for (String x : tr.testOutput) {
--- old/jdk/make/closed/jdk.tbom 2015-05-26 21:40:53.367831547 -0700
+++ new/jdk/make/closed/jdk.tbom 2015-05-26 21:40:53.295831546 -0700
@@ -61,42 +61,42 @@
-
-
-
-
-
-
-
-
@@ -106,7 +106,7 @@
-
@@ -196,7 +196,7 @@
-
@@ -325,7 +325,7 @@
-
--- old/langtools/make/CompileInterim.gmk 2015-05-26 21:40:53.735831553 -0700
+++ new/langtools/make/CompileInterim.gmk 2015-05-26 21:40:53.635831551 -0700
@@ -41,11 +41,11 @@
DISABLE_SJAVAC := true, \
SRC := $(LANGTOOLS_TOPDIR)/src/java.compiler/share/classes \
$(LANGTOOLS_TOPDIR)/src/jdk.compiler/share/classes \
- $(LANGTOOLS_TOPDIR)/src/jdk.dev/share/classes \
$(LANGTOOLS_TOPDIR)/src/jdk.javadoc/share/classes \
+ $(LANGTOOLS_TOPDIR)/src/jdk.jdeps/share/classes \
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.compiler \
- $(SUPPORT_OUTPUTDIR)/gensrc/jdk.dev \
- $(SUPPORT_OUTPUTDIR)/gensrc/jdk.javadoc, \
+ $(SUPPORT_OUTPUTDIR)/gensrc/jdk.javadoc \
+ $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdeps, \
EXCLUDES := sun jdk, \
COPY := .gif .xml .css .js javax.tools.JavaCompilerTool, \
BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_interim_classes, \
--- old/langtools/make/build.properties 2015-05-26 21:40:54.115831559 -0700
+++ new/langtools/make/build.properties 2015-05-26 21:40:54.011831557 -0700
@@ -47,11 +47,11 @@
boot.javac.target = 8
#configuration of submodules (share by both the bootstrap and normal compilation):
-langtools.modules=java.compiler:jdk.compiler:jdk.dev:jdk.javadoc
+langtools.modules=java.compiler:jdk.compiler:jdk.jdeps:jdk.javadoc
java.compiler.dependencies=
jdk.compiler.dependencies=java.compiler
jdk.javadoc.dependencies=java.compiler:jdk.compiler
-jdk.dev.dependencies=java.compiler:jdk.compiler
+jdk.jdeps.dependencies=java.compiler:jdk.compiler
javac.resource.includes = \
com/sun/tools/javac/resources/compiler.properties
--- old/langtools/make/build.xml 2015-05-26 21:40:54.471831564 -0700
+++ new/langtools/make/build.xml 2015-05-26 21:40:54.371831562 -0700
@@ -257,7 +257,7 @@
-
+
@@ -463,7 +463,7 @@
-
+
@@ -527,7 +527,7 @@
resource.includes="${javac.resource.includes}" />
-
--- old/langtools/make/gensrc/Gensrc-jdk.compiler.gmk 2015-05-26 21:40:54.851831569 -0700
+++ new/langtools/make/gensrc/Gensrc-jdk.compiler.gmk 2015-05-26 21:40:54.751831568 -0700
@@ -31,11 +31,8 @@
$(eval $(call SetupVersionProperties,JAVAH_VERSION, \
com/sun/tools/javah/resources/version.properties))
-$(eval $(call SetupVersionProperties,JAVAP_VERSION, \
- com/sun/tools/javap/resources/version.properties))
-
$(eval $(call SetupCompileProperties,COMPILE_PROPERTIES, \
- $(JAVAC_VERSION) $(JAVAH_VERSION) $(JAVAP_VERSION)))
+ $(JAVAC_VERSION) $(JAVAH_VERSION)))
$(eval $(call SetupParseProperties,PARSE_PROPERTIES, \
com/sun/tools/javac/resources/compiler.properties))
--- old/langtools/make/intellij/langtools.iml 2015-05-26 21:40:55.223831575 -0700
+++ new/langtools/make/intellij/langtools.iml 2015-05-26 21:40:55.119831573 -0700
@@ -6,13 +6,13 @@
-
+
-
+
--- old/langtools/make/intellij/workspace.xml 2015-05-26 21:40:55.583831580 -0700
+++ new/langtools/make/intellij/workspace.xml 2015-05-26 21:40:55.483831579 -0700
@@ -10,7 +10,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -86,7 +86,7 @@
-
+
@@ -106,7 +106,7 @@
-
+
--- old/langtools/make/netbeans/langtools/nbproject/project.xml 2015-05-26 21:40:55.955831586 -0700
+++ new/langtools/make/netbeans/langtools/nbproject/project.xml 2015-05-26 21:40:55.851831584 -0700
@@ -67,9 +67,9 @@
${root}/src/jdk.compiler/share/classes
-
+
java
- ${root}/src/jdk.dev/share/classes
+ ${root}/src/jdk.jdeps/share/classes
@@ -128,10 +128,10 @@
compile-single
- jdk.dev
+ jdk.jdepsincludes
- ${root}/src/jdk.dev/share/classes
+ ${root}/src/jdk.jdeps/share/classes\.java$relative-path
@@ -195,7 +195,7 @@
run-singlerun.classname
- ${root}/src/jdk.dev/share/classes
+ ${root}/src/jdk.jdeps/share/classes\.java$java-name
@@ -265,7 +265,7 @@
debug-singledebug.classname
- ${root}/src/jdk.dev/share/classes
+ ${root}/src/jdk.jdeps/share/classes\.java$java-name
@@ -329,10 +329,10 @@
debug-fix
- jdk.dev
+ jdk.jdepsclass
- ${root}/src/jdk.dev/share/classes
+ ${root}/src/jdk.jdeps/share/classes\.java$relative-path-noext
@@ -382,8 +382,8 @@
${root}/src/jdk.compiler/share/classes
-
- ${root}/src/jdk.dev/share/classes
+
+ ${root}/src/jdk.jdeps/share/classes
@@ -443,10 +443,10 @@
1.8
- ${root}/src/jdk.dev/share/classes
- ${root}/build/bootstrap/jdk.dev/gensrc
+ ${root}/src/jdk.jdeps/share/classes
+ ${root}/build/bootstrap/jdk.jdeps/gensrc${root}/build/java.compiler/classes:${root}/build/jdk.compiler/classes
- ${root}/build/jdk.dev/classes
+ ${root}/build/jdk.jdeps/classes1.8
--- old/langtools/test/tools/javac/4241573/T4241573.java 2015-05-26 21:40:56.335831591 -0700
+++ new/langtools/test/tools/javac/4241573/T4241573.java 2015-05-26 21:40:56.231831590 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4241573
* @summary SourceFile attribute includes full path
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.Attribute;
--- old/langtools/test/tools/javac/7003595/T7003595.java 2015-05-26 21:40:56.699831597 -0700
+++ new/langtools/test/tools/javac/7003595/T7003595.java 2015-05-26 21:40:56.599831595 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7003595
* @summary IncompatibleClassChangeError with unreferenced local class with subclass
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
*/
--- old/langtools/test/tools/javac/7153958/CPoolRefClassContainingInlinedCts.java 2015-05-26 21:40:57.067831602 -0700
+++ new/langtools/test/tools/javac/7153958/CPoolRefClassContainingInlinedCts.java 2015-05-26 21:40:56.967831601 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 7153958
* @summary add constant pool reference to class containing inlined constants
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile pkg/ClassToBeStaticallyImported.java CPoolRefClassContainingInlinedCts.java
* @run main CPoolRefClassContainingInlinedCts
*/
--- old/langtools/test/tools/javac/7166455/CheckACC_STRICTFlagOnclinitTest.java 2015-05-26 21:40:57.431831608 -0700
+++ new/langtools/test/tools/javac/7166455/CheckACC_STRICTFlagOnclinitTest.java 2015-05-26 21:40:57.331831606 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 7166455
* @summary javac doesn't set ACC_STRICT bit on for strictfp class
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main CheckACC_STRICTFlagOnclinitTest
*/
--- old/langtools/test/tools/javac/7199823/InnerClassCannotBeVerified.java 2015-05-26 21:40:57.791831613 -0700
+++ new/langtools/test/tools/javac/7199823/InnerClassCannotBeVerified.java 2015-05-26 21:40:57.695831612 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7199823
* @summary javac generates inner class that can't be verified
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main InnerClassCannotBeVerified
*/
--- old/langtools/test/tools/javac/8000518/DuplicateConstantPoolEntry.java 2015-05-26 21:40:58.159831619 -0700
+++ new/langtools/test/tools/javac/8000518/DuplicateConstantPoolEntry.java 2015-05-26 21:40:58.055831617 -0700
@@ -26,7 +26,7 @@
* @bug 8000518
* @summary Javac generates duplicate name_and_type constant pool entry for
* class BinaryOpValueExp.java
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main DuplicateConstantPoolEntry
*/
--- old/langtools/test/tools/javac/8005931/CheckACC_STRICTFlagOnPkgAccessClassTest.java 2015-05-26 21:40:58.523831624 -0700
+++ new/langtools/test/tools/javac/8005931/CheckACC_STRICTFlagOnPkgAccessClassTest.java 2015-05-26 21:40:58.423831622 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8005931
* @summary javac doesn't set ACC_STRICT for classes with package access
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main CheckACC_STRICTFlagOnPkgAccessClassTest
*/
--- old/langtools/test/tools/javac/8009170/RedundantByteCodeInArrayTest.java 2015-05-26 21:40:58.887831629 -0700
+++ new/langtools/test/tools/javac/8009170/RedundantByteCodeInArrayTest.java 2015-05-26 21:40:58.783831628 -0700
@@ -26,7 +26,7 @@
* @bug 8009170
* @summary Regression: javac generates redundant bytecode in assignop involving
* arrays
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main RedundantByteCodeInArrayTest
*/
--- old/langtools/test/tools/javac/MethodParameters/AnnotationTest.java 2015-05-26 21:40:59.251831635 -0700
+++ new/langtools/test/tools/javac/MethodParameters/AnnotationTest.java 2015-05-26 21:40:59.147831633 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters AnnotationTest.java
* @run main Tester AnnotationTest AnnotationTest.out
--- old/langtools/test/tools/javac/MethodParameters/AnonymousClass.java 2015-05-26 21:40:59.607831640 -0700
+++ new/langtools/test/tools/javac/MethodParameters/AnonymousClass.java 2015-05-26 21:40:59.511831639 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters AnonymousClass.java
* @run main Tester AnonymousClass AnonymousClass.out
--- old/langtools/test/tools/javac/MethodParameters/Constructors.java 2015-05-26 21:41:00.035831646 -0700
+++ new/langtools/test/tools/javac/MethodParameters/Constructors.java 2015-05-26 21:40:59.935831645 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters Constructors.java
* @run main Tester Constructors Constructors.out
--- old/langtools/test/tools/javac/MethodParameters/EnumTest.java 2015-05-26 21:41:00.395831652 -0700
+++ new/langtools/test/tools/javac/MethodParameters/EnumTest.java 2015-05-26 21:41:00.295831650 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582 8008658
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters EnumTest.java
* @run main Tester EnumTest EnumTest.out
--- old/langtools/test/tools/javac/MethodParameters/InstanceMethods.java 2015-05-26 21:41:00.759831657 -0700
+++ new/langtools/test/tools/javac/MethodParameters/InstanceMethods.java 2015-05-26 21:41:00.655831656 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters InstanceMethods.java
* @run main Tester InstanceMethods InstanceMethods.out
--- old/langtools/test/tools/javac/MethodParameters/LambdaTest.java 2015-05-26 21:41:01.123831662 -0700
+++ new/langtools/test/tools/javac/MethodParameters/LambdaTest.java 2015-05-26 21:41:01.019831661 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582 8037546
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters LambdaTest.java
* @run main Tester LambdaTest LambdaTest.out
--- old/langtools/test/tools/javac/MethodParameters/LocalClassTest.java 2015-05-26 21:41:01.483831668 -0700
+++ new/langtools/test/tools/javac/MethodParameters/LocalClassTest.java 2015-05-26 21:41:01.379831666 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582 8008658
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters LocalClassTest.java
* @run main Tester LocalClassTest LocalClassTest.out
--- old/langtools/test/tools/javac/MethodParameters/MemberClassTest.java 2015-05-26 21:41:01.843831673 -0700
+++ new/langtools/test/tools/javac/MethodParameters/MemberClassTest.java 2015-05-26 21:41:01.743831672 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582 8008658
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters MemberClassTest.java
* @run main Tester MemberClassTest MemberClassTest.out
--- old/langtools/test/tools/javac/MethodParameters/StaticMethods.java 2015-05-26 21:41:02.203831678 -0700
+++ new/langtools/test/tools/javac/MethodParameters/StaticMethods.java 2015-05-26 21:41:02.103831677 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters StaticMethods.java
* @run main Tester StaticMethods StaticMethods.out
--- old/langtools/test/tools/javac/MethodParameters/UncommonParamNames.java 2015-05-26 21:41:02.567831684 -0700
+++ new/langtools/test/tools/javac/MethodParameters/UncommonParamNames.java 2015-05-26 21:41:02.467831682 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8006582
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build Tester
* @compile -parameters UncommonParamNames.java
* @run main Tester UncommonParamNames UncommonParamNames.out
--- old/langtools/test/tools/javac/MethodParametersTest.java 2015-05-26 21:41:02.931831689 -0700
+++ new/langtools/test/tools/javac/MethodParametersTest.java 2015-05-26 21:41:02.831831688 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8004727
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.code
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/NoStringToLower.java 2015-05-26 21:41:03.295831695 -0700
+++ new/langtools/test/tools/javac/NoStringToLower.java 2015-05-26 21:41:03.195831693 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8029800
* @summary String.toLowerCase()/toUpperCase is generally dangerous, check it is not used in langtools
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javac/T6695379/AnnotationsAreNotCopiedToBridgeMethodsTest.java 2015-05-26 21:41:03.655831700 -0700
+++ new/langtools/test/tools/javac/T6695379/AnnotationsAreNotCopiedToBridgeMethodsTest.java 2015-05-26 21:41:03.555831698 -0700
@@ -26,7 +26,7 @@
* @bug 6695379
* @summary Copy method annotations and parameter annotations to synthetic
* bridge methods
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
* @run main AnnotationsAreNotCopiedToBridgeMethodsTest
*/
--- old/langtools/test/tools/javac/T6970173/DebugPointerAtBadPositionTest.java 2015-05-26 21:41:04.015831705 -0700
+++ new/langtools/test/tools/javac/T6970173/DebugPointerAtBadPositionTest.java 2015-05-26 21:41:03.919831704 -0700
@@ -26,7 +26,7 @@
* @bug 6970173
* @summary Debug pointer at bad position
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java 2015-05-26 21:41:04.375831711 -0700
+++ new/langtools/test/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java 2015-05-26 21:41:04.271831709 -0700
@@ -26,7 +26,7 @@
* @bug 7008643
* @summary inlined finally clauses confuse debuggers
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/T7053059/DoubleCastTest.java 2015-05-26 21:41:04.747831716 -0700
+++ new/langtools/test/tools/javac/T7053059/DoubleCastTest.java 2015-05-26 21:41:04.643831715 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8015499
* @summary javac, Gen is generating extra checkcast instructions in some corner cases
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
* @run main DoubleCastTest
*/
--- old/langtools/test/tools/javac/T7093325.java 2015-05-26 21:41:05.107831721 -0700
+++ new/langtools/test/tools/javac/T7093325.java 2015-05-26 21:41:05.007831720 -0700
@@ -27,7 +27,7 @@
* @summary Redundant entry in bytecode exception table
* temporarily workaround combo tests are causing time out in several platforms
* @library lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build JavacTestingAbstractThreadedTest
* @run main/othervm T7093325
*/
--- old/langtools/test/tools/javac/T7165659/InnerClassAttrMustNotHaveStrictFPFlagTest.java 2015-05-26 21:41:05.471831727 -0700
+++ new/langtools/test/tools/javac/T7165659/InnerClassAttrMustNotHaveStrictFPFlagTest.java 2015-05-26 21:41:05.371831725 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 7165659
* @summary javac incorrectly sets strictfp access flag on inner-classes
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
*/
--- old/langtools/test/tools/javac/T8003967/DetectMutableStaticFields.java 2015-05-26 21:41:05.835831732 -0700
+++ new/langtools/test/tools/javac/T8003967/DetectMutableStaticFields.java 2015-05-26 21:41:05.731831731 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8003967
* @summary detect and remove all mutable implicit static enum fields in langtools
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
* @run main DetectMutableStaticFields
*/
--- old/langtools/test/tools/javac/T8010737/ParameterNamesAreNotCopiedToAnonymousInitTest.java 2015-05-26 21:41:06.199831738 -0700
+++ new/langtools/test/tools/javac/T8010737/ParameterNamesAreNotCopiedToAnonymousInitTest.java 2015-05-26 21:41:06.099831736 -0700
@@ -26,7 +26,7 @@
* @bug 8010737
* @summary javac, known parameter's names should be copied to automatically
* generated constructors for inner classes
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.code
* jdk.compiler/com.sun.tools.javac.tree
--- old/langtools/test/tools/javac/T8011181/EmptyUTF8ForInnerClassNameTest.java 2015-05-26 21:41:06.567831743 -0700
+++ new/langtools/test/tools/javac/T8011181/EmptyUTF8ForInnerClassNameTest.java 2015-05-26 21:41:06.463831742 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8011181
* @summary javac, empty UTF8 entry generated for inner class
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
*/
--- old/langtools/test/tools/javac/T8019486/WrongLNTForLambdaTest.java 2015-05-26 21:41:06.931831749 -0700
+++ new/langtools/test/tools/javac/T8019486/WrongLNTForLambdaTest.java 2015-05-26 21:41:06.827831747 -0700
@@ -28,7 +28,7 @@
* @bug 8019486 8026861 8027142
* @summary javac, generates erroneous LVT for a test case with lambda code
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/T8022186/DeadCodeGeneratedForEmptyTryTest.java 2015-05-26 21:41:07.291831754 -0700
+++ new/langtools/test/tools/javac/T8022186/DeadCodeGeneratedForEmptyTryTest.java 2015-05-26 21:41:07.191831752 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8022186
* @summary javac generates dead code if a try with an empty body has a finalizer
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
*/
--- old/langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java 2015-05-26 21:41:07.655831759 -0700
+++ new/langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java 2015-05-26 21:41:07.555831758 -0700
@@ -28,7 +28,7 @@
* @bug 8024039
* @summary javac, previous solution for JDK-8022186 was incorrect
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/T8028504/DontGenerateLVTForGNoneOpTest.java 2015-05-26 21:41:08.023831765 -0700
+++ new/langtools/test/tools/javac/T8028504/DontGenerateLVTForGNoneOpTest.java 2015-05-26 21:41:07.919831763 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8028504
* @summary javac generates LocalVariableTable even with -g:none
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g:none DontGenerateLVTForGNoneOpTest.java
* @run main DontGenerateLVTForGNoneOpTest
*/
--- old/langtools/test/tools/javac/annotations/SyntheticParameters.java 2015-05-26 21:41:09.291831784 -0700
+++ new/langtools/test/tools/javac/annotations/SyntheticParameters.java 2015-05-26 21:41:09.191831782 -0700
@@ -26,7 +26,7 @@
* @bug 8065132
* @summary Test generation of annotations on inner class parameters.
* @library /lib/annotations/
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main SyntheticParameters
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java 2015-05-26 21:41:09.655831789 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest1.java 2015-05-26 21:41:09.551831787 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8005085 8005877 8004829 8005681 8006734 8006775
* @summary Combinations of Target ElementTypes on (repeated)type annotations.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java 2015-05-26 21:41:10.023831794 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java 2015-05-26 21:41:09.923831793 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8005085 8005877 8004829 8005681 8006734 8006775 8006507
* @summary Combinations of Target ElementTypes on (repeated)type annotations.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest3.java 2015-05-26 21:41:10.383831800 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest3.java 2015-05-26 21:41:10.279831798 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8005085 8005681 8008769 8010015
* @summary Check (repeating)type annotations on lambda usage.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main CombinationsTargetTest3
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/DeadCode.java 2015-05-26 21:41:10.751831805 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/DeadCode.java 2015-05-26 21:41:10.651831804 -0700
@@ -32,7 +32,7 @@
* @test
* @bug 6917130 8006775
* @summary test that optimized away annotations are not emited to classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class DeadCode extends ClassfileTestHelper {
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NewTypeArguments.java 2015-05-26 21:41:11.115831811 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NewTypeArguments.java 2015-05-26 21:41:11.015831809 -0700
@@ -31,7 +31,7 @@
/*
* @test ClassLiterals
* @summary test that new type arguments are emitted to classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class NewTypeArguments extends ClassfileTestHelper{
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NoTargetAnnotations.java 2015-05-26 21:41:11.475831816 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/NoTargetAnnotations.java 2015-05-26 21:41:11.371831814 -0700
@@ -33,7 +33,7 @@
* @test NoTargetAnnotations
* @summary test that annotations with no Target meta type is emitted
* only once as declaration annotation
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class NoTargetAnnotations {
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/Scopes.java 2015-05-26 21:41:11.839831821 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/Scopes.java 2015-05-26 21:41:11.735831820 -0700
@@ -32,7 +32,7 @@
* @test
* @bug 6843077 8006775
* @summary Qualified inner type annotation accessible to the class.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
@Scopes.UniqueInner
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/SyntheticParameters.java 2015-05-26 21:41:12.203831827 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/SyntheticParameters.java 2015-05-26 21:41:12.099831825 -0700
@@ -25,7 +25,7 @@
* @test SyntheticParameters
* @summary Test generation of annotations on inner class parameters.
* @library /lib/annotations/
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main SyntheticParameters
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8008762.java 2015-05-26 21:41:12.571831832 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8008762.java 2015-05-26 21:41:12.471831831 -0700
@@ -26,7 +26,7 @@
* @bug 8008762
* @summary Type annotation on inner class in anonymous class
* shows up as regular annotation
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.lang.annotation.*;
import static java.lang.annotation.RetentionPolicy.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8008769.java 2015-05-26 21:41:12.927831837 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8008769.java 2015-05-26 21:41:12.827831836 -0700
@@ -25,7 +25,7 @@
* @summary Repeated type-annotations on type parm of local variable
* are not written to classfile.
* @bug 8008769
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.lang.annotation.*;
import static java.lang.annotation.RetentionPolicy.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8010015.java 2015-05-26 21:41:13.295831843 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/T8010015.java 2015-05-26 21:41:13.195831841 -0700
@@ -25,7 +25,7 @@
* @test
* @summary Wrong classfile attribution in inner class of lambda expression.
* @bug 8010015
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.lang.annotation.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TestAnonInnerClasses.java 2015-05-26 21:41:13.663831848 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TestAnonInnerClasses.java 2015-05-26 21:41:13.559831847 -0700
@@ -33,7 +33,7 @@
* results in 2). Elements with no annotations expect 0.
* Source template is read in from testanoninner.template
*
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.lang.annotation.*;
import java.io.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TestNewCastArray.java 2015-05-26 21:41:14.031831854 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TestNewCastArray.java 2015-05-26 21:41:13.927831852 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8005681
* @summary Repeated annotations on new,array,cast.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.lang.annotation.*;
import java.io.*;
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TypeCasts.java 2015-05-26 21:41:14.395831859 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/TypeCasts.java 2015-05-26 21:41:14.295831858 -0700
@@ -33,7 +33,7 @@
* @bug 6843077 8006775
* @summary test that typecasts annotation are emitted if only the cast
* expression is optimized away
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class TypeCasts extends ClassfileTestHelper{
--- old/langtools/test/tools/javac/annotations/typeAnnotations/classfile/Wildcards.java 2015-05-26 21:41:14.759831865 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/classfile/Wildcards.java 2015-05-26 21:41:14.655831863 -0700
@@ -32,7 +32,7 @@
* @test Wildcards
* @bug 6843077 8006775
* @summary test that annotations target wildcards get emitted to classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class Wildcards extends ClassfileTestHelper {
public static void main(String[] args) throws Exception {
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassExtends.java 2015-05-26 21:41:15.127831870 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassExtends.java 2015-05-26 21:41:15.019831868 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for class extends clauses
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java ClassExtends.java
* @run main Driver ClassExtends
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassTypeParam.java 2015-05-26 21:41:15.491831875 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ClassTypeParam.java 2015-05-26 21:41:15.387831874 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for class type parameters
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java ClassTypeParam.java
* @run main Driver ClassTypeParam
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ConstructorInvocationTypeArgument.java 2015-05-26 21:41:15.855831881 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ConstructorInvocationTypeArgument.java 2015-05-26 21:41:15.751831879 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for constructor invocation type argument
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java ConstructorInvocationTypeArgument.java
* @run main Driver ConstructorInvocationTypeArgument
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java 2015-05-26 21:41:16.219831886 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Constructors.java 2015-05-26 21:41:16.115831885 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8026791 8042451
* @summary Test population of reference info for constructor results
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java Constructors.java
* @run main Driver Constructors
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java 2015-05-26 21:41:16.583831892 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ExceptionParameters.java 2015-05-26 21:41:16.479831890 -0700
@@ -28,7 +28,7 @@
* @bug 8028576 8042451
* @summary Test population of reference info for exception parameters
* @author Werner Dietl
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java ExceptionParameters.java
* @run main Driver ExceptionParameters
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Fields.java 2015-05-26 21:41:16.947831897 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Fields.java 2015-05-26 21:41:16.843831895 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for field
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java Fields.java
* @run main Driver Fields
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/FromSpecification.java 2015-05-26 21:41:17.315831902 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/FromSpecification.java 2015-05-26 21:41:17.207831901 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test that the examples from the manual are stored as expected
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java FromSpecification.java
* @run main Driver FromSpecification
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Initializers.java 2015-05-26 21:41:17.683831908 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Initializers.java 2015-05-26 21:41:17.579831906 -0700
@@ -28,7 +28,7 @@
* @bug 8013852 8042451
* @summary Test population of reference info for instance and class initializers
* @author Werner Dietl
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java Initializers.java
* @run main Driver Initializers
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java 2015-05-26 21:41:18.047831913 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java 2015-05-26 21:41:17.947831912 -0700
@@ -26,7 +26,7 @@
* @bug 8008077 8029721 8042451 8043974
* @summary Test population of reference info for lambda expressions
* javac crash for annotated parameter type of lambda in a field
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @ignore 8057687 emit correct byte code an attributes for type annotations
* @compile -g Driver.java ReferenceInfoUtil.java Lambda.java
* @run main Driver Lambda
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodInvocationTypeArgument.java 2015-05-26 21:41:18.423831919 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodInvocationTypeArgument.java 2015-05-26 21:41:18.323831917 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method invocation type arguments
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodInvocationTypeArgument.java
* @run main Driver MethodInvocationTypeArgument
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java 2015-05-26 21:41:18.783831924 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodParameters.java 2015-05-26 21:41:18.679831923 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method parameters
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodParameters.java
* @run main Driver MethodParameters
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReceivers.java 2015-05-26 21:41:19.175831930 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReceivers.java 2015-05-26 21:41:19.075831929 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method receivers
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodReceivers.java
* @run main Driver MethodReceivers
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReturns.java 2015-05-26 21:41:19.547831936 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodReturns.java 2015-05-26 21:41:19.439831934 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method return
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodReturns.java
* @run main Driver MethodReturns
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodThrows.java 2015-05-26 21:41:19.911831941 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodThrows.java 2015-05-26 21:41:19.807831939 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method exception clauses
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodThrows.java
* @run main Driver MethodThrows
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodTypeParam.java 2015-05-26 21:41:20.275831946 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MethodTypeParam.java 2015-05-26 21:41:20.175831945 -0700
@@ -28,7 +28,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for method type parameters
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MethodTypeParam.java
* @run main Driver MethodTypeParam
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MultiCatch.java 2015-05-26 21:41:20.647831952 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/MultiCatch.java 2015-05-26 21:41:20.543831950 -0700
@@ -28,7 +28,7 @@
* @bug 8006732 8006775 8042451
* @summary Test population of reference info for multicatch exception parameters
* @author Werner Dietl
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java MultiCatch.java
* @run main Driver MultiCatch
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java 2015-05-26 21:41:21.007831957 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java 2015-05-26 21:41:20.907831956 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451 8044009 8044010
* @summary Test population of reference info for nested types
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @ignore 8057687 emit correct byte code an attributes for type annotations
* @compile -g Driver.java ReferenceInfoUtil.java NestedTypes.java
* @run main Driver NestedTypes
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/NewObjects.java 2015-05-26 21:41:21.407831963 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/NewObjects.java 2015-05-26 21:41:21.303831962 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for new object creations
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java NewObjects.java
* @run main Driver NewObjects
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/RepeatingTypeAnnotations.java 2015-05-26 21:41:21.771831968 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/RepeatingTypeAnnotations.java 2015-05-26 21:41:21.671831967 -0700
@@ -26,7 +26,7 @@
/*
* @test
* @summary Test population of reference info for repeating type annotations
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java RepeatingTypeAnnotations.java
* @run main Driver RepeatingTypeAnnotations
* @author Werner Dietl
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ResourceVariable.java 2015-05-26 21:41:22.123831974 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/ResourceVariable.java 2015-05-26 21:41:22.023831972 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for resource variable
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java ResourceVariable.java
* @run main Driver ResourceVariable
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeCasts.java 2015-05-26 21:41:22.483831979 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeCasts.java 2015-05-26 21:41:22.379831978 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for type casts
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java TypeCasts.java
* @run main Driver TypeCasts
*/
--- old/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeTests.java 2015-05-26 21:41:22.847831984 -0700
+++ new/langtools/test/tools/javac/annotations/typeAnnotations/referenceinfos/TypeTests.java 2015-05-26 21:41:22.743831983 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8042451
* @summary Test population of reference info for class literals
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g Driver.java ReferenceInfoUtil.java TypeTests.java
* @run main Driver TypeTests
*/
--- old/langtools/test/tools/javac/classfiles/InnerClasses/SyntheticClasses.java 2015-05-26 21:41:23.207831990 -0700
+++ new/langtools/test/tools/javac/classfiles/InnerClasses/SyntheticClasses.java 2015-05-26 21:41:23.107831988 -0700
@@ -25,7 +25,7 @@
* @bug 8034854
* @summary Verify that the InnerClasses attribute has outer_class_info_index zero if it has
* inner_name_index zero (for synthetic classes)
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile SyntheticClasses.java
* @run main SyntheticClasses
*/
--- old/langtools/test/tools/javac/classfiles/attributes/AnnotationDefault/AnnotationDefaultTest.java 2015-05-26 21:41:23.579831995 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/AnnotationDefault/AnnotationDefaultTest.java 2015-05-26 21:41:23.471831994 -0700
@@ -26,7 +26,7 @@
* @bug 8042947
* @summary Checking AnnotationDefault attribute.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/EnclosingMethod/EnclosingMethodTest.java 2015-05-26 21:41:23.951832001 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/EnclosingMethod/EnclosingMethodTest.java 2015-05-26 21:41:23.847831999 -0700
@@ -26,7 +26,7 @@
* @bug 8042931
* @summary Checking EnclosingMethod attribute of anonymous/local class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/LineNumberTable/LineNumberTest.java 2015-05-26 21:41:24.327832006 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/LineNumberTable/LineNumberTest.java 2015-05-26 21:41:24.223832005 -0700
@@ -27,7 +27,7 @@
* @bug 8040131
*
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/LocalVariableTable/LocalVariableTableTest.java 2015-05-26 21:41:24.687832012 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/LocalVariableTable/LocalVariableTableTest.java 2015-05-26 21:41:24.587832010 -0700
@@ -26,7 +26,7 @@
* @summary local variable table attribute test.
* @bug 8040097
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/LocalVariableTable/LocalVariableTypeTableTest.java 2015-05-26 21:41:25.055832017 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/LocalVariableTable/LocalVariableTypeTableTest.java 2015-05-26 21:41:24.951832016 -0700
@@ -26,7 +26,7 @@
* @summary local variable type table attribute test.
* @bug 8040097
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/ConstructorTest.java 2015-05-26 21:41:25.427832023 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/ConstructorTest.java 2015-05-26 21:41:25.323832021 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for constructors.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/EnumTest.java 2015-05-26 21:41:25.791832028 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/EnumTest.java 2015-05-26 21:41:25.687832027 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for enum.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/ExceptionTest.java 2015-05-26 21:41:26.151832033 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/ExceptionTest.java 2015-05-26 21:41:26.047832032 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for methods which throw exceptions.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/FieldTest.java 2015-05-26 21:41:26.515832039 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/FieldTest.java 2015-05-26 21:41:26.411832037 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for fields.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/InnerClassTest.java 2015-05-26 21:41:26.891832044 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/InnerClassTest.java 2015-05-26 21:41:26.787832043 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for inner classes.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/MethodParameterTest.java 2015-05-26 21:41:27.255832050 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/MethodParameterTest.java 2015-05-26 21:41:27.151832048 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for method parameters.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/MethodTypeBoundTest.java 2015-05-26 21:41:27.619832055 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/MethodTypeBoundTest.java 2015-05-26 21:41:27.519832054 -0700
@@ -26,7 +26,7 @@
* @bug 8049238
* @summary Checks Signature attribute for type bounds.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/Signature/ReturnTypeTest.java 2015-05-26 21:41:27.983832061 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/Signature/ReturnTypeTest.java 2015-05-26 21:41:27.883832059 -0700
@@ -27,7 +27,7 @@
* @summary Checks Signature attribute for array return type of method.
* @library /tools/lib /tools/javac/lib ../lib
* @modules java.desktop
- * jdk.compiler/com.sun.tools.classfile
+ * jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/AnonymousClassTest.java 2015-05-26 21:41:28.363832066 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/AnonymousClassTest.java 2015-05-26 21:41:28.251832065 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for anonymous class.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/InnerClassTest.java 2015-05-26 21:41:28.727832072 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/InnerClassTest.java 2015-05-26 21:41:28.623832070 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for inner class.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/LocalClassTest.java 2015-05-26 21:41:29.095832077 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/LocalClassTest.java 2015-05-26 21:41:28.991832076 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for local class.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/MixTest.java 2015-05-26 21:41:29.459832082 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/MixTest.java 2015-05-26 21:41:29.359832081 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for complex structure of nested classes and other types.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/NoSourceFileAttribute.java 2015-05-26 21:41:29.819832088 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/NoSourceFileAttribute.java 2015-05-26 21:41:29.719832086 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for file compiled without debug information.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/SyntheticClassTest.java 2015-05-26 21:41:30.207832094 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/SyntheticClassTest.java 2015-05-26 21:41:30.111832092 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for synthetic class.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/SourceFile/TopLevelClassesOneFileTest.java 2015-05-26 21:41:30.571832099 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/SourceFile/TopLevelClassesOneFileTest.java 2015-05-26 21:41:30.471832097 -0700
@@ -26,7 +26,7 @@
* @summary sourcefile attribute test for two type in one file.
* @bug 8040129
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/deprecated/DeprecatedPackageTest.java 2015-05-26 21:41:30.935832104 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/deprecated/DeprecatedPackageTest.java 2015-05-26 21:41:30.831832103 -0700
@@ -26,7 +26,7 @@
* @bug 8042261
* @summary Checking that deprecated attribute does not apply to classes of deprecated package.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/deprecated/DeprecatedTest.java 2015-05-26 21:41:31.299832110 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/deprecated/DeprecatedTest.java 2015-05-26 21:41:31.195832108 -0700
@@ -27,7 +27,7 @@
* @summary Checking what attribute is generated by annotation Deprecated
* or javadoc deprecated for field, method, class(inner/local), interface.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerAnnotationTest.java 2015-05-26 21:41:31.671832115 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerAnnotationTest.java 2015-05-26 21:41:31.563832114 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner annotations in inner annotation.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerClassTest.java 2015-05-26 21:41:32.031832121 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerClassTest.java 2015-05-26 21:41:31.927832119 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner annotations in inner class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerEnumTest.java 2015-05-26 21:41:32.399832126 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerEnumTest.java 2015-05-26 21:41:32.291832124 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner annotations in inner enum.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerInterfaceTest.java 2015-05-26 21:41:32.759832131 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerAnnotationsInInnerInterfaceTest.java 2015-05-26 21:41:32.655832130 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner annotations in inner interface.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesHierarchyTest.java 2015-05-26 21:41:33.127832137 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesHierarchyTest.java 2015-05-26 21:41:33.023832135 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Test that inner classes have in its inner classes attribute enclosing classes and its immediate members.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInAnonymousClassTest.java 2015-05-26 21:41:33.495832142 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInAnonymousClassTest.java 2015-05-26 21:41:33.395832141 -0700
@@ -26,7 +26,7 @@
* @bug 8042251 8062373
* @summary Testing InnerClasses_attribute of inner classes in anonymous class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerAnnotationTest.java 2015-05-26 21:41:33.875832148 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerAnnotationTest.java 2015-05-26 21:41:33.771832146 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner classes in inner annotation.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerClassTest.java 2015-05-26 21:41:34.275832154 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerClassTest.java 2015-05-26 21:41:34.175832152 -0700
@@ -26,7 +26,7 @@
* @bug 8034854 8042251
* @summary Testing InnerClasses_attribute of inner classes in inner class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerEnumTest.java 2015-05-26 21:41:34.639832159 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerEnumTest.java 2015-05-26 21:41:34.539832158 -0700
@@ -26,7 +26,7 @@
* @bug 8034854 8042251
* @summary Testing InnerClasses_attribute of inner classes in inner enum.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerInterfaceTest.java 2015-05-26 21:41:35.007832165 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInInnerInterfaceTest.java 2015-05-26 21:41:34.899832163 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner classes in inner interface.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInLocalClassTest.java 2015-05-26 21:41:35.371832170 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesInLocalClassTest.java 2015-05-26 21:41:35.267832169 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner classes in local class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesIndexTest.java 2015-05-26 21:41:35.739832176 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesIndexTest.java 2015-05-26 21:41:35.639832174 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Test that outer_class_info_index of local and anonymous class is zero.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesTest.java 2015-05-26 21:41:36.103832181 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerClassesTest.java 2015-05-26 21:41:35.999832179 -0700
@@ -27,7 +27,7 @@
* @bug 8034854 8042251
* @summary Testing inner classes attributes.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerAnnotationTest.java 2015-05-26 21:41:36.463832186 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerAnnotationTest.java 2015-05-26 21:41:36.363832185 -0700
@@ -27,7 +27,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner enums in inner annotation.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerEnumTest.java 2015-05-26 21:41:36.831832192 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerEnumTest.java 2015-05-26 21:41:36.727832190 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner enums in inner enum.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerInterfaceTest.java 2015-05-26 21:41:37.195832197 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumInInnerInterfaceTest.java 2015-05-26 21:41:37.091832196 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner enums in inner interface.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumsInInnerClassTest.java 2015-05-26 21:41:37.555832202 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerEnumsInInnerClassTest.java 2015-05-26 21:41:37.455832201 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner enums in inner class.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerAnnotationTest.java 2015-05-26 21:41:37.915832208 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerAnnotationTest.java 2015-05-26 21:41:37.815832206 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner interfaces in inner annotation.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerClassTest.java 2015-05-26 21:41:38.279832213 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerClassTest.java 2015-05-26 21:41:38.175832212 -0700
@@ -26,7 +26,7 @@
* @summary Testing InnerClasses_attribute of inner interfaces in inner class.
* @author aeremeev
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerEnumTest.java 2015-05-26 21:41:38.631832218 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerEnumTest.java 2015-05-26 21:41:38.527832217 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner interfaces in inner enum.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerInterfaceTest.java 2015-05-26 21:41:38.991832224 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/InnerInterfacesInInnerInterfaceTest.java 2015-05-26 21:41:38.887832222 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Testing InnerClasses_attribute of inner interfaces in inner interface.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classfiles/attributes/innerclasses/NoInnerClassesTest.java 2015-05-26 21:41:39.351832229 -0700
+++ new/langtools/test/tools/javac/classfiles/attributes/innerclasses/NoInnerClassesTest.java 2015-05-26 21:41:39.251832228 -0700
@@ -26,7 +26,7 @@
* @bug 8042251
* @summary Test that there are no inner classes attributes in case of there are no inner classes.
* @library /tools/lib /tools/javac/lib ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/classreader/BadClass.java 2015-05-26 21:41:39.711832234 -0700
+++ new/langtools/test/tools/javac/classreader/BadClass.java 2015-05-26 21:41:39.607832233 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6898851
* @summary Compiling against this corrupt class file causes a stacktrace from javac
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.File;
--- old/langtools/test/tools/javac/constDebug/ConstDebugTest.java 2015-05-26 21:41:40.067832240 -0700
+++ new/langtools/test/tools/javac/constDebug/ConstDebugTest.java 2015-05-26 21:41:39.963832238 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4645152 4785453
* @summary javac compiler incorrectly inserts when -g is specified
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run compile -g ConstDebugTest.java
* @run main ConstDebugTest
*/
--- old/langtools/test/tools/javac/defaultMethods/BadClassfile.java 2015-05-26 21:41:40.423832245 -0700
+++ new/langtools/test/tools/javac/defaultMethods/BadClassfile.java 2015-05-26 21:41:40.323832243 -0700
@@ -26,7 +26,7 @@
* @bug 8025087
* @summary Verify that pre-JDK8 classfiles with default and/or static methods
* are refused correctly.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.code
* jdk.compiler/com.sun.tools.javac.jvm
--- old/langtools/test/tools/javac/defaultMethods/CheckACC_STRICTFlagOnDefaultMethodTest.java 2015-05-26 21:41:40.783832250 -0700
+++ new/langtools/test/tools/javac/defaultMethods/CheckACC_STRICTFlagOnDefaultMethodTest.java 2015-05-26 21:41:40.683832249 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8012723
* @summary strictfp interface misses strictfp modifer on default method
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main CheckACC_STRICTFlagOnDefaultMethodTest
*/
--- old/langtools/test/tools/javac/defaultMethods/TestDefaultBody.java 2015-05-26 21:41:41.147832256 -0700
+++ new/langtools/test/tools/javac/defaultMethods/TestDefaultBody.java 2015-05-26 21:41:41.047832254 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7192246
* @summary check that code attributed for default methods is correctly generated
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.AccessFlags;
--- old/langtools/test/tools/javac/defaultMethods/TestNoBridgeOnDefaults.java 2015-05-26 21:41:41.511832261 -0700
+++ new/langtools/test/tools/javac/defaultMethods/TestNoBridgeOnDefaults.java 2015-05-26 21:41:41.411832260 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7192246
* @summary check that javac does not generate bridge methods for defaults
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.ClassFile;
--- old/langtools/test/tools/javac/defaultMethods/super/TestDirectSuperInterfaceInvoke.java 2015-05-26 21:41:41.871832266 -0700
+++ new/langtools/test/tools/javac/defaultMethods/super/TestDirectSuperInterfaceInvoke.java 2015-05-26 21:41:41.771832265 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8027281
* @summary As per JVMS 4.9.2, invokespecial can only refer to direct superinterfaces
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile TestDirectSuperInterfaceInvoke.java
* @run main TestDirectSuperInterfaceInvoke
*/
--- old/langtools/test/tools/javac/diags/CheckResourceKeys.java 2015-05-26 21:41:42.231832272 -0700
+++ new/langtools/test/tools/javac/diags/CheckResourceKeys.java 2015-05-26 21:41:42.131832270 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6964768 6964461 6964469 6964487 6964460 6964481 6980021
* @summary need test program to validate javac resource bundles
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.code
*/
--- old/langtools/test/tools/javac/expression/_super/NonDirectSuper/NonDirectSuper.java 2015-05-26 21:41:42.599832277 -0700
+++ new/langtools/test/tools/javac/expression/_super/NonDirectSuper/NonDirectSuper.java 2015-05-26 21:41:42.495832276 -0700
@@ -26,7 +26,7 @@
* @bug 8027789
* @summary check that the direct superclass is used as the site when calling
* a superclass' method
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile Base.java NonDirectSuper.java
* @run main test.NonDirectSuper
*/
--- old/langtools/test/tools/javac/flow/LVTHarness.java 2015-05-26 21:41:42.959832283 -0700
+++ new/langtools/test/tools/javac/flow/LVTHarness.java 2015-05-26 21:41:42.859832281 -0700
@@ -28,7 +28,7 @@
* javac crash while creating LVT entry for a local variable defined in
* an inner block
* @library /tools/javac/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @build JavacTestingAbstractProcessor LVTHarness
* @run main LVTHarness
*/
--- old/langtools/test/tools/javac/generics/bridges/BridgeHarness.java 2015-05-26 21:41:43.331832288 -0700
+++ new/langtools/test/tools/javac/generics/bridges/BridgeHarness.java 2015-05-26 21:41:43.227832287 -0700
@@ -26,7 +26,7 @@
* @bug 8013789
* @summary Compiler should emit bridges in interfaces
* @library /tools/javac/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.code
* jdk.compiler/com.sun.tools.javac.util
* @build JavacTestingAbstractProcessor BridgeHarness
--- old/langtools/test/tools/javac/jvm/ClassRefDupInConstantPoolTest.java 2015-05-26 21:41:43.703832294 -0700
+++ new/langtools/test/tools/javac/jvm/ClassRefDupInConstantPoolTest.java 2015-05-26 21:41:43.595832292 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8015927
* @summary Class reference duplicates in constant pool
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @clean ClassRefDupInConstantPoolTest$Duplicates.class
* @run main ClassRefDupInConstantPoolTest
*/
--- old/langtools/test/tools/javac/lambda/ByteCodeTest.java 2015-05-26 21:41:44.067832299 -0700
+++ new/langtools/test/tools/javac/lambda/ByteCodeTest.java 2015-05-26 21:41:43.963832297 -0700
@@ -26,7 +26,7 @@
* @bug 8011738
* @author sogoel
* @summary Code translation test for Lambda expressions, method references
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main ByteCodeTest
*/
--- old/langtools/test/tools/javac/lambda/LambdaTestStrictFPFlag.java 2015-05-26 21:41:44.439832304 -0700
+++ new/langtools/test/tools/javac/lambda/LambdaTestStrictFPFlag.java 2015-05-26 21:41:44.335832303 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8046060
* @summary Different results of floating point multiplication for lambda code block
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javac/lambda/LocalVariableTable.java 2015-05-26 21:41:44.799832310 -0700
+++ new/langtools/test/tools/javac/lambda/LocalVariableTable.java 2015-05-26 21:41:44.699832308 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8025998 8026749 8054220 8058227
* @summary Missing LV table in lambda bodies
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g LocalVariableTable.java
* @run main LocalVariableTable
*/
--- old/langtools/test/tools/javac/lambda/TestInvokeDynamic.java 2015-05-26 21:41:45.171832315 -0700
+++ new/langtools/test/tools/javac/lambda/TestInvokeDynamic.java 2015-05-26 21:41:45.067832314 -0700
@@ -28,7 +28,7 @@
* Add back-end support for invokedynamic
* temporarily workaround combo tests are causing time out in several platforms
* @library ../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.code
* jdk.compiler/com.sun.tools.javac.jvm
--- old/langtools/test/tools/javac/lambda/bytecode/TestLambdaBytecode.java 2015-05-26 21:41:45.539832321 -0700
+++ new/langtools/test/tools/javac/lambda/bytecode/TestLambdaBytecode.java 2015-05-26 21:41:45.435832319 -0700
@@ -26,7 +26,7 @@
* @bug 8009649
* @summary Lambda back-end should generate invokespecial for method handles referring to private instance methods
* @library ../../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* @build JavacTestingAbstractThreadedTest
* @run main/othervm TestLambdaBytecode
--- old/langtools/test/tools/javac/lambda/lambdaNaming/TestNonSerializableLambdaNameStability.java 2015-05-26 21:41:45.903832326 -0700
+++ new/langtools/test/tools/javac/lambda/lambdaNaming/TestNonSerializableLambdaNameStability.java 2015-05-26 21:41:45.803832325 -0700
@@ -26,7 +26,7 @@
* @bug 8067422
* @summary Check that the lambda names are not unnecessarily unstable
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.main
--- old/langtools/test/tools/javac/linenumbers/ConditionalLineNumberTest.java 2015-05-26 21:41:46.271832332 -0700
+++ new/langtools/test/tools/javac/linenumbers/ConditionalLineNumberTest.java 2015-05-26 21:41:46.159832330 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8034091
* @summary Add LineNumberTable attributes for conditional operator (?:) split across several lines.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.ClassFile;
--- old/langtools/test/tools/javac/linenumbers/NestedLineNumberTest.java 2015-05-26 21:41:46.631832337 -0700
+++ new/langtools/test/tools/javac/linenumbers/NestedLineNumberTest.java 2015-05-26 21:41:46.527832335 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 8061778
* @summary Wrong LineNumberTable for default constructors
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import com.sun.tools.classfile.ClassFile;
--- old/langtools/test/tools/javac/meth/TestCP.java 2015-05-26 21:41:46.991832342 -0700
+++ new/langtools/test/tools/javac/meth/TestCP.java 2015-05-26 21:41:46.891832341 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6991980
* @summary polymorphic signature calls don't share the same CP entries
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main TestCP
*/
--- old/langtools/test/tools/javac/multicatch/7005371/T7005371.java 2015-05-26 21:41:47.355832348 -0700
+++ new/langtools/test/tools/javac/multicatch/7005371/T7005371.java 2015-05-26 21:41:47.255832346 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7005371
* @summary Multicatch: assertion error while generating LocalVariableTypeTable attribute
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @compile -g SubTest.java
* @run main T7005371
*/
--- old/langtools/test/tools/javac/multicatch/Pos05.java 2015-05-26 21:41:47.723832353 -0700
+++ new/langtools/test/tools/javac/multicatch/Pos05.java 2015-05-26 21:41:47.619832352 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6943289
* @summary Project Coin: Improved Exception Handling for Java (aka 'multicatch')
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* @run main Pos05
*/
--- old/langtools/test/tools/javac/varargs/6199075/T6199075.java 2015-05-26 21:41:48.083832359 -0700
+++ new/langtools/test/tools/javac/varargs/6199075/T6199075.java 2015-05-26 21:41:47.979832357 -0700
@@ -28,7 +28,7 @@
* @summary Unambiguous varargs method calls flagged as ambiguous
* @author mcimadamore
*
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.util
--- old/langtools/test/tools/javac/varargs/7042566/T7042566.java 2015-05-26 21:41:48.443832364 -0700
+++ new/langtools/test/tools/javac/varargs/7042566/T7042566.java 2015-05-26 21:41:48.339832362 -0700
@@ -27,7 +27,7 @@
* @summary Unambiguous varargs method calls flagged as ambiguous
* temporarily workaround combo tests are causing time out in several platforms
* @library ../../lib
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.util
* @build JavacTestingAbstractThreadedTest
* @run main/othervm T7042566
--- old/langtools/test/tools/javadoc/CheckResourceKeys.java 2015-05-26 21:41:48.815832369 -0700
+++ new/langtools/test/tools/javadoc/CheckResourceKeys.java 2015-05-26 21:41:48.707832368 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8000612
* @summary need test program to validate javadoc resource bundles
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javap/4111861/T4111861.java 2015-05-26 21:41:49.531832380 -0700
+++ new/langtools/test/tools/javap/4111861/T4111861.java 2015-05-26 21:41:49.431832378 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 4111861
* @summary static final field contents are not displayed
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T4111861 {
public static void main(String... args) throws Exception {
--- old/langtools/test/tools/javap/4870651/T4870651.java 2015-05-26 21:41:49.895832385 -0700
+++ new/langtools/test/tools/javap/4870651/T4870651.java 2015-05-26 21:41:49.791832384 -0700
@@ -26,7 +26,7 @@
* @bug 4870651 6715757
* @summary javap should recognize generics, varargs, enum;
* javap prints "extends java.lang.Object"
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @build T4870651 Test
* @run main T4870651
*/
--- old/langtools/test/tools/javap/6937244/T6937244.java 2015-05-26 21:41:50.259832391 -0700
+++ new/langtools/test/tools/javap/6937244/T6937244.java 2015-05-26 21:41:50.159832389 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6937244
* @summary fields display with JVMS names, not Java names
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/6937244/T6937244A.java 2015-05-26 21:41:50.619832396 -0700
+++ new/langtools/test/tools/javap/6937244/T6937244A.java 2015-05-26 21:41:50.515832395 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6937244
* @summary fields display with JVMS names, not Java names
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/8006334/JavapTaskCtorFailWithNPE.java 2015-05-26 21:41:50.979832401 -0700
+++ new/langtools/test/tools/javap/8006334/JavapTaskCtorFailWithNPE.java 2015-05-26 21:41:50.875832400 -0700
@@ -26,7 +26,7 @@
* @bug 8006334
* @summary javap: JavapTask constructor breaks with null pointer exception if
* parameter options is null
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.File;
--- old/langtools/test/tools/javap/8007907/JavapReturns0AfterClassNotFoundTest.java 2015-05-26 21:41:51.339832407 -0700
+++ new/langtools/test/tools/javap/8007907/JavapReturns0AfterClassNotFoundTest.java 2015-05-26 21:41:51.235832405 -0700
@@ -26,7 +26,7 @@
* @bug 8007907
* @summary javap, method com.sun.tools.javap.Main.run returns 0 even in case
* of class not found error
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.IOException;
--- old/langtools/test/tools/javap/AccessModifiers.java 2015-05-26 21:41:51.699832412 -0700
+++ new/langtools/test/tools/javap/AccessModifiers.java 2015-05-26 21:41:51.591832411 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8027530
* @summary test -public, -protected, -package, -private options
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/BadAttributeLength.java 2015-05-26 21:41:52.059832417 -0700
+++ new/langtools/test/tools/javap/BadAttributeLength.java 2015-05-26 21:41:51.959832416 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8047072
* @summary javap OOM on fuzzed classfile
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @run main BadAttributeLength
*/
--- old/langtools/test/tools/javap/BoundsTypeVariableTest.java 2015-05-26 21:41:52.419832423 -0700
+++ new/langtools/test/tools/javap/BoundsTypeVariableTest.java 2015-05-26 21:41:52.315832421 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8003537
* @summary javap should not use / in Bounds Type Variables
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.File;
--- old/langtools/test/tools/javap/DescriptorTest.java 2015-05-26 21:41:52.779832428 -0700
+++ new/langtools/test/tools/javap/DescriptorTest.java 2015-05-26 21:41:52.675832427 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8007052
* @summary javap should include the descriptor for a method in verbose mode
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.File;
--- old/langtools/test/tools/javap/ExtPath.java 2015-05-26 21:41:53.139832433 -0700
+++ new/langtools/test/tools/javap/ExtPath.java 2015-05-26 21:41:53.035832432 -0700
@@ -27,7 +27,7 @@
* @bug 6428896
* @summary javap cannot read multiple entries on the extension classpath
* @author Wei Tao
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @run main/othervm ExtPath com.sun.crypto.provider.SunJCE
*/
--- old/langtools/test/tools/javap/InvalidOptions.java 2015-05-26 21:41:53.507832439 -0700
+++ new/langtools/test/tools/javap/InvalidOptions.java 2015-05-26 21:41:53.399832437 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8027411 8032869
* @summary test an invalid option
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/MethodParameters.java 2015-05-26 21:41:53.867832444 -0700
+++ new/langtools/test/tools/javap/MethodParameters.java 2015-05-26 21:41:53.763832443 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8004727 8005647
* @summary javac should generate method parameters correctly.
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/StackMapTableTest.java 2015-05-26 21:41:54.243832450 -0700
+++ new/langtools/test/tools/javap/StackMapTableTest.java 2015-05-26 21:41:54.131832448 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8033930 8033913
* @summary bad formatting of StackMapTable entries
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4075403.java 2015-05-26 21:41:54.599832455 -0700
+++ new/langtools/test/tools/javap/T4075403.java 2015-05-26 21:41:54.495832454 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4075403
* @summary Use javap to inquire about a specific inner class
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
--- old/langtools/test/tools/javap/T4459541.java 2015-05-26 21:41:54.963832460 -0700
+++ new/langtools/test/tools/javap/T4459541.java 2015-05-26 21:41:54.859832459 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4459541
* @summary "javap -l" shows line numbers as signed short; they should be unsigned.
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4501660.java 2015-05-26 21:41:55.335832466 -0700
+++ new/langtools/test/tools/javap/T4501660.java 2015-05-26 21:41:55.235832465 -0700
@@ -26,7 +26,7 @@
* @bug 4501660
* @summary change diagnostic of -help as 'print this help message and exit'
* (actually, verify -help does not cause premature exit)
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4501661.java 2015-05-26 21:41:55.695832471 -0700
+++ new/langtools/test/tools/javap/T4501661.java 2015-05-26 21:41:55.591832470 -0700
@@ -28,7 +28,7 @@
* @test
* @bug 4501661
* @summary disallow mixing -public, -private, and -protected
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T4501661 {
public static void main(String... args) throws Exception {
--- old/langtools/test/tools/javap/T4777949.java 2015-05-26 21:41:56.055832477 -0700
+++ new/langtools/test/tools/javap/T4777949.java 2015-05-26 21:41:55.951832475 -0700
@@ -30,7 +30,7 @@
* @test
* @bug 4777949
* @summary Warn javap usage on package with simple name
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T4777949 {
public static void main(String... args) throws Exception {
--- old/langtools/test/tools/javap/T4876942.java 2015-05-26 21:41:56.415832482 -0700
+++ new/langtools/test/tools/javap/T4876942.java 2015-05-26 21:41:56.311832480 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4876942 6715251
* @summary javap invoked without args does not print help screen
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4880663.java 2015-05-26 21:41:56.775832487 -0700
+++ new/langtools/test/tools/javap/T4880663.java 2015-05-26 21:41:56.671832486 -0700
@@ -26,7 +26,7 @@
* @bug 4880663 6715757 7031005
* @summary javap could output whitespace between class name and opening brace
* javap prints "extends java.lang.Object"
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
--- old/langtools/test/tools/javap/T4880672.java 2015-05-26 21:41:57.135832493 -0700
+++ new/langtools/test/tools/javap/T4880672.java 2015-05-26 21:41:57.035832491 -0700
@@ -26,7 +26,7 @@
* @test
* @bug 4880672 7031005
* @summary javap does not output inner interfaces of an interface
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4884240.java 2015-05-26 21:41:57.491832498 -0700
+++ new/langtools/test/tools/javap/T4884240.java 2015-05-26 21:41:57.387832496 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 4884240
* @summary additional option required for javap
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T4975569.java 2015-05-26 21:41:57.851832503 -0700
+++ new/langtools/test/tools/javap/T4975569.java 2015-05-26 21:41:57.747832502 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 4975569 6622215 8034861
* @summary javap doesn't print new flag bits
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6271787.java 2015-05-26 21:41:58.211832509 -0700
+++ new/langtools/test/tools/javap/T6271787.java 2015-05-26 21:41:58.107832507 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6271787
* @summary javap dumps LocalVariableTypeTable attribute in hex, needs to print a table
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6474890.java 2015-05-26 21:41:58.575832514 -0700
+++ new/langtools/test/tools/javap/T6474890.java 2015-05-26 21:41:58.467832512 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6474890
* @summary javap does not open .zip files in -classpath
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6587786.java 2015-05-26 21:41:58.935832519 -0700
+++ new/langtools/test/tools/javap/T6587786.java 2015-05-26 21:41:58.827832518 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6587786
* @summary Javap throws error : "ERROR:Could not find " for JRE classes
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6622216.java 2015-05-26 21:41:59.295832525 -0700
+++ new/langtools/test/tools/javap/T6622216.java 2015-05-26 21:41:59.191832523 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6622216
* @summary javap names some attributes incorrectly
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6622232.java 2015-05-26 21:41:59.651832530 -0700
+++ new/langtools/test/tools/javap/T6622232.java 2015-05-26 21:41:59.547832528 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6622232
* @summary javap gets whitespace confused
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6622260.java 2015-05-26 21:42:00.007832535 -0700
+++ new/langtools/test/tools/javap/T6622260.java 2015-05-26 21:41:59.903832534 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6622260
* @summary javap prints negative bytes incorrectly in hex
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6715251.java 2015-05-26 21:42:00.383832541 -0700
+++ new/langtools/test/tools/javap/T6715251.java 2015-05-26 21:42:00.279832539 -0700
@@ -28,7 +28,7 @@
* @test
* @bug 6715251
* @summary javap should be consistent with javac and return 2 if given no arguments
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T6715251 {
--- old/langtools/test/tools/javap/T6715753.java 2015-05-26 21:42:00.743832546 -0700
+++ new/langtools/test/tools/javap/T6715753.java 2015-05-26 21:42:00.639832545 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 6715753
* @summary Use javap to inquire about a specific inner class
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T6715753 {
--- old/langtools/test/tools/javap/T6715767.java 2015-05-26 21:42:01.103832552 -0700
+++ new/langtools/test/tools/javap/T6715767.java 2015-05-26 21:42:00.999832550 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6715767
* @summary javap on java.lang.ClassLoader crashes
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6716452.java 2015-05-26 21:42:01.463832557 -0700
+++ new/langtools/test/tools/javap/T6716452.java 2015-05-26 21:42:01.359832555 -0700
@@ -24,7 +24,7 @@
/*
* @test 6716452
* @summary need a method to get an index of an attribute
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6824493.java 2015-05-26 21:42:01.827832562 -0700
+++ new/langtools/test/tools/javap/T6824493.java 2015-05-26 21:42:01.719832561 -0700
@@ -28,7 +28,7 @@
* @test
* @bug 6824493
* @summary experimental support for additional info for instructions
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @compile -g T6824493.java
* @run main T6824493
*/
--- old/langtools/test/tools/javap/T6863746.java 2015-05-26 21:42:02.187832568 -0700
+++ new/langtools/test/tools/javap/T6863746.java 2015-05-26 21:42:02.083832566 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 6863746
* @summary javap should not scan ct.sym by default
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T6863746 {
--- old/langtools/test/tools/javap/T6866657.java 2015-05-26 21:42:02.547832573 -0700
+++ new/langtools/test/tools/javap/T6866657.java 2015-05-26 21:42:02.443832571 -0700
@@ -26,7 +26,7 @@
* @test
* @bug 6866657
* @summary add byteLength() method to primary classfile types
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6868539.java 2015-05-26 21:42:02.907832578 -0700
+++ new/langtools/test/tools/javap/T6868539.java 2015-05-26 21:42:02.803832577 -0700
@@ -26,7 +26,7 @@
* @bug 6868539 6868548 8035364
* @summary javap should use current names for constant pool entries,
* remove spurious ';' from constant pool entries
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T6879371.java 2015-05-26 21:42:03.267832584 -0700
+++ new/langtools/test/tools/javap/T6879371.java 2015-05-26 21:42:03.163832582 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6879371
* @summary javap does not close internal default file manager
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T7004698.java 2015-05-26 21:42:03.627832589 -0700
+++ new/langtools/test/tools/javap/T7004698.java 2015-05-26 21:42:03.523832587 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7004698
* @summary javap does not output CharacterRangeTable attributes correctly
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T7186925.java 2015-05-26 21:42:03.991832594 -0700
+++ new/langtools/test/tools/javap/T7186925.java 2015-05-26 21:42:03.887832593 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7186925
* @summary JavapTask passes null to java.io.Writer
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javap/T7190862.java 2015-05-26 21:42:04.347832600 -0700
+++ new/langtools/test/tools/javap/T7190862.java 2015-05-26 21:42:04.243832598 -0700
@@ -3,7 +3,7 @@
* @test /nodynamiccopyright/
* @bug 7190862 7109747
* @summary javap shows an incorrect type for operands if the 'wide' prefix is used
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import com.sun.source.util.JavacTask;
--- old/langtools/test/tools/javap/T8032814.java 2015-05-26 21:42:04.707832605 -0700
+++ new/langtools/test/tools/javap/T8032814.java 2015-05-26 21:42:04.603832603 -0700
@@ -26,7 +26,7 @@
* @bug 8032814
* @summary LineNumberTable/LocalVariableTable tables duplication for the
* "-v -l" combination of options
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @compile -g T8032814.java
* @run main T8032814
*/
--- old/langtools/test/tools/javap/T8032819.java 2015-05-26 21:42:05.067832610 -0700
+++ new/langtools/test/tools/javap/T8032819.java 2015-05-26 21:42:04.959832609 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8032819
* @summary Extra empty line between field declarations for the "-v -c" and "-v -l" combination of options
- * @modules jdk.compiler
+ * @modules jdk.jdeps
* @compile -g T8032819.java
* @run main T8032819
*/
--- old/langtools/test/tools/javap/T8033180.java 2015-05-26 21:42:05.427832616 -0700
+++ new/langtools/test/tools/javap/T8033180.java 2015-05-26 21:42:05.323832614 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8033180
* @summary Bad newline characters
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T8033711.java 2015-05-26 21:42:05.787832621 -0700
+++ new/langtools/test/tools/javap/T8033711.java 2015-05-26 21:42:05.683832619 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8033711
* @summary An exception is thrown if using the "-classpath" option with no arguments
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
--- old/langtools/test/tools/javap/T8035104.java 2015-05-26 21:42:06.147832626 -0700
+++ new/langtools/test/tools/javap/T8035104.java 2015-05-26 21:42:06.043832625 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8035104
* @summary reorder class file attributes in javap listing
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/T8038414.java 2015-05-26 21:42:06.507832632 -0700
+++ new/langtools/test/tools/javap/T8038414.java 2015-05-26 21:42:06.407832630 -0700
@@ -32,7 +32,7 @@
* @test
* @bug 8038414
* @summary Constant pool's strings are not escaped properly
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T8038414 {
private static final String NEW_LINE = System.getProperty("line.separator");
--- old/langtools/test/tools/javap/TestSuperclass.java 2015-05-26 21:42:06.875832637 -0700
+++ new/langtools/test/tools/javap/TestSuperclass.java 2015-05-26 21:42:06.771832636 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 7031005
* @summary javap prints "extends java.lang.Object"
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.File;
--- old/langtools/test/tools/javap/WhitespaceTest.java 2015-05-26 21:42:07.235832642 -0700
+++ new/langtools/test/tools/javap/WhitespaceTest.java 2015-05-26 21:42:07.131832641 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 8033581 8033798 8033726
* @summary Check whitespace in generated output
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
import java.io.*;
--- old/langtools/test/tools/javap/classfile/T6887895.java 2015-05-26 21:42:07.599832648 -0700
+++ new/langtools/test/tools/javap/classfile/T6887895.java 2015-05-26 21:42:07.495832646 -0700
@@ -25,7 +25,7 @@
* @test
* @bug 6887895
* @summary CONSTANT_Class_info getBaseName does not handle arrays of primitives correctly
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
import java.io.*;
--- old/langtools/test/tools/javap/classfile/deps/T6907575.java 2015-05-26 21:42:07.967832653 -0700
+++ new/langtools/test/tools/javap/classfile/deps/T6907575.java 2015-05-26 21:42:07.859832652 -0700
@@ -26,7 +26,7 @@
/*
* @test
* @bug 6907575
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
* jdk.compiler/com.sun.tools.javac.file
* jdk.compiler/com.sun.tools.javac.util
* @build GetDeps p.C1
--- old/langtools/test/tools/javap/stackmap/StackmapTest.java 2015-05-26 21:42:08.323832659 -0700
+++ new/langtools/test/tools/javap/stackmap/StackmapTest.java 2015-05-26 21:42:08.223832657 -0700
@@ -26,9 +26,9 @@
* @bug 6271292
* @summary Verify that javap prints StackMapTable attribute contents
* @library /tools/lib
- * @modules jdk.compiler/com.sun.tools.javac.api
- * jdk.compiler/com.sun.tools.javac.file
- * jdk.compiler/com.sun.tools.javac.main
+ * @modules jdk.jdeps/com.sun.tools.javac.api
+ * jdk.jdeps/com.sun.tools.javac.file
+ * jdk.jdeps/com.sun.tools.javac.main
* @build ToolBox
* @run main StackmapTest
*/
--- old/langtools/test/tools/javap/typeAnnotations/JSR175Annotations.java 2015-05-26 21:42:08.687832664 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/JSR175Annotations.java 2015-05-26 21:42:08.583832662 -0700
@@ -28,7 +28,7 @@
* @test JSR175Annotations
* @bug 6843077
* @summary test that only type annotations are recorded as such in classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class JSR175Annotations {
--- old/langtools/test/tools/javap/typeAnnotations/NewArray.java 2015-05-26 21:42:09.051832669 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/NewArray.java 2015-05-26 21:42:08.947832668 -0700
@@ -28,7 +28,7 @@
* @test NewArray
* @bug 6843077
* @summary Test type annotations on local array are in method's code attribute.
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class NewArray {
--- old/langtools/test/tools/javap/typeAnnotations/Presence.java 2015-05-26 21:42:09.411832675 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/Presence.java 2015-05-26 21:42:09.307832673 -0700
@@ -30,7 +30,7 @@
* @test Presence
* @bug 6843077
* @summary test that all type annotations are present in the classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class Presence {
--- old/langtools/test/tools/javap/typeAnnotations/PresenceInner.java 2015-05-26 21:42:09.779832680 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/PresenceInner.java 2015-05-26 21:42:09.675832679 -0700
@@ -28,7 +28,7 @@
* @test PresenceInner
* @bug 6843077
* @summary test that annotations in inner types count only once
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class PresenceInner {
--- old/langtools/test/tools/javap/typeAnnotations/T6855990.java 2015-05-26 21:42:10.143832686 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/T6855990.java 2015-05-26 21:42:10.039832684 -0700
@@ -27,7 +27,7 @@
* @test
* @bug 6855990
* @summary InstructionDetailWriter should support new 308 annotations attribute
- * @modules jdk.compiler
+ * @modules jdk.jdeps
*/
public class T6855990 {
--- old/langtools/test/tools/javap/typeAnnotations/TypeCasts.java 2015-05-26 21:42:10.503832691 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/TypeCasts.java 2015-05-26 21:42:10.399832689 -0700
@@ -29,7 +29,7 @@
* @bug 6843077
* @summary test that typecasts annotation are emitted if only the cast
* expression is optimized away
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class TypeCasts {
--- old/langtools/test/tools/javap/typeAnnotations/Visibility.java 2015-05-26 21:42:10.867832696 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/Visibility.java 2015-05-26 21:42:10.763832695 -0700
@@ -28,7 +28,7 @@
* @test Visibility
* @bug 6843077
* @summary test that type annotations are recorded in the classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class Visibility {
--- old/langtools/test/tools/javap/typeAnnotations/Wildcards.java 2015-05-26 21:42:11.235832702 -0700
+++ new/langtools/test/tools/javap/typeAnnotations/Wildcards.java 2015-05-26 21:42:11.131832700 -0700
@@ -28,7 +28,7 @@
* @test Wildcards
* @bug 6843077
* @summary test that annotations target wildcards get emitted to classfile
- * @modules jdk.compiler/com.sun.tools.classfile
+ * @modules jdk.jdeps/com.sun.tools.classfile
*/
public class Wildcards {
public static void main(String[] args) throws Exception {
--- old/langtools/test/tools/jdeps/APIDeps.java 2015-05-26 21:42:11.595832707 -0700
+++ new/langtools/test/tools/jdeps/APIDeps.java 2015-05-26 21:42:11.491832705 -0700
@@ -27,8 +27,8 @@
* @summary Test -apionly and -jdkinternals options
* @modules java.base/sun.misc
* java.management
- * jdk.compiler/com.sun.tools.classfile
- * jdk.dev/com.sun.tools.jdeps
+ * jdk.jdeps/com.sun.tools.classfile
+ * jdk.jdeps/com.sun.tools.jdeps
* @build m.Bar m.Foo m.Gee b.B c.C c.I d.D e.E f.F g.G
* @run main APIDeps
*/
--- old/langtools/test/tools/jdeps/Basic.java 2015-05-26 21:42:11.955832712 -0700
+++ new/langtools/test/tools/jdeps/Basic.java 2015-05-26 21:42:11.851832711 -0700
@@ -26,7 +26,7 @@
* @bug 8003562 8005428 8015912 8027481 8048063 8068937
* @summary Basic tests for jdeps tool
* @modules java.management
- * jdk.dev/com.sun.tools.jdeps
+ * jdk.jdeps/com.sun.tools.jdeps
* @build Test p.Foo p.Bar p.C p.SubClass q.Gee javax.activity.NotCompactProfile
* @run main Basic
*/
--- old/langtools/test/tools/jdeps/DotFileTest.java 2015-05-26 21:42:12.323832718 -0700
+++ new/langtools/test/tools/jdeps/DotFileTest.java 2015-05-26 21:42:12.219832716 -0700
@@ -26,7 +26,7 @@
* @bug 8003562
* @summary Basic tests for jdeps -dotoutput option
* @modules java.management
- * jdk.dev/com.sun.tools.jdeps
+ * jdk.jdeps/com.sun.tools.jdeps
* @build Test p.Foo p.Bar javax.activity.NotCompactProfile
* @run main DotFileTest
*/
--- old/langtools/test/tools/jdeps/VerboseFormat/JdepsDependencyClosure.java 2015-05-26 21:42:12.687832723 -0700
+++ new/langtools/test/tools/jdeps/VerboseFormat/JdepsDependencyClosure.java 2015-05-26 21:42:12.583832722 -0700
@@ -43,7 +43,7 @@
* @summary Test that jdeps verbose output has a summary line when dependencies
* are found within the same archive. For each testcase, compare the
* result obtained from jdeps with the expected result.
- * @modules jdk.dev/com.sun.tools.jdeps
+ * @modules jdk.jdeps/com.sun.tools.jdeps
* @build use.indirect.DontUseUnsafe2
* @build use.indirect.UseUnsafeIndirectly
* @build use.indirect2.DontUseUnsafe3
--- old/jdk/make/closed/jdk.tbom 2015-05-26 21:42:13.027832728 -0700
+++ new/jdk/make/closed/jdk.tbom 2015-05-26 21:42:12.947832727 -0700
@@ -61,42 +61,42 @@
-
-
-
-
-
-
-
-
@@ -106,7 +106,7 @@
-
@@ -196,7 +196,7 @@
-
@@ -325,7 +325,7 @@
-
--- old/jdk/make/gendata/Gendata-jdk.dev.gmk 2015-05-26 21:42:13.523832736 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,42 +0,0 @@
-#
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# This code is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License version 2 only, as
-# published by the Free Software Foundation. Oracle designates this
-# particular file as subject to the "Classpath" exception as provided
-# by Oracle in the LICENSE file that accompanied this code.
-#
-# This code is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# version 2 for more details (a copy is included in the LICENSE file that
-# accompanied this code).
-#
-# You should have received a copy of the GNU General Public License version
-# 2 along with this work; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
-# or visit www.oracle.com if you need additional information or have any
-# questions.
-#
-
-include GendataCommon.gmk
-
-$(eval $(call IncludeCustomExtension, jdk, gendata/Gendata-jdk.dev.gmk))
-
-JDEPS_MODULES_XML := $(JDK_OUTPUTDIR)/modules/jdk.dev/com/sun/tools/jdeps/resources/jdeps-modules.xml
-MODULES_XML += $(TOPDIR)/modules.xml
-
-#
-# Generate modules.xml for jdeps to use
-# It augments $(TOPDIR)/modules.xml to include module membership
-#
-$(JDEPS_MODULES_XML): $(BUILD_TOOLS_JDK) $(MODULES_XML)
- $(MKDIR) -p $(@D)
- $(RM) $@
- $(TOOL_GENMODULESXML) -o $@ -mp $(JDK_OUTPUTDIR)/modules $(MODULES_XML)
-
-TARGETS += $(JDEPS_MODULES_XML)
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/jdk/make/gendata/Gendata-jdk.jdeps.gmk 2015-05-26 21:42:13.295832732 -0700
@@ -0,0 +1,42 @@
+#
+# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+#
+
+include GendataCommon.gmk
+
+$(eval $(call IncludeCustomExtension, jdk, gendata/Gendata-jdk.jdeps.gmk))
+
+JDEPS_MODULES_XML := $(JDK_OUTPUTDIR)/modules/jdk.jdeps/com/sun/tools/jdeps/resources/jdeps-modules.xml
+MODULES_XML += $(TOPDIR)/modules.xml
+
+#
+# Generate modules.xml for jdeps to use
+# It augments $(TOPDIR)/modules.xml to include module membership
+#
+$(JDEPS_MODULES_XML): $(BUILD_TOOLS_JDK) $(MODULES_XML)
+ $(MKDIR) -p $(@D)
+ $(RM) $@
+ $(TOOL_GENMODULESXML) -o $@ -mp $(JDK_OUTPUTDIR)/modules $(MODULES_XML)
+
+TARGETS += $(JDEPS_MODULES_XML)
--- old/jdk/make/closed/gendata/Gendata-jdk.dev.gmk 2015-05-26 21:42:14.399832749 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,6 +0,0 @@
-#
-# Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
-# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-#
-
-MODULES_XML += $(TOPDIR)/closed/modules.xml
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/jdk/make/closed/gendata/Gendata-jdk.jdeps.gmk 2015-05-26 21:42:13.811832740 -0700
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
+# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+#
+
+MODULES_XML += $(TOPDIR)/closed/modules.xml
--- old/langtools/make/gensrc/Gensrc-jdk.dev.gmk 2015-05-26 21:42:14.699832753 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,33 +0,0 @@
-#
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# This code is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License version 2 only, as
-# published by the Free Software Foundation. Oracle designates this
-# particular file as subject to the "Classpath" exception as provided
-# by Oracle in the LICENSE file that accompanied this code.
-#
-# This code is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# version 2 for more details (a copy is included in the LICENSE file that
-# accompanied this code).
-#
-# You should have received a copy of the GNU General Public License version
-# 2 along with this work; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
-# or visit www.oracle.com if you need additional information or have any
-# questions.
-#
-
-include GensrcCommon.gmk
-
-$(eval $(call SetupVersionProperties,JDEPS_VERSION,\
- com/sun/tools/jdeps/resources/version.properties))
-
-$(eval $(call SetupCompileProperties,COMPILE_PROPERTIES, $(JDEPS_VERSION)))
-
-all: $(COMPILE_PROPERTIES)
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/make/gensrc/Gensrc-jdk.jdeps.gmk 2015-05-26 21:42:14.527832750 -0700
@@ -0,0 +1,37 @@
+#
+# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation. Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+#
+
+include GensrcCommon.gmk
+
+$(eval $(call SetupVersionProperties,JAVAP_VERSION, \
+ com/sun/tools/javap/resources/version.properties))
+
+$(eval $(call SetupVersionProperties,JDEPS_VERSION,\
+ com/sun/tools/jdeps/resources/version.properties))
+
+$(eval $(call SetupCompileProperties,COMPILE_PROPERTIES,\
+ $(JDEPS_VERSION) $(JAVAP_VERSION)))
+
+all: $(COMPILE_PROPERTIES)
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/AccessFlags.java 2015-05-26 21:42:15.143832760 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,258 +0,0 @@
-/*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-import java.util.LinkedHashSet;
-import java.util.Set;
-
-/**
- * See JVMS, sections 4.2, 4.6, 4.7.
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class AccessFlags {
- public static final int ACC_PUBLIC = 0x0001; // class, inner, field, method
- public static final int ACC_PRIVATE = 0x0002; // inner, field, method
- public static final int ACC_PROTECTED = 0x0004; // inner, field, method
- public static final int ACC_STATIC = 0x0008; // inner, field, method
- public static final int ACC_FINAL = 0x0010; // class, inner, field, method
- public static final int ACC_SUPER = 0x0020; // class
- public static final int ACC_SYNCHRONIZED = 0x0020; // method
- public static final int ACC_VOLATILE = 0x0040; // field
- public static final int ACC_BRIDGE = 0x0040; // method
- public static final int ACC_TRANSIENT = 0x0080; // field
- public static final int ACC_VARARGS = 0x0080; // method
- public static final int ACC_NATIVE = 0x0100; // method
- public static final int ACC_INTERFACE = 0x0200; // class, inner
- public static final int ACC_ABSTRACT = 0x0400; // class, inner, method
- public static final int ACC_STRICT = 0x0800; // method
- public static final int ACC_SYNTHETIC = 0x1000; // class, inner, field, method
- public static final int ACC_ANNOTATION = 0x2000; // class, inner
- public static final int ACC_ENUM = 0x4000; // class, inner, field
- public static final int ACC_MANDATED = 0x8000; // class, inner, field, method
-
- public static enum Kind { Class, InnerClass, Field, Method}
-
- AccessFlags(ClassReader cr) throws IOException {
- this(cr.readUnsignedShort());
- }
-
- public AccessFlags(int flags) {
- this.flags = flags;
- }
-
- public AccessFlags ignore(int mask) {
- return new AccessFlags(flags & ~mask);
- }
-
- public boolean is(int mask) {
- return (flags & mask) != 0;
- }
-
- public int byteLength() {
- return 2;
- }
-
- private static final int[] classModifiers = {
- ACC_PUBLIC, ACC_FINAL, ACC_ABSTRACT
- };
-
- private static final int[] classFlags = {
- ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_INTERFACE, ACC_ABSTRACT,
- ACC_SYNTHETIC, ACC_ANNOTATION, ACC_ENUM
- };
-
- public Set getClassModifiers() {
- int f = ((flags & ACC_INTERFACE) != 0 ? flags & ~ACC_ABSTRACT : flags);
- return getModifiers(f, classModifiers, Kind.Class);
- }
-
- public Set getClassFlags() {
- return getFlags(classFlags, Kind.Class);
- }
-
- private static final int[] innerClassModifiers = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
- ACC_ABSTRACT
- };
-
- private static final int[] innerClassFlags = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_SUPER,
- ACC_INTERFACE, ACC_ABSTRACT, ACC_SYNTHETIC, ACC_ANNOTATION, ACC_ENUM
- };
-
- public Set getInnerClassModifiers() {
- int f = ((flags & ACC_INTERFACE) != 0 ? flags & ~ACC_ABSTRACT : flags);
- return getModifiers(f, innerClassModifiers, Kind.InnerClass);
- }
-
- public Set getInnerClassFlags() {
- return getFlags(innerClassFlags, Kind.InnerClass);
- }
-
- private static final int[] fieldModifiers = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
- ACC_VOLATILE, ACC_TRANSIENT
- };
-
- private static final int[] fieldFlags = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
- ACC_VOLATILE, ACC_TRANSIENT, ACC_SYNTHETIC, ACC_ENUM
- };
-
- public Set getFieldModifiers() {
- return getModifiers(fieldModifiers, Kind.Field);
- }
-
- public Set getFieldFlags() {
- return getFlags(fieldFlags, Kind.Field);
- }
-
- private static final int[] methodModifiers = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
- ACC_SYNCHRONIZED, ACC_NATIVE, ACC_ABSTRACT, ACC_STRICT
- };
-
- private static final int[] methodFlags = {
- ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
- ACC_SYNCHRONIZED, ACC_BRIDGE, ACC_VARARGS, ACC_NATIVE, ACC_ABSTRACT,
- ACC_STRICT, ACC_SYNTHETIC
- };
-
- public Set getMethodModifiers() {
- return getModifiers(methodModifiers, Kind.Method);
- }
-
- public Set getMethodFlags() {
- return getFlags(methodFlags, Kind.Method);
- }
-
- private Set getModifiers(int[] modifierFlags, Kind t) {
- return getModifiers(flags, modifierFlags, t);
- }
-
- private static Set getModifiers(int flags, int[] modifierFlags, Kind t) {
- Set s = new LinkedHashSet<>();
- for (int m: modifierFlags) {
- if ((flags & m) != 0)
- s.add(flagToModifier(m, t));
- }
- return s;
- }
-
- private Set getFlags(int[] expectedFlags, Kind t) {
- Set s = new LinkedHashSet<>();
- int f = flags;
- for (int e: expectedFlags) {
- if ((f & e) != 0) {
- s.add(flagToName(e, t));
- f = f & ~e;
- }
- }
- while (f != 0) {
- int bit = Integer.highestOneBit(f);
- s.add("0x" + Integer.toHexString(bit));
- f = f & ~bit;
- }
- return s;
- }
-
- private static String flagToModifier(int flag, Kind t) {
- switch (flag) {
- case ACC_PUBLIC:
- return "public";
- case ACC_PRIVATE:
- return "private";
- case ACC_PROTECTED:
- return "protected";
- case ACC_STATIC:
- return "static";
- case ACC_FINAL:
- return "final";
- case ACC_SYNCHRONIZED:
- return "synchronized";
- case 0x80:
- return (t == Kind.Field ? "transient" : null);
- case ACC_VOLATILE:
- return "volatile";
- case ACC_NATIVE:
- return "native";
- case ACC_ABSTRACT:
- return "abstract";
- case ACC_STRICT:
- return "strictfp";
- case ACC_MANDATED:
- return "mandated";
- default:
- return null;
- }
- }
-
- private static String flagToName(int flag, Kind t) {
- switch (flag) {
- case ACC_PUBLIC:
- return "ACC_PUBLIC";
- case ACC_PRIVATE:
- return "ACC_PRIVATE";
- case ACC_PROTECTED:
- return "ACC_PROTECTED";
- case ACC_STATIC:
- return "ACC_STATIC";
- case ACC_FINAL:
- return "ACC_FINAL";
- case 0x20:
- return (t == Kind.Class ? "ACC_SUPER" : "ACC_SYNCHRONIZED");
- case 0x40:
- return (t == Kind.Field ? "ACC_VOLATILE" : "ACC_BRIDGE");
- case 0x80:
- return (t == Kind.Field ? "ACC_TRANSIENT" : "ACC_VARARGS");
- case ACC_NATIVE:
- return "ACC_NATIVE";
- case ACC_INTERFACE:
- return "ACC_INTERFACE";
- case ACC_ABSTRACT:
- return "ACC_ABSTRACT";
- case ACC_STRICT:
- return "ACC_STRICT";
- case ACC_SYNTHETIC:
- return "ACC_SYNTHETIC";
- case ACC_ANNOTATION:
- return "ACC_ANNOTATION";
- case ACC_ENUM:
- return "ACC_ENUM";
- case ACC_MANDATED:
- return "ACC_MANDATED";
- default:
- return null;
- }
- }
-
- public final int flags;
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/AccessFlags.java 2015-05-26 21:42:14.967832757 -0700
@@ -0,0 +1,258 @@
+/*
+ * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+import java.util.LinkedHashSet;
+import java.util.Set;
+
+/**
+ * See JVMS, sections 4.2, 4.6, 4.7.
+ *
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class AccessFlags {
+ public static final int ACC_PUBLIC = 0x0001; // class, inner, field, method
+ public static final int ACC_PRIVATE = 0x0002; // inner, field, method
+ public static final int ACC_PROTECTED = 0x0004; // inner, field, method
+ public static final int ACC_STATIC = 0x0008; // inner, field, method
+ public static final int ACC_FINAL = 0x0010; // class, inner, field, method
+ public static final int ACC_SUPER = 0x0020; // class
+ public static final int ACC_SYNCHRONIZED = 0x0020; // method
+ public static final int ACC_VOLATILE = 0x0040; // field
+ public static final int ACC_BRIDGE = 0x0040; // method
+ public static final int ACC_TRANSIENT = 0x0080; // field
+ public static final int ACC_VARARGS = 0x0080; // method
+ public static final int ACC_NATIVE = 0x0100; // method
+ public static final int ACC_INTERFACE = 0x0200; // class, inner
+ public static final int ACC_ABSTRACT = 0x0400; // class, inner, method
+ public static final int ACC_STRICT = 0x0800; // method
+ public static final int ACC_SYNTHETIC = 0x1000; // class, inner, field, method
+ public static final int ACC_ANNOTATION = 0x2000; // class, inner
+ public static final int ACC_ENUM = 0x4000; // class, inner, field
+ public static final int ACC_MANDATED = 0x8000; // class, inner, field, method
+
+ public static enum Kind { Class, InnerClass, Field, Method}
+
+ AccessFlags(ClassReader cr) throws IOException {
+ this(cr.readUnsignedShort());
+ }
+
+ public AccessFlags(int flags) {
+ this.flags = flags;
+ }
+
+ public AccessFlags ignore(int mask) {
+ return new AccessFlags(flags & ~mask);
+ }
+
+ public boolean is(int mask) {
+ return (flags & mask) != 0;
+ }
+
+ public int byteLength() {
+ return 2;
+ }
+
+ private static final int[] classModifiers = {
+ ACC_PUBLIC, ACC_FINAL, ACC_ABSTRACT
+ };
+
+ private static final int[] classFlags = {
+ ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_INTERFACE, ACC_ABSTRACT,
+ ACC_SYNTHETIC, ACC_ANNOTATION, ACC_ENUM
+ };
+
+ public Set getClassModifiers() {
+ int f = ((flags & ACC_INTERFACE) != 0 ? flags & ~ACC_ABSTRACT : flags);
+ return getModifiers(f, classModifiers, Kind.Class);
+ }
+
+ public Set getClassFlags() {
+ return getFlags(classFlags, Kind.Class);
+ }
+
+ private static final int[] innerClassModifiers = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
+ ACC_ABSTRACT
+ };
+
+ private static final int[] innerClassFlags = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL, ACC_SUPER,
+ ACC_INTERFACE, ACC_ABSTRACT, ACC_SYNTHETIC, ACC_ANNOTATION, ACC_ENUM
+ };
+
+ public Set getInnerClassModifiers() {
+ int f = ((flags & ACC_INTERFACE) != 0 ? flags & ~ACC_ABSTRACT : flags);
+ return getModifiers(f, innerClassModifiers, Kind.InnerClass);
+ }
+
+ public Set getInnerClassFlags() {
+ return getFlags(innerClassFlags, Kind.InnerClass);
+ }
+
+ private static final int[] fieldModifiers = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
+ ACC_VOLATILE, ACC_TRANSIENT
+ };
+
+ private static final int[] fieldFlags = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
+ ACC_VOLATILE, ACC_TRANSIENT, ACC_SYNTHETIC, ACC_ENUM
+ };
+
+ public Set getFieldModifiers() {
+ return getModifiers(fieldModifiers, Kind.Field);
+ }
+
+ public Set getFieldFlags() {
+ return getFlags(fieldFlags, Kind.Field);
+ }
+
+ private static final int[] methodModifiers = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
+ ACC_SYNCHRONIZED, ACC_NATIVE, ACC_ABSTRACT, ACC_STRICT
+ };
+
+ private static final int[] methodFlags = {
+ ACC_PUBLIC, ACC_PRIVATE, ACC_PROTECTED, ACC_STATIC, ACC_FINAL,
+ ACC_SYNCHRONIZED, ACC_BRIDGE, ACC_VARARGS, ACC_NATIVE, ACC_ABSTRACT,
+ ACC_STRICT, ACC_SYNTHETIC
+ };
+
+ public Set getMethodModifiers() {
+ return getModifiers(methodModifiers, Kind.Method);
+ }
+
+ public Set getMethodFlags() {
+ return getFlags(methodFlags, Kind.Method);
+ }
+
+ private Set getModifiers(int[] modifierFlags, Kind t) {
+ return getModifiers(flags, modifierFlags, t);
+ }
+
+ private static Set getModifiers(int flags, int[] modifierFlags, Kind t) {
+ Set s = new LinkedHashSet<>();
+ for (int m: modifierFlags) {
+ if ((flags & m) != 0)
+ s.add(flagToModifier(m, t));
+ }
+ return s;
+ }
+
+ private Set getFlags(int[] expectedFlags, Kind t) {
+ Set s = new LinkedHashSet<>();
+ int f = flags;
+ for (int e: expectedFlags) {
+ if ((f & e) != 0) {
+ s.add(flagToName(e, t));
+ f = f & ~e;
+ }
+ }
+ while (f != 0) {
+ int bit = Integer.highestOneBit(f);
+ s.add("0x" + Integer.toHexString(bit));
+ f = f & ~bit;
+ }
+ return s;
+ }
+
+ private static String flagToModifier(int flag, Kind t) {
+ switch (flag) {
+ case ACC_PUBLIC:
+ return "public";
+ case ACC_PRIVATE:
+ return "private";
+ case ACC_PROTECTED:
+ return "protected";
+ case ACC_STATIC:
+ return "static";
+ case ACC_FINAL:
+ return "final";
+ case ACC_SYNCHRONIZED:
+ return "synchronized";
+ case 0x80:
+ return (t == Kind.Field ? "transient" : null);
+ case ACC_VOLATILE:
+ return "volatile";
+ case ACC_NATIVE:
+ return "native";
+ case ACC_ABSTRACT:
+ return "abstract";
+ case ACC_STRICT:
+ return "strictfp";
+ case ACC_MANDATED:
+ return "mandated";
+ default:
+ return null;
+ }
+ }
+
+ private static String flagToName(int flag, Kind t) {
+ switch (flag) {
+ case ACC_PUBLIC:
+ return "ACC_PUBLIC";
+ case ACC_PRIVATE:
+ return "ACC_PRIVATE";
+ case ACC_PROTECTED:
+ return "ACC_PROTECTED";
+ case ACC_STATIC:
+ return "ACC_STATIC";
+ case ACC_FINAL:
+ return "ACC_FINAL";
+ case 0x20:
+ return (t == Kind.Class ? "ACC_SUPER" : "ACC_SYNCHRONIZED");
+ case 0x40:
+ return (t == Kind.Field ? "ACC_VOLATILE" : "ACC_BRIDGE");
+ case 0x80:
+ return (t == Kind.Field ? "ACC_TRANSIENT" : "ACC_VARARGS");
+ case ACC_NATIVE:
+ return "ACC_NATIVE";
+ case ACC_INTERFACE:
+ return "ACC_INTERFACE";
+ case ACC_ABSTRACT:
+ return "ACC_ABSTRACT";
+ case ACC_STRICT:
+ return "ACC_STRICT";
+ case ACC_SYNTHETIC:
+ return "ACC_SYNTHETIC";
+ case ACC_ANNOTATION:
+ return "ACC_ANNOTATION";
+ case ACC_ENUM:
+ return "ACC_ENUM";
+ case ACC_MANDATED:
+ return "ACC_MANDATED";
+ default:
+ return null;
+ }
+ }
+
+ public final int flags;
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/Annotation.java 2015-05-26 21:42:15.451832764 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,244 +0,0 @@
-/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-
-/**
- * See JVMS, section 4.8.16.
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class Annotation {
- static class InvalidAnnotation extends AttributeException {
- private static final long serialVersionUID = -4620480740735772708L;
- InvalidAnnotation(String msg) {
- super(msg);
- }
- }
-
- Annotation(ClassReader cr) throws IOException, InvalidAnnotation {
- type_index = cr.readUnsignedShort();
- num_element_value_pairs = cr.readUnsignedShort();
- element_value_pairs = new element_value_pair[num_element_value_pairs];
- for (int i = 0; i < element_value_pairs.length; i++)
- element_value_pairs[i] = new element_value_pair(cr);
- }
-
- public Annotation(ConstantPool constant_pool,
- int type_index,
- element_value_pair[] element_value_pairs) {
- this.type_index = type_index;
- num_element_value_pairs = element_value_pairs.length;
- this.element_value_pairs = element_value_pairs;
- }
-
- public int length() {
- int n = 2 /*type_index*/ + 2 /*num_element_value_pairs*/;
- for (element_value_pair pair: element_value_pairs)
- n += pair.length();
- return n;
- }
-
- public final int type_index;
- public final int num_element_value_pairs;
- public final element_value_pair element_value_pairs[];
-
- /**
- * See JVMS, section 4.8.16.1.
- */
- public static abstract class element_value {
- public static element_value read(ClassReader cr)
- throws IOException, InvalidAnnotation {
- int tag = cr.readUnsignedByte();
- switch (tag) {
- case 'B':
- case 'C':
- case 'D':
- case 'F':
- case 'I':
- case 'J':
- case 'S':
- case 'Z':
- case 's':
- return new Primitive_element_value(cr, tag);
-
- case 'e':
- return new Enum_element_value(cr, tag);
-
- case 'c':
- return new Class_element_value(cr, tag);
-
- case '@':
- return new Annotation_element_value(cr, tag);
-
- case '[':
- return new Array_element_value(cr, tag);
-
- default:
- throw new InvalidAnnotation("unrecognized tag: " + tag);
- }
- }
-
- protected element_value(int tag) {
- this.tag = tag;
- }
-
- public abstract int length();
-
- public abstract R accept(Visitor visitor, P p);
-
- public interface Visitor {
- R visitPrimitive(Primitive_element_value ev, P p);
- R visitEnum(Enum_element_value ev, P p);
- R visitClass(Class_element_value ev, P p);
- R visitAnnotation(Annotation_element_value ev, P p);
- R visitArray(Array_element_value ev, P p);
- }
-
- public final int tag;
- }
-
- public static class Primitive_element_value extends element_value {
- Primitive_element_value(ClassReader cr, int tag) throws IOException {
- super(tag);
- const_value_index = cr.readUnsignedShort();
- }
-
- @Override
- public int length() {
- return 2;
- }
-
- public R accept(Visitor visitor, P p) {
- return visitor.visitPrimitive(this, p);
- }
-
- public final int const_value_index;
-
- }
-
- public static class Enum_element_value extends element_value {
- Enum_element_value(ClassReader cr, int tag) throws IOException {
- super(tag);
- type_name_index = cr.readUnsignedShort();
- const_name_index = cr.readUnsignedShort();
- }
-
- @Override
- public int length() {
- return 4;
- }
-
- public R accept(Visitor visitor, P p) {
- return visitor.visitEnum(this, p);
- }
-
- public final int type_name_index;
- public final int const_name_index;
- }
-
- public static class Class_element_value extends element_value {
- Class_element_value(ClassReader cr, int tag) throws IOException {
- super(tag);
- class_info_index = cr.readUnsignedShort();
- }
-
- @Override
- public int length() {
- return 2;
- }
-
- public R accept(Visitor visitor, P p) {
- return visitor.visitClass(this, p);
- }
-
- public final int class_info_index;
- }
-
- public static class Annotation_element_value extends element_value {
- Annotation_element_value(ClassReader cr, int tag)
- throws IOException, InvalidAnnotation {
- super(tag);
- annotation_value = new Annotation(cr);
- }
-
- @Override
- public int length() {
- return annotation_value.length();
- }
-
- public R accept(Visitor visitor, P p) {
- return visitor.visitAnnotation(this, p);
- }
-
- public final Annotation annotation_value;
- }
-
- public static class Array_element_value extends element_value {
- Array_element_value(ClassReader cr, int tag)
- throws IOException, InvalidAnnotation {
- super(tag);
- num_values = cr.readUnsignedShort();
- values = new element_value[num_values];
- for (int i = 0; i < values.length; i++)
- values[i] = element_value.read(cr);
- }
-
- @Override
- public int length() {
- int n = 2;
- for (int i = 0; i < values.length; i++)
- n += values[i].length();
- return n;
- }
-
- public R accept(Visitor visitor, P p) {
- return visitor.visitArray(this, p);
- }
-
- public final int num_values;
- public final element_value[] values;
- }
-
- public static class element_value_pair {
- element_value_pair(ClassReader cr)
- throws IOException, InvalidAnnotation {
- element_name_index = cr.readUnsignedShort();
- value = element_value.read(cr);
- }
-
- public int length() {
- return 2 + value.length();
- }
-
- public final int element_name_index;
- public final element_value value;
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Annotation.java 2015-05-26 21:42:15.279832762 -0700
@@ -0,0 +1,244 @@
+/*
+ * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+
+/**
+ * See JVMS, section 4.8.16.
+ *
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class Annotation {
+ static class InvalidAnnotation extends AttributeException {
+ private static final long serialVersionUID = -4620480740735772708L;
+ InvalidAnnotation(String msg) {
+ super(msg);
+ }
+ }
+
+ Annotation(ClassReader cr) throws IOException, InvalidAnnotation {
+ type_index = cr.readUnsignedShort();
+ num_element_value_pairs = cr.readUnsignedShort();
+ element_value_pairs = new element_value_pair[num_element_value_pairs];
+ for (int i = 0; i < element_value_pairs.length; i++)
+ element_value_pairs[i] = new element_value_pair(cr);
+ }
+
+ public Annotation(ConstantPool constant_pool,
+ int type_index,
+ element_value_pair[] element_value_pairs) {
+ this.type_index = type_index;
+ num_element_value_pairs = element_value_pairs.length;
+ this.element_value_pairs = element_value_pairs;
+ }
+
+ public int length() {
+ int n = 2 /*type_index*/ + 2 /*num_element_value_pairs*/;
+ for (element_value_pair pair: element_value_pairs)
+ n += pair.length();
+ return n;
+ }
+
+ public final int type_index;
+ public final int num_element_value_pairs;
+ public final element_value_pair element_value_pairs[];
+
+ /**
+ * See JVMS, section 4.8.16.1.
+ */
+ public static abstract class element_value {
+ public static element_value read(ClassReader cr)
+ throws IOException, InvalidAnnotation {
+ int tag = cr.readUnsignedByte();
+ switch (tag) {
+ case 'B':
+ case 'C':
+ case 'D':
+ case 'F':
+ case 'I':
+ case 'J':
+ case 'S':
+ case 'Z':
+ case 's':
+ return new Primitive_element_value(cr, tag);
+
+ case 'e':
+ return new Enum_element_value(cr, tag);
+
+ case 'c':
+ return new Class_element_value(cr, tag);
+
+ case '@':
+ return new Annotation_element_value(cr, tag);
+
+ case '[':
+ return new Array_element_value(cr, tag);
+
+ default:
+ throw new InvalidAnnotation("unrecognized tag: " + tag);
+ }
+ }
+
+ protected element_value(int tag) {
+ this.tag = tag;
+ }
+
+ public abstract int length();
+
+ public abstract R accept(Visitor visitor, P p);
+
+ public interface Visitor {
+ R visitPrimitive(Primitive_element_value ev, P p);
+ R visitEnum(Enum_element_value ev, P p);
+ R visitClass(Class_element_value ev, P p);
+ R visitAnnotation(Annotation_element_value ev, P p);
+ R visitArray(Array_element_value ev, P p);
+ }
+
+ public final int tag;
+ }
+
+ public static class Primitive_element_value extends element_value {
+ Primitive_element_value(ClassReader cr, int tag) throws IOException {
+ super(tag);
+ const_value_index = cr.readUnsignedShort();
+ }
+
+ @Override
+ public int length() {
+ return 2;
+ }
+
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitPrimitive(this, p);
+ }
+
+ public final int const_value_index;
+
+ }
+
+ public static class Enum_element_value extends element_value {
+ Enum_element_value(ClassReader cr, int tag) throws IOException {
+ super(tag);
+ type_name_index = cr.readUnsignedShort();
+ const_name_index = cr.readUnsignedShort();
+ }
+
+ @Override
+ public int length() {
+ return 4;
+ }
+
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitEnum(this, p);
+ }
+
+ public final int type_name_index;
+ public final int const_name_index;
+ }
+
+ public static class Class_element_value extends element_value {
+ Class_element_value(ClassReader cr, int tag) throws IOException {
+ super(tag);
+ class_info_index = cr.readUnsignedShort();
+ }
+
+ @Override
+ public int length() {
+ return 2;
+ }
+
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitClass(this, p);
+ }
+
+ public final int class_info_index;
+ }
+
+ public static class Annotation_element_value extends element_value {
+ Annotation_element_value(ClassReader cr, int tag)
+ throws IOException, InvalidAnnotation {
+ super(tag);
+ annotation_value = new Annotation(cr);
+ }
+
+ @Override
+ public int length() {
+ return annotation_value.length();
+ }
+
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitAnnotation(this, p);
+ }
+
+ public final Annotation annotation_value;
+ }
+
+ public static class Array_element_value extends element_value {
+ Array_element_value(ClassReader cr, int tag)
+ throws IOException, InvalidAnnotation {
+ super(tag);
+ num_values = cr.readUnsignedShort();
+ values = new element_value[num_values];
+ for (int i = 0; i < values.length; i++)
+ values[i] = element_value.read(cr);
+ }
+
+ @Override
+ public int length() {
+ int n = 2;
+ for (int i = 0; i < values.length; i++)
+ n += values[i].length();
+ return n;
+ }
+
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitArray(this, p);
+ }
+
+ public final int num_values;
+ public final element_value[] values;
+ }
+
+ public static class element_value_pair {
+ element_value_pair(ClassReader cr)
+ throws IOException, InvalidAnnotation {
+ element_name_index = cr.readUnsignedShort();
+ value = element_value.read(cr);
+ }
+
+ public int length() {
+ return 2 + value.length();
+ }
+
+ public final int element_name_index;
+ public final element_value value;
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/AnnotationDefault_attribute.java 2015-05-26 21:42:15.767832769 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-
-/**
- * See JVMS, section 4.8.15.
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class AnnotationDefault_attribute extends Attribute {
- AnnotationDefault_attribute(ClassReader cr, int name_index, int length)
- throws IOException, Annotation.InvalidAnnotation {
- super(name_index, length);
- default_value = Annotation.element_value.read(cr);
- }
-
- public AnnotationDefault_attribute(ConstantPool constant_pool, Annotation.element_value default_value)
- throws ConstantPoolException {
- this(constant_pool.getUTF8Index(Attribute.AnnotationDefault), default_value);
- }
-
- public AnnotationDefault_attribute(int name_index, Annotation.element_value default_value) {
- super(name_index, default_value.length());
- this.default_value = default_value;
- }
-
- public R accept(Visitor visitor, D data) {
- return visitor.visitAnnotationDefault(this, data);
- }
-
- public final Annotation.element_value default_value;
-}
-
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/AnnotationDefault_attribute.java 2015-05-26 21:42:15.587832766 -0700
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+
+/**
+ * See JVMS, section 4.8.15.
+ *
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class AnnotationDefault_attribute extends Attribute {
+ AnnotationDefault_attribute(ClassReader cr, int name_index, int length)
+ throws IOException, Annotation.InvalidAnnotation {
+ super(name_index, length);
+ default_value = Annotation.element_value.read(cr);
+ }
+
+ public AnnotationDefault_attribute(ConstantPool constant_pool, Annotation.element_value default_value)
+ throws ConstantPoolException {
+ this(constant_pool.getUTF8Index(Attribute.AnnotationDefault), default_value);
+ }
+
+ public AnnotationDefault_attribute(int name_index, Annotation.element_value default_value) {
+ super(name_index, default_value.length());
+ this.default_value = default_value;
+ }
+
+ public R accept(Visitor visitor, D data) {
+ return visitor.visitAnnotationDefault(this, data);
+ }
+
+ public final Annotation.element_value default_value;
+}
+
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/Attribute.java 2015-05-26 21:42:16.079832773 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,192 +0,0 @@
-/*
- * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-import java.lang.reflect.Constructor;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-
-public abstract class Attribute {
- public static final String AnnotationDefault = "AnnotationDefault";
- public static final String BootstrapMethods = "BootstrapMethods";
- public static final String CharacterRangeTable = "CharacterRangeTable";
- public static final String Code = "Code";
- public static final String ConstantValue = "ConstantValue";
- public static final String CompilationID = "CompilationID";
- public static final String Deprecated = "Deprecated";
- public static final String EnclosingMethod = "EnclosingMethod";
- public static final String Exceptions = "Exceptions";
- public static final String InnerClasses = "InnerClasses";
- public static final String LineNumberTable = "LineNumberTable";
- public static final String LocalVariableTable = "LocalVariableTable";
- public static final String LocalVariableTypeTable = "LocalVariableTypeTable";
- public static final String MethodParameters = "MethodParameters";
- public static final String RuntimeVisibleAnnotations = "RuntimeVisibleAnnotations";
- public static final String RuntimeInvisibleAnnotations = "RuntimeInvisibleAnnotations";
- public static final String RuntimeVisibleParameterAnnotations = "RuntimeVisibleParameterAnnotations";
- public static final String RuntimeInvisibleParameterAnnotations = "RuntimeInvisibleParameterAnnotations";
- public static final String RuntimeVisibleTypeAnnotations = "RuntimeVisibleTypeAnnotations";
- public static final String RuntimeInvisibleTypeAnnotations = "RuntimeInvisibleTypeAnnotations";
- public static final String Signature = "Signature";
- public static final String SourceDebugExtension = "SourceDebugExtension";
- public static final String SourceFile = "SourceFile";
- public static final String SourceID = "SourceID";
- public static final String StackMap = "StackMap";
- public static final String StackMapTable = "StackMapTable";
- public static final String Synthetic = "Synthetic";
-
- public static class Factory {
- public Factory() {
- // defer init of standardAttributeClasses until after options set up
- }
-
- public Attribute createAttribute(ClassReader cr, int name_index, byte[] data)
- throws IOException {
- if (standardAttributes == null) {
- init();
- }
-
- ConstantPool cp = cr.getConstantPool();
- String reasonForDefaultAttr;
- try {
- String name = cp.getUTF8Value(name_index);
- Class extends Attribute> attrClass = standardAttributes.get(name);
- if (attrClass != null) {
- try {
- Class>[] constrArgTypes = {ClassReader.class, int.class, int.class};
- Constructor extends Attribute> constr = attrClass.getDeclaredConstructor(constrArgTypes);
- return constr.newInstance(cr, name_index, data.length);
- } catch (Throwable t) {
- reasonForDefaultAttr = t.toString();
- // fall through and use DefaultAttribute
- // t.printStackTrace();
- }
- } else {
- reasonForDefaultAttr = "unknown attribute";
- }
- } catch (ConstantPoolException e) {
- reasonForDefaultAttr = e.toString();
- // fall through and use DefaultAttribute
- }
- return new DefaultAttribute(cr, name_index, data, reasonForDefaultAttr);
- }
-
- protected void init() {
- standardAttributes = new HashMap<>();
- standardAttributes.put(AnnotationDefault, AnnotationDefault_attribute.class);
- standardAttributes.put(BootstrapMethods, BootstrapMethods_attribute.class);
- standardAttributes.put(CharacterRangeTable, CharacterRangeTable_attribute.class);
- standardAttributes.put(Code, Code_attribute.class);
- standardAttributes.put(CompilationID, CompilationID_attribute.class);
- standardAttributes.put(ConstantValue, ConstantValue_attribute.class);
- standardAttributes.put(Deprecated, Deprecated_attribute.class);
- standardAttributes.put(EnclosingMethod, EnclosingMethod_attribute.class);
- standardAttributes.put(Exceptions, Exceptions_attribute.class);
- standardAttributes.put(InnerClasses, InnerClasses_attribute.class);
- standardAttributes.put(LineNumberTable, LineNumberTable_attribute.class);
- standardAttributes.put(LocalVariableTable, LocalVariableTable_attribute.class);
- standardAttributes.put(LocalVariableTypeTable, LocalVariableTypeTable_attribute.class);
- standardAttributes.put(MethodParameters, MethodParameters_attribute.class);
- standardAttributes.put(RuntimeInvisibleAnnotations, RuntimeInvisibleAnnotations_attribute.class);
- standardAttributes.put(RuntimeInvisibleParameterAnnotations, RuntimeInvisibleParameterAnnotations_attribute.class);
- standardAttributes.put(RuntimeVisibleAnnotations, RuntimeVisibleAnnotations_attribute.class);
- standardAttributes.put(RuntimeVisibleParameterAnnotations, RuntimeVisibleParameterAnnotations_attribute.class);
- standardAttributes.put(RuntimeVisibleTypeAnnotations, RuntimeVisibleTypeAnnotations_attribute.class);
- standardAttributes.put(RuntimeInvisibleTypeAnnotations, RuntimeInvisibleTypeAnnotations_attribute.class);
- standardAttributes.put(Signature, Signature_attribute.class);
- standardAttributes.put(SourceDebugExtension, SourceDebugExtension_attribute.class);
- standardAttributes.put(SourceFile, SourceFile_attribute.class);
- standardAttributes.put(SourceID, SourceID_attribute.class);
- standardAttributes.put(StackMap, StackMap_attribute.class);
- standardAttributes.put(StackMapTable, StackMapTable_attribute.class);
- standardAttributes.put(Synthetic, Synthetic_attribute.class);
- }
-
- private Map> standardAttributes;
- }
-
- public static Attribute read(ClassReader cr) throws IOException {
- return cr.readAttribute();
- }
-
- protected Attribute(int name_index, int length) {
- attribute_name_index = name_index;
- attribute_length = length;
- }
-
- public String getName(ConstantPool constant_pool) throws ConstantPoolException {
- return constant_pool.getUTF8Value(attribute_name_index);
- }
-
- public abstract R accept(Attribute.Visitor visitor, D data);
-
- public int byteLength() {
- return 6 + attribute_length;
- }
-
- public final int attribute_name_index;
- public final int attribute_length;
-
-
- public interface Visitor {
- R visitBootstrapMethods(BootstrapMethods_attribute attr, P p);
- R visitDefault(DefaultAttribute attr, P p);
- R visitAnnotationDefault(AnnotationDefault_attribute attr, P p);
- R visitCharacterRangeTable(CharacterRangeTable_attribute attr, P p);
- R visitCode(Code_attribute attr, P p);
- R visitCompilationID(CompilationID_attribute attr, P p);
- R visitConstantValue(ConstantValue_attribute attr, P p);
- R visitDeprecated(Deprecated_attribute attr, P p);
- R visitEnclosingMethod(EnclosingMethod_attribute attr, P p);
- R visitExceptions(Exceptions_attribute attr, P p);
- R visitInnerClasses(InnerClasses_attribute attr, P p);
- R visitLineNumberTable(LineNumberTable_attribute attr, P p);
- R visitLocalVariableTable(LocalVariableTable_attribute attr, P p);
- R visitLocalVariableTypeTable(LocalVariableTypeTable_attribute attr, P p);
- R visitMethodParameters(MethodParameters_attribute attr, P p);
- R visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, P p);
- R visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, P p);
- R visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute attr, P p);
- R visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, P p);
- R visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr, P p);
- R visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, P p);
- R visitSignature(Signature_attribute attr, P p);
- R visitSourceDebugExtension(SourceDebugExtension_attribute attr, P p);
- R visitSourceFile(SourceFile_attribute attr, P p);
- R visitSourceID(SourceID_attribute attr, P p);
- R visitStackMap(StackMap_attribute attr, P p);
- R visitStackMapTable(StackMapTable_attribute attr, P p);
- R visitSynthetic(Synthetic_attribute attr, P p);
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Attribute.java 2015-05-26 21:42:15.903832771 -0700
@@ -0,0 +1,192 @@
+/*
+ * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+import java.lang.reflect.Constructor;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+
+public abstract class Attribute {
+ public static final String AnnotationDefault = "AnnotationDefault";
+ public static final String BootstrapMethods = "BootstrapMethods";
+ public static final String CharacterRangeTable = "CharacterRangeTable";
+ public static final String Code = "Code";
+ public static final String ConstantValue = "ConstantValue";
+ public static final String CompilationID = "CompilationID";
+ public static final String Deprecated = "Deprecated";
+ public static final String EnclosingMethod = "EnclosingMethod";
+ public static final String Exceptions = "Exceptions";
+ public static final String InnerClasses = "InnerClasses";
+ public static final String LineNumberTable = "LineNumberTable";
+ public static final String LocalVariableTable = "LocalVariableTable";
+ public static final String LocalVariableTypeTable = "LocalVariableTypeTable";
+ public static final String MethodParameters = "MethodParameters";
+ public static final String RuntimeVisibleAnnotations = "RuntimeVisibleAnnotations";
+ public static final String RuntimeInvisibleAnnotations = "RuntimeInvisibleAnnotations";
+ public static final String RuntimeVisibleParameterAnnotations = "RuntimeVisibleParameterAnnotations";
+ public static final String RuntimeInvisibleParameterAnnotations = "RuntimeInvisibleParameterAnnotations";
+ public static final String RuntimeVisibleTypeAnnotations = "RuntimeVisibleTypeAnnotations";
+ public static final String RuntimeInvisibleTypeAnnotations = "RuntimeInvisibleTypeAnnotations";
+ public static final String Signature = "Signature";
+ public static final String SourceDebugExtension = "SourceDebugExtension";
+ public static final String SourceFile = "SourceFile";
+ public static final String SourceID = "SourceID";
+ public static final String StackMap = "StackMap";
+ public static final String StackMapTable = "StackMapTable";
+ public static final String Synthetic = "Synthetic";
+
+ public static class Factory {
+ public Factory() {
+ // defer init of standardAttributeClasses until after options set up
+ }
+
+ public Attribute createAttribute(ClassReader cr, int name_index, byte[] data)
+ throws IOException {
+ if (standardAttributes == null) {
+ init();
+ }
+
+ ConstantPool cp = cr.getConstantPool();
+ String reasonForDefaultAttr;
+ try {
+ String name = cp.getUTF8Value(name_index);
+ Class extends Attribute> attrClass = standardAttributes.get(name);
+ if (attrClass != null) {
+ try {
+ Class>[] constrArgTypes = {ClassReader.class, int.class, int.class};
+ Constructor extends Attribute> constr = attrClass.getDeclaredConstructor(constrArgTypes);
+ return constr.newInstance(cr, name_index, data.length);
+ } catch (Throwable t) {
+ reasonForDefaultAttr = t.toString();
+ // fall through and use DefaultAttribute
+ // t.printStackTrace();
+ }
+ } else {
+ reasonForDefaultAttr = "unknown attribute";
+ }
+ } catch (ConstantPoolException e) {
+ reasonForDefaultAttr = e.toString();
+ // fall through and use DefaultAttribute
+ }
+ return new DefaultAttribute(cr, name_index, data, reasonForDefaultAttr);
+ }
+
+ protected void init() {
+ standardAttributes = new HashMap<>();
+ standardAttributes.put(AnnotationDefault, AnnotationDefault_attribute.class);
+ standardAttributes.put(BootstrapMethods, BootstrapMethods_attribute.class);
+ standardAttributes.put(CharacterRangeTable, CharacterRangeTable_attribute.class);
+ standardAttributes.put(Code, Code_attribute.class);
+ standardAttributes.put(CompilationID, CompilationID_attribute.class);
+ standardAttributes.put(ConstantValue, ConstantValue_attribute.class);
+ standardAttributes.put(Deprecated, Deprecated_attribute.class);
+ standardAttributes.put(EnclosingMethod, EnclosingMethod_attribute.class);
+ standardAttributes.put(Exceptions, Exceptions_attribute.class);
+ standardAttributes.put(InnerClasses, InnerClasses_attribute.class);
+ standardAttributes.put(LineNumberTable, LineNumberTable_attribute.class);
+ standardAttributes.put(LocalVariableTable, LocalVariableTable_attribute.class);
+ standardAttributes.put(LocalVariableTypeTable, LocalVariableTypeTable_attribute.class);
+ standardAttributes.put(MethodParameters, MethodParameters_attribute.class);
+ standardAttributes.put(RuntimeInvisibleAnnotations, RuntimeInvisibleAnnotations_attribute.class);
+ standardAttributes.put(RuntimeInvisibleParameterAnnotations, RuntimeInvisibleParameterAnnotations_attribute.class);
+ standardAttributes.put(RuntimeVisibleAnnotations, RuntimeVisibleAnnotations_attribute.class);
+ standardAttributes.put(RuntimeVisibleParameterAnnotations, RuntimeVisibleParameterAnnotations_attribute.class);
+ standardAttributes.put(RuntimeVisibleTypeAnnotations, RuntimeVisibleTypeAnnotations_attribute.class);
+ standardAttributes.put(RuntimeInvisibleTypeAnnotations, RuntimeInvisibleTypeAnnotations_attribute.class);
+ standardAttributes.put(Signature, Signature_attribute.class);
+ standardAttributes.put(SourceDebugExtension, SourceDebugExtension_attribute.class);
+ standardAttributes.put(SourceFile, SourceFile_attribute.class);
+ standardAttributes.put(SourceID, SourceID_attribute.class);
+ standardAttributes.put(StackMap, StackMap_attribute.class);
+ standardAttributes.put(StackMapTable, StackMapTable_attribute.class);
+ standardAttributes.put(Synthetic, Synthetic_attribute.class);
+ }
+
+ private Map> standardAttributes;
+ }
+
+ public static Attribute read(ClassReader cr) throws IOException {
+ return cr.readAttribute();
+ }
+
+ protected Attribute(int name_index, int length) {
+ attribute_name_index = name_index;
+ attribute_length = length;
+ }
+
+ public String getName(ConstantPool constant_pool) throws ConstantPoolException {
+ return constant_pool.getUTF8Value(attribute_name_index);
+ }
+
+ public abstract R accept(Attribute.Visitor visitor, D data);
+
+ public int byteLength() {
+ return 6 + attribute_length;
+ }
+
+ public final int attribute_name_index;
+ public final int attribute_length;
+
+
+ public interface Visitor {
+ R visitBootstrapMethods(BootstrapMethods_attribute attr, P p);
+ R visitDefault(DefaultAttribute attr, P p);
+ R visitAnnotationDefault(AnnotationDefault_attribute attr, P p);
+ R visitCharacterRangeTable(CharacterRangeTable_attribute attr, P p);
+ R visitCode(Code_attribute attr, P p);
+ R visitCompilationID(CompilationID_attribute attr, P p);
+ R visitConstantValue(ConstantValue_attribute attr, P p);
+ R visitDeprecated(Deprecated_attribute attr, P p);
+ R visitEnclosingMethod(EnclosingMethod_attribute attr, P p);
+ R visitExceptions(Exceptions_attribute attr, P p);
+ R visitInnerClasses(InnerClasses_attribute attr, P p);
+ R visitLineNumberTable(LineNumberTable_attribute attr, P p);
+ R visitLocalVariableTable(LocalVariableTable_attribute attr, P p);
+ R visitLocalVariableTypeTable(LocalVariableTypeTable_attribute attr, P p);
+ R visitMethodParameters(MethodParameters_attribute attr, P p);
+ R visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, P p);
+ R visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, P p);
+ R visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute attr, P p);
+ R visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, P p);
+ R visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr, P p);
+ R visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, P p);
+ R visitSignature(Signature_attribute attr, P p);
+ R visitSourceDebugExtension(SourceDebugExtension_attribute attr, P p);
+ R visitSourceFile(SourceFile_attribute attr, P p);
+ R visitSourceID(SourceID_attribute attr, P p);
+ R visitStackMap(StackMap_attribute attr, P p);
+ R visitStackMapTable(StackMapTable_attribute attr, P p);
+ R visitSynthetic(Synthetic_attribute attr, P p);
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/AttributeException.java 2015-05-26 21:42:16.387832778 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-/*
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class AttributeException extends Exception {
- private static final long serialVersionUID = -4231486387714867770L;
- AttributeException() { }
-
- AttributeException(String msg) {
- super(msg);
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/AttributeException.java 2015-05-26 21:42:16.215832776 -0700
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+/*
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class AttributeException extends Exception {
+ private static final long serialVersionUID = -4231486387714867770L;
+ AttributeException() { }
+
+ AttributeException(String msg) {
+ super(msg);
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/Attributes.java 2015-05-26 21:42:16.703832783 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,107 +0,0 @@
-/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-/*
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class Attributes implements Iterable {
-
- public final Attribute[] attrs;
- public final Map map;
-
- Attributes(ClassReader cr) throws IOException {
- map = new HashMap<>();
- int attrs_count = cr.readUnsignedShort();
- attrs = new Attribute[attrs_count];
- for (int i = 0; i < attrs_count; i++) {
- Attribute attr = Attribute.read(cr);
- attrs[i] = attr;
- try {
- map.put(attr.getName(cr.getConstantPool()), attr);
- } catch (ConstantPoolException e) {
- // don't enter invalid names in map
- }
- }
- }
-
- public Attributes(ConstantPool constant_pool, Attribute[] attrs) {
- this.attrs = attrs;
- map = new HashMap<>();
- for (Attribute attr : attrs) {
- try {
- map.put(attr.getName(constant_pool), attr);
- } catch (ConstantPoolException e) {
- // don't enter invalid names in map
- }
- }
- }
-
- public Iterator iterator() {
- return Arrays.asList(attrs).iterator();
- }
-
- public Attribute get(int index) {
- return attrs[index];
- }
-
- public Attribute get(String name) {
- return map.get(name);
- }
-
- public int getIndex(ConstantPool constant_pool, String name) {
- for (int i = 0; i < attrs.length; i++) {
- Attribute attr = attrs[i];
- try {
- if (attr != null && attr.getName(constant_pool).equals(name))
- return i;
- } catch (ConstantPoolException e) {
- // ignore invalid entries
- }
- }
- return -1;
- }
-
- public int size() {
- return attrs.length;
- }
-
- public int byteLength() {
- int length = 2;
- for (Attribute a: attrs)
- length += a.byteLength();
- return length;
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/Attributes.java 2015-05-26 21:42:16.523832780 -0700
@@ -0,0 +1,107 @@
+/*
+ * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+/*
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class Attributes implements Iterable {
+
+ public final Attribute[] attrs;
+ public final Map map;
+
+ Attributes(ClassReader cr) throws IOException {
+ map = new HashMap<>();
+ int attrs_count = cr.readUnsignedShort();
+ attrs = new Attribute[attrs_count];
+ for (int i = 0; i < attrs_count; i++) {
+ Attribute attr = Attribute.read(cr);
+ attrs[i] = attr;
+ try {
+ map.put(attr.getName(cr.getConstantPool()), attr);
+ } catch (ConstantPoolException e) {
+ // don't enter invalid names in map
+ }
+ }
+ }
+
+ public Attributes(ConstantPool constant_pool, Attribute[] attrs) {
+ this.attrs = attrs;
+ map = new HashMap<>();
+ for (Attribute attr : attrs) {
+ try {
+ map.put(attr.getName(constant_pool), attr);
+ } catch (ConstantPoolException e) {
+ // don't enter invalid names in map
+ }
+ }
+ }
+
+ public Iterator iterator() {
+ return Arrays.asList(attrs).iterator();
+ }
+
+ public Attribute get(int index) {
+ return attrs[index];
+ }
+
+ public Attribute get(String name) {
+ return map.get(name);
+ }
+
+ public int getIndex(ConstantPool constant_pool, String name) {
+ for (int i = 0; i < attrs.length; i++) {
+ Attribute attr = attrs[i];
+ try {
+ if (attr != null && attr.getName(constant_pool).equals(name))
+ return i;
+ } catch (ConstantPoolException e) {
+ // ignore invalid entries
+ }
+ }
+ return -1;
+ }
+
+ public int size() {
+ return attrs.length;
+ }
+
+ public int byteLength() {
+ int length = 2;
+ for (Attribute a: attrs)
+ length += a.byteLength();
+ return length;
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java 2015-05-26 21:42:17.011832787 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-
-/**
- * See JVMS 4.7.21
- * http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.21
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class BootstrapMethods_attribute extends Attribute {
- public final BootstrapMethodSpecifier[] bootstrap_method_specifiers;
-
- BootstrapMethods_attribute(ClassReader cr, int name_index, int length)
- throws IOException, AttributeException {
- super(name_index, length);
- int bootstrap_method_count = cr.readUnsignedShort();
- bootstrap_method_specifiers = new BootstrapMethodSpecifier[bootstrap_method_count];
- for (int i = 0; i < bootstrap_method_specifiers.length; i++)
- bootstrap_method_specifiers[i] = new BootstrapMethodSpecifier(cr);
- }
-
- public BootstrapMethods_attribute(int name_index, BootstrapMethodSpecifier[] bootstrap_method_specifiers) {
- super(name_index, length(bootstrap_method_specifiers));
- this.bootstrap_method_specifiers = bootstrap_method_specifiers;
- }
-
- public static int length(BootstrapMethodSpecifier[] bootstrap_method_specifiers) {
- int n = 2;
- for (BootstrapMethodSpecifier b : bootstrap_method_specifiers)
- n += b.length();
- return n;
- }
-
- @Override
- public R accept(Visitor visitor, P p) {
- return visitor.visitBootstrapMethods(this, p);
- }
-
- public static class BootstrapMethodSpecifier {
- public int bootstrap_method_ref;
- public int[] bootstrap_arguments;
-
- public BootstrapMethodSpecifier(int bootstrap_method_ref, int[] bootstrap_arguments) {
- this.bootstrap_method_ref = bootstrap_method_ref;
- this.bootstrap_arguments = bootstrap_arguments;
- }
- BootstrapMethodSpecifier(ClassReader cr) throws IOException {
- bootstrap_method_ref = cr.readUnsignedShort();
- int method_count = cr.readUnsignedShort();
- bootstrap_arguments = new int[method_count];
- for (int i = 0; i < bootstrap_arguments.length; i++) {
- bootstrap_arguments[i] = cr.readUnsignedShort();
- }
- }
-
- int length() {
- // u2 (method_ref) + u2 (argc) + u2 * argc
- return 2 + 2 + (bootstrap_arguments.length * 2);
- }
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/BootstrapMethods_attribute.java 2015-05-26 21:42:16.839832785 -0700
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+
+/**
+ * See JVMS 4.7.21
+ * http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.21
+ *
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class BootstrapMethods_attribute extends Attribute {
+ public final BootstrapMethodSpecifier[] bootstrap_method_specifiers;
+
+ BootstrapMethods_attribute(ClassReader cr, int name_index, int length)
+ throws IOException, AttributeException {
+ super(name_index, length);
+ int bootstrap_method_count = cr.readUnsignedShort();
+ bootstrap_method_specifiers = new BootstrapMethodSpecifier[bootstrap_method_count];
+ for (int i = 0; i < bootstrap_method_specifiers.length; i++)
+ bootstrap_method_specifiers[i] = new BootstrapMethodSpecifier(cr);
+ }
+
+ public BootstrapMethods_attribute(int name_index, BootstrapMethodSpecifier[] bootstrap_method_specifiers) {
+ super(name_index, length(bootstrap_method_specifiers));
+ this.bootstrap_method_specifiers = bootstrap_method_specifiers;
+ }
+
+ public static int length(BootstrapMethodSpecifier[] bootstrap_method_specifiers) {
+ int n = 2;
+ for (BootstrapMethodSpecifier b : bootstrap_method_specifiers)
+ n += b.length();
+ return n;
+ }
+
+ @Override
+ public R accept(Visitor visitor, P p) {
+ return visitor.visitBootstrapMethods(this, p);
+ }
+
+ public static class BootstrapMethodSpecifier {
+ public int bootstrap_method_ref;
+ public int[] bootstrap_arguments;
+
+ public BootstrapMethodSpecifier(int bootstrap_method_ref, int[] bootstrap_arguments) {
+ this.bootstrap_method_ref = bootstrap_method_ref;
+ this.bootstrap_arguments = bootstrap_arguments;
+ }
+ BootstrapMethodSpecifier(ClassReader cr) throws IOException {
+ bootstrap_method_ref = cr.readUnsignedShort();
+ int method_count = cr.readUnsignedShort();
+ bootstrap_arguments = new int[method_count];
+ for (int i = 0; i < bootstrap_arguments.length; i++) {
+ bootstrap_arguments[i] = cr.readUnsignedShort();
+ }
+ }
+
+ int length() {
+ // u2 (method_ref) + u2 (argc) + u2 * argc
+ return 2 + 2 + (bootstrap_arguments.length * 2);
+ }
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/CharacterRangeTable_attribute.java 2015-05-26 21:42:17.323832792 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.IOException;
-
-/**
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class CharacterRangeTable_attribute extends Attribute {
- public static final int CRT_STATEMENT = 0x0001;
- public static final int CRT_BLOCK = 0x0002;
- public static final int CRT_ASSIGNMENT = 0x0004;
- public static final int CRT_FLOW_CONTROLLER = 0x0008;
- public static final int CRT_FLOW_TARGET = 0x0010;
- public static final int CRT_INVOKE = 0x0020;
- public static final int CRT_CREATE = 0x0040;
- public static final int CRT_BRANCH_TRUE = 0x0080;
- public static final int CRT_BRANCH_FALSE = 0x0100;
-
- CharacterRangeTable_attribute(ClassReader cr, int name_index, int length) throws IOException {
- super(name_index, length);
- int character_range_table_length = cr.readUnsignedShort();
- character_range_table = new Entry[character_range_table_length];
- for (int i = 0; i < character_range_table_length; i++)
- character_range_table[i] = new Entry(cr);
- }
-
- public CharacterRangeTable_attribute(ConstantPool constant_pool, Entry[] character_range_table)
- throws ConstantPoolException {
- this(constant_pool.getUTF8Index(Attribute.CharacterRangeTable), character_range_table);
- }
-
- public CharacterRangeTable_attribute(int name_index, Entry[] character_range_table) {
- super(name_index, 2 + character_range_table.length * Entry.length());
- this.character_range_table = character_range_table;
- }
-
- public R accept(Visitor visitor, D data) {
- return visitor.visitCharacterRangeTable(this, data);
- }
-
- public final Entry[] character_range_table;
-
- public static class Entry {
- Entry(ClassReader cr) throws IOException {
- start_pc = cr.readUnsignedShort();
- end_pc = cr.readUnsignedShort();
- character_range_start = cr.readInt();
- character_range_end = cr.readInt();
- flags = cr.readUnsignedShort();
- }
-
- public static int length() {
- return 14;
- }
-
- public final int start_pc;
- public final int end_pc;
- public final int character_range_start;
- public final int character_range_end;
- public final int flags;
- }
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/CharacterRangeTable_attribute.java 2015-05-26 21:42:17.143832789 -0700
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.IOException;
+
+/**
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class CharacterRangeTable_attribute extends Attribute {
+ public static final int CRT_STATEMENT = 0x0001;
+ public static final int CRT_BLOCK = 0x0002;
+ public static final int CRT_ASSIGNMENT = 0x0004;
+ public static final int CRT_FLOW_CONTROLLER = 0x0008;
+ public static final int CRT_FLOW_TARGET = 0x0010;
+ public static final int CRT_INVOKE = 0x0020;
+ public static final int CRT_CREATE = 0x0040;
+ public static final int CRT_BRANCH_TRUE = 0x0080;
+ public static final int CRT_BRANCH_FALSE = 0x0100;
+
+ CharacterRangeTable_attribute(ClassReader cr, int name_index, int length) throws IOException {
+ super(name_index, length);
+ int character_range_table_length = cr.readUnsignedShort();
+ character_range_table = new Entry[character_range_table_length];
+ for (int i = 0; i < character_range_table_length; i++)
+ character_range_table[i] = new Entry(cr);
+ }
+
+ public CharacterRangeTable_attribute(ConstantPool constant_pool, Entry[] character_range_table)
+ throws ConstantPoolException {
+ this(constant_pool.getUTF8Index(Attribute.CharacterRangeTable), character_range_table);
+ }
+
+ public CharacterRangeTable_attribute(int name_index, Entry[] character_range_table) {
+ super(name_index, 2 + character_range_table.length * Entry.length());
+ this.character_range_table = character_range_table;
+ }
+
+ public R accept(Visitor visitor, D data) {
+ return visitor.visitCharacterRangeTable(this, data);
+ }
+
+ public final Entry[] character_range_table;
+
+ public static class Entry {
+ Entry(ClassReader cr) throws IOException {
+ start_pc = cr.readUnsignedShort();
+ end_pc = cr.readUnsignedShort();
+ character_range_start = cr.readInt();
+ character_range_end = cr.readInt();
+ flags = cr.readUnsignedShort();
+ }
+
+ public static int length() {
+ return 14;
+ }
+
+ public final int start_pc;
+ public final int end_pc;
+ public final int character_range_start;
+ public final int character_range_end;
+ public final int flags;
+ }
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/ClassFile.java 2015-05-26 21:42:17.631832796 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,189 +0,0 @@
-/*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Files;
-import java.nio.file.Path;
-
-import static com.sun.tools.classfile.AccessFlags.*;
-
-/**
- * See JVMS, section 4.2.
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class ClassFile {
- public static ClassFile read(File file)
- throws IOException, ConstantPoolException {
- return read(file.toPath(), new Attribute.Factory());
- }
-
- public static ClassFile read(Path input)
- throws IOException, ConstantPoolException {
- return read(input, new Attribute.Factory());
- }
-
- public static ClassFile read(Path input, Attribute.Factory attributeFactory)
- throws IOException, ConstantPoolException {
- try (InputStream in = Files.newInputStream(input)) {
- return new ClassFile(in, attributeFactory);
- }
- }
-
- public static ClassFile read(File file, Attribute.Factory attributeFactory)
- throws IOException, ConstantPoolException {
- return read(file.toPath(), attributeFactory);
- }
-
- public static ClassFile read(InputStream in)
- throws IOException, ConstantPoolException {
- return new ClassFile(in, new Attribute.Factory());
- }
-
- public static ClassFile read(InputStream in, Attribute.Factory attributeFactory)
- throws IOException, ConstantPoolException {
- return new ClassFile(in, attributeFactory);
- }
-
- ClassFile(InputStream in, Attribute.Factory attributeFactory) throws IOException, ConstantPoolException {
- ClassReader cr = new ClassReader(this, in, attributeFactory);
- magic = cr.readInt();
- minor_version = cr.readUnsignedShort();
- major_version = cr.readUnsignedShort();
- constant_pool = new ConstantPool(cr);
- access_flags = new AccessFlags(cr);
- this_class = cr.readUnsignedShort();
- super_class = cr.readUnsignedShort();
-
- int interfaces_count = cr.readUnsignedShort();
- interfaces = new int[interfaces_count];
- for (int i = 0; i < interfaces_count; i++)
- interfaces[i] = cr.readUnsignedShort();
-
- int fields_count = cr.readUnsignedShort();
- fields = new Field[fields_count];
- for (int i = 0; i < fields_count; i++)
- fields[i] = new Field(cr);
-
- int methods_count = cr.readUnsignedShort();
- methods = new Method[methods_count];
- for (int i = 0; i < methods_count; i++)
- methods[i] = new Method(cr);
-
- attributes = new Attributes(cr);
- }
-
- public ClassFile(int magic, int minor_version, int major_version,
- ConstantPool constant_pool, AccessFlags access_flags,
- int this_class, int super_class, int[] interfaces,
- Field[] fields, Method[] methods, Attributes attributes) {
- this.magic = magic;
- this.minor_version = minor_version;
- this.major_version = major_version;
- this.constant_pool = constant_pool;
- this.access_flags = access_flags;
- this.this_class = this_class;
- this.super_class = super_class;
- this.interfaces = interfaces;
- this.fields = fields;
- this.methods = methods;
- this.attributes = attributes;
- }
-
- public String getName() throws ConstantPoolException {
- return constant_pool.getClassInfo(this_class).getName();
- }
-
- public String getSuperclassName() throws ConstantPoolException {
- return constant_pool.getClassInfo(super_class).getName();
- }
-
- public String getInterfaceName(int i) throws ConstantPoolException {
- return constant_pool.getClassInfo(interfaces[i]).getName();
- }
-
- public Attribute getAttribute(String name) {
- return attributes.get(name);
- }
-
- public boolean isClass() {
- return !isInterface();
- }
-
- public boolean isInterface() {
- return access_flags.is(ACC_INTERFACE);
- }
-
- public int byteLength() {
- return 4 + // magic
- 2 + // minor
- 2 + // major
- constant_pool.byteLength() +
- 2 + // access flags
- 2 + // this_class
- 2 + // super_class
- byteLength(interfaces) +
- byteLength(fields) +
- byteLength(methods) +
- attributes.byteLength();
- }
-
- private int byteLength(int[] indices) {
- return 2 + 2 * indices.length;
- }
-
- private int byteLength(Field[] fields) {
- int length = 2;
- for (Field f: fields)
- length += f.byteLength();
- return length;
- }
-
- private int byteLength(Method[] methods) {
- int length = 2;
- for (Method m: methods)
- length += m.byteLength();
- return length;
- }
-
- public final int magic;
- public final int minor_version;
- public final int major_version;
- public final ConstantPool constant_pool;
- public final AccessFlags access_flags;
- public final int this_class;
- public final int super_class;
- public final int[] interfaces;
- public final Field[] fields;
- public final Method[] methods;
- public final Attributes attributes;
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/ClassFile.java 2015-05-26 21:42:17.455832794 -0700
@@ -0,0 +1,189 @@
+/*
+ * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Files;
+import java.nio.file.Path;
+
+import static com.sun.tools.classfile.AccessFlags.*;
+
+/**
+ * See JVMS, section 4.2.
+ *
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class ClassFile {
+ public static ClassFile read(File file)
+ throws IOException, ConstantPoolException {
+ return read(file.toPath(), new Attribute.Factory());
+ }
+
+ public static ClassFile read(Path input)
+ throws IOException, ConstantPoolException {
+ return read(input, new Attribute.Factory());
+ }
+
+ public static ClassFile read(Path input, Attribute.Factory attributeFactory)
+ throws IOException, ConstantPoolException {
+ try (InputStream in = Files.newInputStream(input)) {
+ return new ClassFile(in, attributeFactory);
+ }
+ }
+
+ public static ClassFile read(File file, Attribute.Factory attributeFactory)
+ throws IOException, ConstantPoolException {
+ return read(file.toPath(), attributeFactory);
+ }
+
+ public static ClassFile read(InputStream in)
+ throws IOException, ConstantPoolException {
+ return new ClassFile(in, new Attribute.Factory());
+ }
+
+ public static ClassFile read(InputStream in, Attribute.Factory attributeFactory)
+ throws IOException, ConstantPoolException {
+ return new ClassFile(in, attributeFactory);
+ }
+
+ ClassFile(InputStream in, Attribute.Factory attributeFactory) throws IOException, ConstantPoolException {
+ ClassReader cr = new ClassReader(this, in, attributeFactory);
+ magic = cr.readInt();
+ minor_version = cr.readUnsignedShort();
+ major_version = cr.readUnsignedShort();
+ constant_pool = new ConstantPool(cr);
+ access_flags = new AccessFlags(cr);
+ this_class = cr.readUnsignedShort();
+ super_class = cr.readUnsignedShort();
+
+ int interfaces_count = cr.readUnsignedShort();
+ interfaces = new int[interfaces_count];
+ for (int i = 0; i < interfaces_count; i++)
+ interfaces[i] = cr.readUnsignedShort();
+
+ int fields_count = cr.readUnsignedShort();
+ fields = new Field[fields_count];
+ for (int i = 0; i < fields_count; i++)
+ fields[i] = new Field(cr);
+
+ int methods_count = cr.readUnsignedShort();
+ methods = new Method[methods_count];
+ for (int i = 0; i < methods_count; i++)
+ methods[i] = new Method(cr);
+
+ attributes = new Attributes(cr);
+ }
+
+ public ClassFile(int magic, int minor_version, int major_version,
+ ConstantPool constant_pool, AccessFlags access_flags,
+ int this_class, int super_class, int[] interfaces,
+ Field[] fields, Method[] methods, Attributes attributes) {
+ this.magic = magic;
+ this.minor_version = minor_version;
+ this.major_version = major_version;
+ this.constant_pool = constant_pool;
+ this.access_flags = access_flags;
+ this.this_class = this_class;
+ this.super_class = super_class;
+ this.interfaces = interfaces;
+ this.fields = fields;
+ this.methods = methods;
+ this.attributes = attributes;
+ }
+
+ public String getName() throws ConstantPoolException {
+ return constant_pool.getClassInfo(this_class).getName();
+ }
+
+ public String getSuperclassName() throws ConstantPoolException {
+ return constant_pool.getClassInfo(super_class).getName();
+ }
+
+ public String getInterfaceName(int i) throws ConstantPoolException {
+ return constant_pool.getClassInfo(interfaces[i]).getName();
+ }
+
+ public Attribute getAttribute(String name) {
+ return attributes.get(name);
+ }
+
+ public boolean isClass() {
+ return !isInterface();
+ }
+
+ public boolean isInterface() {
+ return access_flags.is(ACC_INTERFACE);
+ }
+
+ public int byteLength() {
+ return 4 + // magic
+ 2 + // minor
+ 2 + // major
+ constant_pool.byteLength() +
+ 2 + // access flags
+ 2 + // this_class
+ 2 + // super_class
+ byteLength(interfaces) +
+ byteLength(fields) +
+ byteLength(methods) +
+ attributes.byteLength();
+ }
+
+ private int byteLength(int[] indices) {
+ return 2 + 2 * indices.length;
+ }
+
+ private int byteLength(Field[] fields) {
+ int length = 2;
+ for (Field f: fields)
+ length += f.byteLength();
+ return length;
+ }
+
+ private int byteLength(Method[] methods) {
+ int length = 2;
+ for (Method m: methods)
+ length += m.byteLength();
+ return length;
+ }
+
+ public final int magic;
+ public final int minor_version;
+ public final int major_version;
+ public final ConstantPool constant_pool;
+ public final AccessFlags access_flags;
+ public final int this_class;
+ public final int super_class;
+ public final int[] interfaces;
+ public final Field[] fields;
+ public final Method[] methods;
+ public final Attributes attributes;
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/ClassReader.java 2015-05-26 21:42:17.943832801 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,106 +0,0 @@
-/*
- * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.io.BufferedInputStream;
-import java.io.ByteArrayInputStream;
-import java.io.DataInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Objects;
-
-/**
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class ClassReader {
- ClassReader(ClassFile classFile, InputStream in, Attribute.Factory attributeFactory) throws IOException {
- this.classFile = Objects.requireNonNull(classFile);
- this.attributeFactory = Objects.requireNonNull(attributeFactory);
- this.in = new DataInputStream(new BufferedInputStream(in));
- }
-
- ClassFile getClassFile() {
- return classFile;
- }
-
- ConstantPool getConstantPool() {
- return classFile.constant_pool;
- }
-
- public Attribute readAttribute() throws IOException {
- int name_index = readUnsignedShort();
- int length = readInt();
- byte[] data = new byte[length];
- readFully(data);
-
- DataInputStream prev = in;
- in = new DataInputStream(new ByteArrayInputStream(data));
- try {
- return attributeFactory.createAttribute(this, name_index, data);
- } finally {
- in = prev;
- }
- }
-
- public void readFully(byte[] b) throws IOException {
- in.readFully(b);
- }
-
- public int readUnsignedByte() throws IOException {
- return in.readUnsignedByte();
- }
-
- public int readUnsignedShort() throws IOException {
- return in.readUnsignedShort();
- }
-
- public int readInt() throws IOException {
- return in.readInt();
- }
-
- public long readLong() throws IOException {
- return in.readLong();
- }
-
- public float readFloat() throws IOException {
- return in.readFloat();
- }
-
- public double readDouble() throws IOException {
- return in.readDouble();
- }
-
- public String readUTF() throws IOException {
- return in.readUTF();
- }
-
- private DataInputStream in;
- private ClassFile classFile;
- private Attribute.Factory attributeFactory;
-}
--- /dev/null 2015-04-26 22:05:36.465433038 -0700
+++ new/langtools/src/jdk.jdeps/share/classes/com/sun/tools/classfile/ClassReader.java 2015-05-26 21:42:17.767832799 -0700
@@ -0,0 +1,106 @@
+/*
+ * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+package com.sun.tools.classfile;
+
+import java.io.BufferedInputStream;
+import java.io.ByteArrayInputStream;
+import java.io.DataInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Objects;
+
+/**
+ *
This is NOT part of any supported API.
+ * If you write code that depends on this, you do so at your own risk.
+ * This code and its internal interfaces are subject to change or
+ * deletion without notice.
+ */
+public class ClassReader {
+ ClassReader(ClassFile classFile, InputStream in, Attribute.Factory attributeFactory) throws IOException {
+ this.classFile = Objects.requireNonNull(classFile);
+ this.attributeFactory = Objects.requireNonNull(attributeFactory);
+ this.in = new DataInputStream(new BufferedInputStream(in));
+ }
+
+ ClassFile getClassFile() {
+ return classFile;
+ }
+
+ ConstantPool getConstantPool() {
+ return classFile.constant_pool;
+ }
+
+ public Attribute readAttribute() throws IOException {
+ int name_index = readUnsignedShort();
+ int length = readInt();
+ byte[] data = new byte[length];
+ readFully(data);
+
+ DataInputStream prev = in;
+ in = new DataInputStream(new ByteArrayInputStream(data));
+ try {
+ return attributeFactory.createAttribute(this, name_index, data);
+ } finally {
+ in = prev;
+ }
+ }
+
+ public void readFully(byte[] b) throws IOException {
+ in.readFully(b);
+ }
+
+ public int readUnsignedByte() throws IOException {
+ return in.readUnsignedByte();
+ }
+
+ public int readUnsignedShort() throws IOException {
+ return in.readUnsignedShort();
+ }
+
+ public int readInt() throws IOException {
+ return in.readInt();
+ }
+
+ public long readLong() throws IOException {
+ return in.readLong();
+ }
+
+ public float readFloat() throws IOException {
+ return in.readFloat();
+ }
+
+ public double readDouble() throws IOException {
+ return in.readDouble();
+ }
+
+ public String readUTF() throws IOException {
+ return in.readUTF();
+ }
+
+ private DataInputStream in;
+ private ClassFile classFile;
+ private Attribute.Factory attributeFactory;
+}
--- old/langtools/src/jdk.compiler/share/classes/com/sun/tools/classfile/ClassTranslator.java 2015-05-26 21:42:18.259832806 -0700
+++ /dev/null 2015-04-26 22:05:36.465433038 -0700
@@ -1,410 +0,0 @@
-/*
- * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package com.sun.tools.classfile;
-
-import java.util.Map;
-
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Class_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Double_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Fieldref_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Float_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Integer_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_InterfaceMethodref_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_InvokeDynamic_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Long_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_MethodHandle_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_MethodType_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Methodref_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_NameAndType_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_String_info;
-import com.sun.tools.classfile.ConstantPool.CONSTANT_Utf8_info;
-import com.sun.tools.classfile.ConstantPool.CPInfo;
-
-/**
- * Rewrites a class file using a map of translations.
- *
- *
This is NOT part of any supported API.
- * If you write code that depends on this, you do so at your own risk.
- * This code and its internal interfaces are subject to change or
- * deletion without notice.
- */
-public class ClassTranslator
- implements ConstantPool.Visitor> {
- /**
- * Create a new ClassFile from {@code cf}, such that for all entries
- * {@code k -\> v} in {@code translations},
- * each occurrence of {@code k} in {@code cf} will be replaced by {@code v}.
- * in
- * @param cf the class file to be processed
- * @param translations the set of translations to be applied
- * @return a copy of {@code} with the values in {@code translations} substituted
- */
- public ClassFile translate(ClassFile cf, Map