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

Code generation crash with lambda and local classes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b82
    • Verification:
      Verified

      Description

      The following code crashes javac

      interface SAM {
          Object m();
      }

      class Test {
          static void test(String s) {
              class Foo {
                   void m() {
                        Object o = s;
                   }
               }
           SAM s2 = ()->new Foo(); }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: