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

Compiler should emit a clearer message for invalid parenthesized expression

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • tools
    • b14

      During the work for JDK-8055080 for creation of golden files for negative tests, it was suggested to update the wording for the following error key:

      Parens1.java:12:20: compiler.err.illegal.start.of.type
      Code: String s = (Integer).toString(123);

      Test: tools/javac/Parens1.java
      Suggestion for the new error key: "illegal.parenthesized.expression" instead of "illegal.start.of.type"
      Golden file will need to be updated once the error key is updated.

            pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
            sogoel Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: