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

test tools/javac/api/T6412669.java fails in PIT

    Details

    • Subcomponent:
    • Resolved In Build:
      b120
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      This test has been failing in recent promoted builds, although not for developer builds.

      The annotation processor is not having a chance to run correctly because of earlier compilation errors.

      Here is the extract from the JPRT log.

      --------------------------------------------------
      TEST: tools/javac/api/T6412669.java
      JDK under test: (/tmp/jprt/T1/T/030119.ss145989/testproduct/linux_i586_2.6-product)
      java version "1.7.0-internal"
      Java(TM) SE Runtime Environment (build 1.7.0-internal-jprtadm_2010_11_02_22_29-b00)
      Java HotSpot(TM) Server VM (build 20.0-b02-201011030301.ss145989.tl-pit-2d-awt-swin, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.058 seconds
      messages:
      command: build T6412669
      reason: Named class compiled on demand
      elapsed time (seconds): 0.058

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.057 seconds
      messages:
      command: compile /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.057

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.AssertionError: test failed
      REASON: Assumed action based on file name: run main T6412669
      TIME: 0.035 seconds
      messages:
      command: main T6412669
      reason: Assumed action based on file name: run main T6412669
      elapsed time (seconds): 0.035
      STDOUT:
      STDERR:
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:37: package com.sun.source.util does not exist
      import com.sun.source.util.*;
      ^
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:38: package com.sun.tools.javac.api does not exist
      import com.sun.tools.javac.api.*;
      ^
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:46: cannot find symbol
              JavacTool tool = JavacTool.create();
              ^
        symbol: class JavacTool
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:46: cannot find symbol
              JavacTool tool = JavacTool.create();
                               ^
        symbol: variable JavacTool
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:53: cannot find symbol
              JavacTask task = tool.getTask(null, fm, null, Arrays.asList(opts), null, files);
              ^
        symbol: class JavacTask
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:59: cannot find symbol
              Trees trees = Trees.instance(processingEnv);
              ^
        symbol: class Trees
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:59: cannot find symbol
              Trees trees = Trees.instance(processingEnv);
                            ^
        symbol: variable Trees
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:60: cannot find symbol
              SourcePositions sp = trees.getSourcePositions();
              ^
        symbol: class SourcePositions
        location: class T6412669
      /tmp/jprt/T1/T/030119.ss145989/source/langtools/test/tools/javac/api/T6412669.java:64: cannot find symbol
                      TreePath p = trees.getPath(e);
                      ^
        symbol: class TreePath
        location: class T6412669
      9 errors
      java.lang.AssertionError: test failed
      at T6412669.main(T6412669.java:55)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:729)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: test failed
      --------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: