Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022901

NPE at com.sun.tools.javac.code.Symbol$TypeVariableSymbol.onlyTypeVariableAnnotations(Symbol.java:778)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 8
    • 8
    • tools
    • All

    • Not verified

      Test tools/javac/annotations/typeAnnotations/failures/TypeVariableMissingTA.java failed in nightly on all platforms:
      An exception has occurred in the compiler (1.8.0-ea). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.NullPointerException
      at com.sun.tools.javac.code.Symbol$TypeVariableSymbol.onlyTypeVariableAnnotations(Symbol.java:778)
      at com.sun.tools.javac.code.Symbol$TypeVariableSymbol.getAnnotationMirrors(Symbol.java:770)
      at com.sun.tools.javac.model.JavacElements.getAllAnnotationMirrors(JavacElements.java:408)
      at com.sun.tools.javac.model.JavacElements.getAllAnnotationMirrors(JavacElements.java:61)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.addAnnotations(JavacProcessingEnvironment.java:777)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.scan(JavacProcessingEnvironment.java:785)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.scan(JavacProcessingEnvironment.java:746)
      at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:133)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.visitType(JavacProcessingEnvironment.java:764)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.visitType(JavacProcessingEnvironment.java:746)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1076)
      at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:146)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$ComputeAnnotationSet.scan(JavacProcessingEnvironment.java:786)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.findAnnotationsPresent(JavacProcessingEnvironment.java:981)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:879)
      at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
      at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1146)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:832)
      at com.sun.tools.javac.main.Main.compile(Main.java:518)
      at com.sun.tools.javac.main.Main.compile(Main.java:376)
      at com.sun.tools.javac.main.Main.compile(Main.java:365)
      at com.sun.tools.javac.main.Main.compile(Main.java:356)
      at com.sun.tools.javac.Main.compile(Main.java:82)
      at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:491)
      at com.sun.javatest.regtest.RegressionCompileCommand.run(RegressionCompileCommand.java:248)
      at com.sun.javatest.regtest.CompileAction.runCompile(CompileAction.java:558)
      at com.sun.javatest.regtest.CompileAction.runSameJVM(CompileAction.java:397)
      at com.sun.javatest.regtest.CompileAction.run(CompileAction.java:252)
      at com.sun.javatest.regtest.RegressionScript.run(RegressionScript.java:149)
      at com.sun.javatest.Script.run(Script.java:228)
      at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:174)
      at com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:43)
      at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:66)
      result: Error. compiler crashed (exit code 4)

      example:
      http://aurora-ds.us.oracle.com:9500/runs%2F269937.JSR308-LANGTOOLS-NIGHTLY-4/results/workDir/tools/javac/annotations/typeAnnotations/failures/TypeVariableMissingTA.jtr

            wmdietl Werner Dietl
            lshikhva Ludmila Shikhvarg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: