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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: