src/share/classes/com/sun/tools/sjavac/comp/ResolveWithDeps.java

Print this page

        

*** 60,67 **** * @param to The enclosing classes references this sym. * */ @Override public void reportDependence(Symbol from, Symbol to) { // Capture dependencies between the packages. ! deps.collect(from.packge().fullname, to.packge().fullname); } } --- 60,72 ---- * @param to The enclosing classes references this sym. * */ @Override public void reportDependence(Symbol from, Symbol to) { // Capture dependencies between the packages. ! deps.reportPackageDep(from.packge().fullname, to.packge().fullname); ! // It would be convenient to check if to.outermost comes from source or classpath ! // and only report it, if its from the classpath. This would reduce the amount ! // of data sent over the wire to the sjavac client. Can this be done? All interesting ! // classes are private within javac/file or javac/jvm.... ! deps.reportClassDep(to.outermostClass()); } }