Home
last modified time | relevance | path

Searched refs:ClassCastException (Results 1 – 25 of 155) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java155 } catch (ClassCastException expected) {} in explicitCastArgumentParentToChild()
192 } catch (ClassCastException expected) {} in explicitCastReturnValueParentToChild()
346 } catch (ClassCastException expected) {} in explicitCastArgumentZToByte()
355 } catch (ClassCastException expected) {} in explicitCastArgumentZToCharacter()
364 } catch (ClassCastException expected) {} in explicitCastArgumentZToShort()
373 } catch (ClassCastException expected) {} in explicitCastArgumentZToInteger()
382 } catch (ClassCastException expected) {} in explicitCastArgumentZToLong()
391 } catch (ClassCastException expected) {} in explicitCastArgumentZToFloat()
400 } catch (ClassCastException expected) {} in explicitCastArgumentZToDouble()
473 } catch (ClassCastException expected) {} in explicitCastArgumentBToBoolean()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassCastExceptionTest.java28 ClassCastException e = new ClassCastException(); in test_Constructor()
38 ClassCastException e = new ClassCastException("fixture"); in test_ConstructorLjava_lang_String()
/libcore/ojluni/src/main/java/java/lang/
DClassCastException.java39 public class ClassCastException extends RuntimeException { class
46 public ClassCastException() { in ClassCastException() method in ClassCastException
56 public ClassCastException(String s) { in ClassCastException() method in ClassCastException
/libcore/luni/src/test/java/libcore/java/lang/
DClassCastExceptionTest.java31 } catch (ClassCastException ex) { in testClassCast()
40 } catch (ClassCastException ex) { in testClassAsSubclass()
54 } catch (ClassCastException ex) { in testEnumMapPut()
64 } catch (ClassCastException ex) { in testMiniEnumSetAdd()
75 } catch (ClassCastException ex) { in testMiniEnumSetAddAll()
96 } catch (ClassCastException ex) { in testHugeEnumSetAdd()
107 } catch (ClassCastException ex) { in testHugeEnumSetAddAll()
/libcore/ojluni/src/test/java/util/EnumSet/
DInsertWrongType.java96 } catch(ClassCastException e) {} in addIllTypedElt()
104 } catch(ClassCastException e) {} in addAllIllTypedElt()
120 } catch(ClassCastException e) {} in heterogeneousCopyOf()
127 } catch(ClassCastException e) {} in heterogeneousOf2()
134 } catch(ClassCastException e) {} in heterogeneousOf3()
141 } catch(ClassCastException e) {} in heterogeneousOf4()
148 } catch(ClassCastException e) {} in heterogeneousOf5()
155 } catch(ClassCastException e) {} in heterogeneousOfVar()
163 } catch(ClassCastException e) {} in putIllTypedKey()
173 } catch(ClassCastException e) {} in putAllIllTypedKey()
[all …]
/libcore/ojluni/src/test/java/util/PriorityQueue/
DAddNonComparable.java80 assertTrue(e instanceof ClassCastException); in queues() argument
92 assertTrue(e instanceof ClassCastException); in queues() argument
115 assertTrue(e instanceof ClassCastException); in sets()
126 assertTrue(e instanceof ClassCastException); in sets()
148 assertTrue(e instanceof ClassCastException); in maps()
159 assertTrue(e instanceof ClassCastException); in maps()
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeSetTest.java51 } catch (ClassCastException e) { in test_ConstructorLjava_util_Collection()
86 } catch (ClassCastException e) { in test_addLjava_lang_Object()
108 } catch (ClassCastException e) { in test_addAllLjava_util_Collection()
153 } catch (ClassCastException e) { in test_headSetLjava_lang_Object()
215 } catch (ClassCastException e) { in test_subSetLjava_lang_ObjectLjava_lang_Object()
240 } catch (ClassCastException e) { in test_tailSetLjava_lang_Object()
DOldTreeMapTest.java121 } catch (ClassCastException e) { in test_ConstructorLjava_util_Map()
164 } catch (ClassCastException e) { in test_containsKeyLjava_lang_Object()
198 } catch (ClassCastException e) { in test_getLjava_lang_Object()
229 } catch (ClassCastException e) { in test_headMapLjava_lang_Object()
322 } catch (ClassCastException e) { in test_putLjava_lang_ObjectLjava_lang_Object()
339 } catch (ClassCastException expected) { in testRemoveNonComparableFromEmptyMap()
360 } catch (ClassCastException e) { in test_putAllLjava_util_Map()
381 } catch (ClassCastException e) { in test_removeLjava_lang_Object()
432 } catch (ClassCastException e) { in test_subMapLjava_lang_ObjectLjava_lang_Object()
474 } catch (ClassCastException e) { in test_tailMapLjava_lang_Object()
DOldCollectionsTest.java75 } catch (ClassCastException e) { in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
93 } catch (ClassCastException e) { in test_binarySearchLjava_util_ListLjava_lang_Object()
108 } catch (ClassCastException e) { in test_binarySearchLjava_util_ListLjava_lang_Object()
710 } catch (ClassCastException expected) { in assertSerialized()
731 } catch (ClassCastException expected) { in assertSerialized()
736 } catch (ClassCastException expected) { in assertSerialized()
756 } catch (ClassCastException e) { in test_checkedCollectionLjava_util_CollectionLjava_lang_Class()
771 } catch (ClassCastException e) { in test_checkedListLjava_util_ListLjava_lang_Class()
787 } catch (ClassCastException e) { in test_checkedMapLjava_util_MapLjava_lang_ClassLjava_lang_Class()
794 } catch (ClassCastException e) { in test_checkedMapLjava_util_MapLjava_lang_ClassLjava_lang_Class()
[all …]
DOldListIteratorTest.java60 if(o.getClass() == Double.class) throw new ClassCastException(); in add()
94 if(o.getClass() == Double.class) throw new ClassCastException(); in set()
206 } catch (ClassCastException e) { in testSet()
233 } catch (ClassCastException e) { in testAdd()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DParserFactory.java83 ClassCastException in makeParser()
121 ClassCastException in makeParser()
/libcore/ojluni/src/test/java/lang/invoke/
DExplicitCastArgumentsTest.java165 true, ClassCastException.class); in testRef2Prim()
192 to.wrapperType(), value, null, true, ClassCastException.class); in testPrim2Ref()
200 true, ClassCastException.class); in testPrim2Ref()
287 null, true, ClassCastException.class); in testNonBCPRef2NonBCPRef()
299 null, true, ClassCastException.class); in testNonBCPRef2NonBCPRef()
304 ClassCastException.class); in testNonBCPRef2NonBCPRef()
366 true, ClassCastException.class); in testNonBCPRef2BCPRef()
378 testSuperSiblingObj, null, true, ClassCastException.class); in testNonBCPRef2BCPRef()
384 testSuperSiblingObj, null, true, ClassCastException.class); in testNonBCPRef2BCPRef()
401 true, ClassCastException.class); in testNonBCPRef2BCPRef()
[all …]
DInvokeWithArgumentsTest.java118 } catch (ClassCastException e) {} in testPrimitiveArrayWithRef()
135 } catch (ClassCastException e) {} in testRefArrayWithCast()
/libcore/ojluni/src/test/java/util/Collections/
DCheckedQueue.java70 @Test(expectedExceptions = ClassCastException.class)
88 @Test(expectedExceptions = ClassCastException.class)
145 } catch (ClassCastException cce) { in testOffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DParserFactoryTest.java82 } catch (ClassCastException e) { in testMakeParser()
135 } catch (ClassCastException e) { in testMakeParserString()
/libcore/luni/src/test/java/libcore/java/math/
DRunCSVTestsStrict.java33 } catch (ClassCastException e) { in runTest()
58 } catch (ClassCastException e) { in run2InputTest()
DRunCSVTests.java70 } catch (ClassCastException e) { in runTest()
104 } catch (ClassCastException e) { in run2InputTest()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidArrayTest.java50 } catch (ClassCastException cce) { in testSingleInt()
110 } catch (ClassCastException cce) { in testMulti()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDate.java125 } catch (ClassCastException cce) { in test_badWithAdjusterChrono()
148 } catch (ClassCastException cce) { in test_badPlusAdjusterChrono()
171 } catch (ClassCastException cce) { in test_badMinusAdjusterChrono()
195 } catch (ClassCastException cce) { in test_badPlusTemporalUnitChrono()
219 } catch (ClassCastException cce) { in test_badMinusTemporalUnitChrono()
243 } catch (ClassCastException cce) { in test_badTemporalFieldChrono()
DTCKChronoLocalDateTime.java126 } catch (ClassCastException cce) { in test_badWithAdjusterChrono()
150 } catch (ClassCastException cce) { in test_badPlusAdjusterChrono()
174 } catch (ClassCastException cce) { in test_badMinusAdjusterChrono()
198 } catch (ClassCastException cce) { in test_badPlusTemporalUnitChrono()
222 } catch (ClassCastException cce) { in test_badMinusTemporalUnitChrono()
246 } catch (ClassCastException cce) { in test_badTemporalFieldChrono()
DTCKChronoZonedDateTime.java128 } catch (ClassCastException cce) { in test_badWithAdjusterChrono()
151 } catch (ClassCastException cce) { in test_badPlusAdjusterChrono()
175 } catch (ClassCastException cce) { in test_badMinusAdjusterChrono()
199 } catch (ClassCastException cce) { in test_badPlusTemporalUnitChrono()
223 } catch (ClassCastException cce) { in test_badMinusTemporalUnitChrono()
247 } catch (ClassCastException cce) { in test_badTemporalFieldChrono()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicReferenceFieldUpdater.java365 throw new ClassCastException(); in AtomicReferenceFieldUpdaterImpl()
431 throw new ClassCastException(); in throwAccessCheckException()
449 throw new ClassCastException(); in throwCCE()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java113 } catch (ClassCastException e) { in test_ConstructorLjava_lang_Class()
125 } catch (ClassCastException e) { in test_ConstructorLjava_lang_Class()
137 } catch (ClassCastException e) { in test_ConstructorLjava_lang_Class()
171 } catch (ClassCastException e) { in test_ConstructorLjava_util_EnumMap()
220 } catch (ClassCastException e) { in test_ConstructorLjava_util_Map()
229 } catch (ClassCastException e) { in test_ConstructorLjava_util_Map()
241 } catch (ClassCastException expected) { in testConstructor_badMapArg()
810 } catch (ClassCastException e) { in test_putLjava_lang_ObjectLjava_lang_Object()
820 } catch (ClassCastException e) { in test_putLjava_lang_ObjectLjava_lang_Object()
861 } catch (ClassCastException e) { in test_putAllLjava_util_Map()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java154 } catch (ClassCastException e) { in getParserInstance()
178 } catch (ClassCastException e) { in getSerializerInstance()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXParameters.java205 throw new ClassCastException("all elements of set must be " in setTrustAnchors()
255 throw new ClassCastException("all elements of set must be " in setInitialPolicies()
287 throw new ClassCastException("all elements of list must be " in setCertStores()

1234567