Fix method reference parser support in order to avoid ambiguities

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • b19
    • unknown
    • generic
    • Verified

      The initial support for method reference parsing contained did not handle well an ambiguity between unbound method references and binary expression:

      class Test {
         void test() { that(i < len, "oopmap"); }
         void that(int i, String s) { };
      }

      The above code failed to compile, as the compiler tried to parse the sequence 'i' '<' 'len' as an unbound method reference (whose qualifier is a generic type).

            Assignee:
            Maurizio Cimadamore
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: