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

Further investigation needed for few error messages for negative unicode tests in langtools regression ws

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • tools
    • b24
    • Verified

        During the creation of golden files for negative unicode tests in langtools regression ws(JDK-8044080), it was seen that javac generates different error messages for similar tests. This difference in error generation needs further investigation.

        Tests:
        tools/javac/unicode/NonasciiDigit2.java
        Error message:
        NonasciiDigit.java:12:26: compiler.err.illegal.char: \uff11
        1 error

        Test:
        tools/javac/unicode/NonasciiDigit.java
        Error message:
        NonasciiDigit2.java:12:18: compiler.err.illegal.nonascii.digit
        1 error

        Based on the review from Jon, the difference is arising from JavaTokenizer.scanFraction(). More information available in the review.

              jlahoda Jan Lahoda
              sogoel Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: