int.class and ilk have wrong type

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: