Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903745

NumberFormatException after verbose flag propagation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Other
    • P3
    • None
    • jtreg7.5
    • tools
    • None
    • inapplicable

    Description

      Source: https://github.com/openjdk/jtreg/commit/d890abfb880dcd4cb9b2fa2e09a7a058f5237044#commitcomment-142736508

      Hi there, I noticed that this commit is breaking a Corretto/JDK test (java/lang/PrivateInvokeTest.java) with the following error:

      ```
      STDERR:
      STARTED test.java.lang.invoke.PrivateInvokeTest::testFirst 'testFirst'
      java.lang.NumberFormatException: For input string: "Verbose[p=SUMMARY,f=FULL,e=FULL,t=false,m=false]"
          at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
          at java.base/java.lang.Integer.parseInt(Integer.java:662)
          at java.base/java.lang.Integer.parseInt(Integer.java:778)
          at test.java.lang.invoke.PrivateInvokeTest.<init>(PrivateInvokeTest.java:72)
          at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
      FAILED test.java.lang.invoke.PrivateInvokeTest::testFirst 'testFirst'
      STARTED test.java.lang.invoke.PrivateInvokeTest::testInvokeDirect 'testInvokeDirect'
      java.lang.NumberFormatException: For input string: "Verbose[p=SUMMARY,f=FULL,e=FULL,t=false,m=false]"
          at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
          at java.base/java.lang.Integer.parseInt(Integer.java:662)
          at java.base/java.lang.Integer.parseInt(Integer.java:778)
          at test.java.lang.invoke.PrivateInvokeTest.<init>(PrivateInvokeTest.java:72)
          at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
      FAILED test.java.lang.invoke.PrivateInvokeTest::testInvokeDirect 'testInvokeDirect'
      JavaTest Message: JUnit Platform Failure(s): 2
      ```

      This was discovered when running JDK tests with JTReg using this commit as the latest. I noticed that this repository does not have an issues section -- how could I go about opening up this as an issue?

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              cstein Christian Stein
              cstein Christian Stein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: