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

javac: illegal forward reference since b115

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P3
    • None
    • None
    • tools
    • None
    • b115

    • generic
    • generic

    Description

      Try to compile

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

      }

      Anonymous class instead of lambda works fine.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: