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

Improve the diagnostic message when class literal is used on generic type parameter array

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 9
    • tools

      During work on JDK-8074425 for creation of golden files for negative tests, it was discovered that the error diagnostic generated for tools/javac/generics/GenLit2.java can be improved by parametrizing the diagnostic to accept a more specific description.

      Current golden file for this test:
      GenLit2.java:13:18: compiler.err.type.var.cant.be.deref
      1 error

            Unassigned Unassigned
            sogoel Sonali Goel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: