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

Fix method reference parser support in order to avoid ambiguities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      unknown
    • OS:
      generic
    • Verification:
      Verified

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: