Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 9 of 9) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DTypeVariableTest.java40 Type[] bounds = typeVariable.getBounds(); in testSimpleTypeVariableOnClass() local
41 assertLenghtOne(bounds); in testSimpleTypeVariableOnClass()
42 assertEquals(Object.class, bounds[0]); in testSimpleTypeVariableOnClass()
58 Type[] bounds = typeVariable.getBounds(); in testSimpleTypeVariableOnMethod() local
59 assertLenghtOne(bounds); in testSimpleTypeVariableOnMethod()
60 assertEquals(Object.class, bounds[0]); in testSimpleTypeVariableOnMethod()
76 Type[] bounds = typeVariable.getBounds(); in testSimpleTypeVariableOnConstructor() local
77 assertLenghtOne(bounds); in testSimpleTypeVariableOnConstructor()
78 assertEquals(Object.class, bounds[0]); in testSimpleTypeVariableOnConstructor()
158 Type[] bounds = typeVariable.getBounds(); in testSingleBound() local
[all …]
DBoundedGenericMethodsTests.java55 Type[] bounds = typeParameter.getBounds(); in checkBoundedTypeParameter() local
56 assertLenghtOne(bounds); in checkBoundedTypeParameter()
57 Type bound = bounds[0]; in checkBoundedTypeParameter()
92 Type[] bounds = returnTypeVariable.getBounds(); in checkReturnType() local
93 assertLenghtOne(bounds); in checkReturnType()
94 Type bound = bounds[0]; in checkReturnType()
DWildcardTypeTest.java62 Type[] bounds = typeParameter.getBounds(); in checkBoundedTypeParameter() local
63 assertLenghtOne(bounds); in checkBoundedTypeParameter()
64 Type bound = bounds[0]; in checkBoundedTypeParameter()
121 Type[] bounds = returnTypeVariable.getBounds(); in checkReturnType() local
122 assertLenghtOne(bounds); in checkReturnType()
123 Type bound = bounds[0]; in checkReturnType()
/libcore/luni/src/main/java/libcore/reflect/
DTypeVariableImpl.java32 private ListOfTypes bounds; field in TypeVariableImpl
55 TypeVariableImpl(D genericDecl, String name, ListOfTypes bounds) { in TypeVariableImpl() argument
58 this.bounds = bounds; in TypeVariableImpl()
116 this.bounds = formalVar.bounds; in resolve()
121 return bounds.getResolvedTypes().clone(); in getBounds()
DGenericSignatureParser.java266 ListOfTypes bounds = new ListOfTypes(8); in parseFormalTypeParameter() local
271 bounds.add(parseFieldTypeSignature()); in parseFormalTypeParameter()
277 bounds.add(parseFieldTypeSignature()); in parseFormalTypeParameter()
280 return new TypeVariableImpl<GenericDeclaration>(genericDecl, name, bounds); in parseFormalTypeParameter()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DClassLoaderReflectionTest.java181 private void assertTypeVariable(TypeVariable actual, String name, Type... bounds) { in assertTypeVariable() argument
183 assertEquals(Arrays.<Type>asList(bounds), Arrays.asList(actual.getBounds())); in assertTypeVariable()
DReflectionTest.java179 Type[] bounds = t.getBounds(); in testTypeVariableWithMultipleBounds() local
180 ParameterizedType comparableT = (ParameterizedType) bounds[0]; in testTypeVariableWithMultipleBounds()
183 assertEquals(3, bounds.length); in testTypeVariableWithMultipleBounds()
184 assertEquals(Serializable.class, bounds[1]); in testTypeVariableWithMultipleBounds()
185 assertEquals(RandomAccess.class, bounds[2]); in testTypeVariableWithMultipleBounds()
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java3687 long[] bounds = THRESHOLDS_TABLE; in longMultiplyPowerTen() local
3688 if (n < tab.length && n < bounds.length) { in longMultiplyPowerTen()
3692 if (Math.abs(val) <= bounds[n]) in longMultiplyPowerTen()
/libcore/expectations/
Dknownfailures.txt47 …description: "can't compile a pattern with negative look-behind and quantifiers with upper bounds",