jcstress: Helpful message when test builds are misconfigured

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      Like CODETOOLS-7903908, we want to make sure when build configuration is wrong, we print a nice message in jcstress. Currently, JDK 25 builds are failing with:

      $ java -jar tests-custom/target/jcstress.jar

      ...

      Exception in thread "main" java.lang.NullPointerException
      at java.base/java.io.Reader.<init>(Reader.java:286)
      at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:82)
      at org.openjdk.jcstress.infra.runners.TestList.getTests(TestList.java:51)
      at org.openjdk.jcstress.infra.runners.TestList.tests(TestList.java:104)
      at org.openjdk.jcstress.JCStress.getTests(JCStress.java:222)
      at org.openjdk.jcstress.JCStress.getConfigs(JCStress.java:99)
      at org.openjdk.jcstress.JCStress.run(JCStress.java:59)
      at org.openjdk.jcstress.Main.main(Main.java:57)

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: