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

raw types and inference

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b55
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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);
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: