Confusing error message required: value, found class

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • repo-amber
    • Affects Version/s: None
    • Component/s: tools
    • generic
    • generic

      Compiling this program:

      public class X {
          public static void main(String [] args) {
              if (args __matches Object []) {
                  System.out.println("Blah");
              }
          }
      }

      // ---

      elicits:

      /home/srikanth/tmp/X.java:3: error: unexpected type
              if (args __matches Object []) {
                                        ^
        required: value
        found: class
      1 error

      Not sure what to make of it.

            Assignee:
            Jan Lahoda
            Reporter:
            Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: