hg: jigsaw/tools: Include the runtime references in the class dependency analysis.

mandy.chung at sun.com mandy.chung at sun.com
Tue Nov 17 16:46:12 PST 2009


Changeset: 6def833cde42
Author:    mchung
Date:      2009-11-17 16:45 -0800
URL:       http://hg.openjdk.java.net/jigsaw/tools/rev/6def833cde42

Include the runtime references in the class dependency analysis.
make/classanalyzer.sh now sets -depconfig jdk7.depconfig option.

Runtime references include classes loaded by Class.forName, providers
and native JNI_FindClass, etc.  Some of these dependencies are
"soft" dependencies meaning that either
(1) they won't cause CNFE if the class is not found, or
(2) the class is guaranteed to exist if it attempts to load it.

The reports only include hard and optional dependencies by default.
To show these soft dynamic dependencies, run:
   classanalyzer.sh <jdkhome> -showdynamic

! make/classanalyzer.sh
! make/config/jax.depconfig
! make/config/jdk7.depconfig
! make/config/optional.depconfig
! src/share/classes/com/sun/classanalyzer/AnnotatedDependency.java
! src/share/classes/com/sun/classanalyzer/AnnotationParser.java
! src/share/classes/com/sun/classanalyzer/ClassAnalyzer.java
! src/share/classes/com/sun/classanalyzer/ClassFileParser.java
! src/share/classes/com/sun/classanalyzer/ClassPath.java
! src/share/classes/com/sun/classanalyzer/CodeAttributeParser.java
! src/share/classes/com/sun/classanalyzer/ConstantPoolParser.java
! src/share/classes/com/sun/classanalyzer/Klass.java
! src/share/classes/com/sun/classanalyzer/Module.java
! src/share/classes/com/sun/classanalyzer/ModuleConfig.java




More information about the jigsaw-dev mailing list