Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 16 of 16) 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/lang/
DClass.java462 Type[] bounds = typeVar.getBounds(); in typeVarBounds() local
463 if (bounds.length == 1 && bounds[0].equals(Object.class)) { in typeVarBounds()
467 Arrays.stream(bounds) in typeVarBounds()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java1416 final int bounds; // min, max threads packed as shorts
1783 int md = mode, b = bounds;
2542 this.bounds = ((minAvail - p) & SMASK) | (maxSpares << SWIDTH);
2589 this.bounds = ((1 - p) & SMASK) | (COMMON_MAX_SPARES << SWIDTH);
2594 this.bounds = 0;
/libcore/ojluni/src/main/java/java/math/
DBigDecimal.java4221 long[] bounds = THRESHOLDS_TABLE;
4222 if (n < tab.length && n < bounds.length) {
4226 if (Math.abs(val) <= bounds[n])
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DX-VarHandleTestByteArrayView.java.template183 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bas, h),
210 … "index out of bounds", bav, vh, h -> testArrayIndexOutOfBounds(bbs, h),
DX-VarHandleTestMethodHandleAccess.java.template103 cases.add(new MethodHandleAccessTestCase("Array index out of bounds",
DX-VarHandleTestAccess.java.template256 cases.add(new VarHandleAccessTestCase("Array index out of bounds",
/libcore/ojluni/src/test/java/nio/Buffer/
DBasic-X.java.template378 // index out-of bounds
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template2279 * upper bounds check is performed
2328 * and limit will be zero. If rounding is within bounds the following
/libcore/expectations/
Dknownfailures.txt47 …description: "can't compile a pattern with negative look-behind and quantifiers with upper bounds",