Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P5
-
Resolution: Won't Fix
-
Affects Version/s: 6
-
Fix Version/s: None
-
Component/s: tools
-
Subcomponent:
-
CPU:generic
-
OS:generic
Description
Because WildcardType.bound may not be initialized before a wildcard
is used in a subtype question, the following code is used to determine
the upper bound of super bounded wildcards:
WildcardType w = (WildcardType)t;
w.bound == null ? syms.objectType : w.bound.bound;
This is unfortunate and should be addressed by rethinking how wildcards
are set up.
is used in a subtype question, the following code is used to determine
the upper bound of super bounded wildcards:
WildcardType w = (WildcardType)t;
w.bound == null ? syms.objectType : w.bound.bound;
This is unfortunate and should be addressed by rethinking how wildcards
are set up.