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

missing resource diamond.not.supported.in.source

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      import java.util.*;
      class Diamond {
        List<String> l = new ArrayList<>();
      }

      $ dist/bin/javac play/Diamond.java
      $ dist/bin/javac -source 6 play/Diamond.java
      play/Diamond.java:3: compiler message file broken: key=compiler.err.diamond.not.supported.in.source arguments=1.6, {1}, {2}, {3}, {4}, {5}, {6}, {7}
        List<String> l = new ArrayList<>();
                                       ^
      1 error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                jjg Jonathan Gibbons
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: