javac, bridge methods are not getting the flags from the original method, follow-up

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 8, 9
    • Component/s: tools

      Previous fix for JDK-8042785 broke several tests and was delta applied. A better fix, or a won't fix decision, should be considered and provided. If you apply the original fix for JDK-8042785 and compile this code:

      import java.util.stream.IntStream;

      public class Test {
          public static void main(String[] args) {
              IntStream.of(1, 2, 3, 4).sum();
          }
      }

      then the command:

      java Test

      fails with a verification error.

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: