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

javac: illegal forward reference since b115

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • None
    • tools
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: