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

missing resource diamond.not.supported.in.source

XMLWordPrintable

    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: