javac: illegal forward reference since b115

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • Environment:

      b115

    • generic
    • generic

      Try to compile

      public class ForwardRefTest {
          private Runnable t = ()-> {o.toString();};
          private Object o = new Object();

      }

      Anonymous class instead of lambda works fine.

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: