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

[lworld] Javac fails to compile V?[].class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:

      Description

          public static void main(String[] args) {
              System.out.println(MyValue1?[].class);
          }

      Test.java:39: error: illegal start of expression
              System.out.println(MyValue1?[].class);
                                          ^
      Test.java:39: error: illegal start of expression
              System.out.println(MyValue1?[].class);
                                           ^
      Test.java:39: error: <identifier> expected
              System.out.println(MyValue1?[].class);
                                             ^
      Test.java:39: error: not a statement
              System.out.println(MyValue1?[].class);
                                            ^
      Test.java:39: error: ';' expected
              System.out.println(MyValue1?[].class);
                                                  ^
      5 errors

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: