src/share/classes/com/sun/tools/javac/main/JavaCompiler.java

changeset 757
c44234f680da
parent 726
2974d3800eb1
child 816
7c537f4298fb
     1.1 --- a/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Mon Nov 29 10:09:48 2010 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Mon Nov 29 14:15:36 2010 -0800
     1.3 @@ -51,6 +51,7 @@
     1.4  import com.sun.tools.javac.file.JavacFileManager;
     1.5  import com.sun.tools.javac.util.*;
     1.6  import com.sun.tools.javac.code.*;
     1.7 +import com.sun.tools.javac.code.Lint.LintCategory;
     1.8  import com.sun.tools.javac.code.Symbol.*;
     1.9  import com.sun.tools.javac.tree.*;
    1.10  import com.sun.tools.javac.tree.JCTree.*;
    1.11 @@ -370,6 +371,15 @@
    1.12          processPcks   = options.isSet("process.packages");
    1.13          werror        = options.isSet(WERROR);
    1.14  
    1.15 +        if (source.compareTo(Source.DEFAULT) < 0) {
    1.16 +            if (options.isUnset(XLINT_CUSTOM, "-" + LintCategory.OPTIONS.option)) {
    1.17 +                if (fileManager instanceof BaseFileManager) {
    1.18 +                    if (((BaseFileManager) fileManager).isDefaultBootClassPath())
    1.19 +                        log.warning(LintCategory.OPTIONS, "source.no.bootclasspath", source.name);
    1.20 +                }
    1.21 +            }
    1.22 +        }
    1.23 +
    1.24          verboseCompilePolicy = options.isSet("verboseCompilePolicy");
    1.25  
    1.26          if (attrParseOnly)
    1.27 @@ -783,6 +793,7 @@
    1.28          hasBeenUsed = true;
    1.29  
    1.30          start_msec = now();
    1.31 +
    1.32          try {
    1.33              initProcessAnnotations(processors);
    1.34  
    1.35 @@ -797,7 +808,7 @@
    1.36              elapsed_msec = delegateCompiler.elapsed_msec;
    1.37          } catch (Abort ex) {
    1.38              if (devVerbose)
    1.39 -                ex.printStackTrace();
    1.40 +                ex.printStackTrace(System.err);
    1.41          } finally {
    1.42              if (procEnvImpl != null)
    1.43                  procEnvImpl.close();
    1.44 @@ -841,7 +852,7 @@
    1.45              }
    1.46          } catch (Abort ex) {
    1.47              if (devVerbose)
    1.48 -                ex.printStackTrace();
    1.49 +                ex.printStackTrace(System.err);
    1.50          }
    1.51  
    1.52          if (verbose) {

mercurial