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

int.class and ilk have wrong type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 5.0
    • tools
    • generic
    • generic

      According to JLS3 15.8.2, the type of p.class, where p is the name of a
      primnitive type, is Class<?>. Likewise for void.class.

      The compiler gives each of these a type Class<B>, where B is the wrapper type
      corresponding to p: Integer for int, Double for double etc.

            gafter Neal Gafter (Inactive)
            gbrachasunw Gilad Bracha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: