lowerBoundASTs = lbs;
}
- /**
- * Static factory.
- */
public static WildcardTypeImpl make(FieldTypeSignature[] ubs,
FieldTypeSignature[] lbs,
GenericsFactory f) {
throw new UnsupportedOperationException();
}
- public native Type[] getUpperBounds();
+ public Type[] getUpperBounds() {
+ return upperBounds;
+ }
- public native Type[] getLowerBounds();
+ public Type[] getLowerBounds() {
+ return lowerBounds;
+ }
public String toString() {
Type[] lowerBounds = getLowerBounds();
return "?";
}
- assert bounds.length > 0;
+ // TODO: Commented out since it's producing <clinit> that blocks us from getting a new object without
+ // TODO: initializing it through the constructor.
+ //assert bounds.length > 0;
boolean first = true;
for(Type bound: bounds) {