Code generation crash with lambda and local classes

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • None
    • b82
    • Verified

      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(); }
      }

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

              Created:
              Updated:
              Resolved: