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

raw types and inference

XMLWordPrintable

    • b55
    • generic
    • generic
    • Verified

      javac incorrectly accepts this program:

      import java.lang.reflect.Constructor;
      import java.lang.annotation.Documented;

      public class Test {
          Constructor c = null;
          Documented d = c.getAnnotation(Documented.class);
      }

            mcimadamore Maurizio Cimadamore
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: