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

XMLWordPrintable

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

          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

            Assignee:
            Srikanth Adayapalam (Inactive)
            Reporter:
            Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: