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

TEST_BUG: java/lang/invoke/lambda/LambdaAccessControlTest.java fails intermittently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • core-libs

    Description


      Some of us run the jdk tests concurrency in a pool of VMs to get fast test runs ("jtreg -agentvm -concurrency:auto" for example).

      This test doesn't like this mode, seems that it depends on LUtils that is defined in LambdaAccessControlDoPrivilegedTest.java unbeknownst to the compiler. I assume it works without concurrency because LambdaAccessControlDoPrivilegedTest.java runs before LambdaAccessControlTest normally.

      Here's an example fragment from the .jtr file.

      section:compile
      ----------messages:(3/247)----------
      command: compile -XDignore.symbol.file /u/alanb/ws/profiles/jdk/test/java/lang/invoke/lambda/LambdaAccessControlTest.java
      reason: User specified action: run compile -XDignore.symbol.file LambdaAccessControlTest.java
      elapsed time (seconds): 0.028
      ----------direct:(5/245)----------
      /u/alanb/ws/profiles/jdk/test/java/lang/invoke/lambda/LambdaAccessControlTest.java:33: error: cannot find symbol
      public class LambdaAccessControlTest extends LUtils {
                                                   ^
        symbol: class LUtils
      1 error
      result: Failed. Compilation failed: Compilation failed


      test result: Failed. Compilation failed: Compilation failed

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: