3 questions
5
votes
0
answers
78
views
Why does directSupertypes() not return a raw type as required by JLS 4.10?
The contract for Types#directSupertypes(TypeMirror) says that it will return "the direct supertypes of a type". It also references section 4.10 of the Java Language Specification.
The set of ...
0
votes
1
answer
43
views
Why does directSupertypes(TypeMirror) return an empty List when given a primitive type of int?
If I invoke javax.lang.model.util.Types#directSupertypes(TypeMirror) on a TypeMirror representing int, the resulting List is empty.
The Java Language Specification says that the direct supertype of ...
0
votes
0
answers
61
views
Why does directSupertypes(TypeMirror) return an IntersectionType containing only two bounds when given Object[]'s array type?
If I invoke javax.lang.model.util.Types#directSupertypes(TypeMirror) on a TypeMirror corresponding to java.lang.Object[] (an array type), the resulting list is of size 1. The sole element of the list ...