Home
last modified time | relevance | path

Searched refs:ex (Results 1 – 25 of 61) sorted by relevance

123

/art/test/201-built-in-except-detail-messages/src/
DMain.java58 } catch (ArrayIndexOutOfBoundsException ex) { in arrayAccess()
59 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
66 } catch (ArrayIndexOutOfBoundsException ex) { in arrayAccess()
67 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
74 } catch (ArrayIndexOutOfBoundsException ex) { in arrayAccess()
75 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
82 } catch (ArrayIndexOutOfBoundsException ex) { in arrayAccess()
83 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
90 } catch (ArrayIndexOutOfBoundsException ex) { in arrayAccess()
91 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
[all …]
/art/test/042-new-instance/src/
DMain.java39 } catch (Exception ex) { in testClassNewInstance()
41 ex.printStackTrace(System.out); in testClassNewInstance()
51 } catch (Exception ex) { in testClassNewInstance()
53 ex.printStackTrace(System.out); in testClassNewInstance()
63 } catch (Exception ex) { in testClassNewInstance()
79 } catch (Exception ex) { in testConstructorNewInstance()
81 ex.printStackTrace(System.out); in testConstructorNewInstance()
90 } catch (Exception ex) { in testConstructorNewInstance()
92 ex.printStackTrace(System.out); in testConstructorNewInstance()
101 } catch (Exception ex) { in testConstructorNewInstance()
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleBadCoordinateTests.java52 } catch (ClassCastException ex) { in doTest()
57 } catch (WrongMethodTypeException ex) { in doTest()
62 } catch (WrongMethodTypeException ex) { in doTest()
67 } catch (WrongMethodTypeException ex) { in doTest()
72 } catch (WrongMethodTypeException ex) { in doTest()
77 } catch (NullPointerException ex) { in doTest()
82 } catch (WrongMethodTypeException ex) { in doTest()
108 } catch (ArrayIndexOutOfBoundsException ex) { in doTest()
113 } catch (ArrayIndexOutOfBoundsException ex) { in doTest()
118 } catch (ArrayIndexOutOfBoundsException ex) { in doTest()
[all …]
DVarHandleTypeConversionTests.java82 } catch (NullPointerException ex) { in doTest()
110 } catch (NullPointerException ex) { in doTest()
137 } catch (NullPointerException ex) { in doTest()
166 } catch (NullPointerException ex) { in doTest()
194 } catch (NullPointerException ex) { in doTest()
223 } catch (NullPointerException ex) { in doTest()
252 } catch (NullPointerException ex) { in doTest()
283 } catch (NullPointerException ex) { in doTest()
311 } catch (WrongMethodTypeException ex) { in doTest()
316 } catch (WrongMethodTypeException ex) { in doTest()
[all …]
DVarHandleAccessorExceptionTests.java32 } catch (NullPointerException ex) { in doTest()
63 } catch (UnsupportedOperationException ex) { in doTest()
91 } catch (WrongMethodTypeException ex) { in doTest()
120 } catch (WrongMethodTypeException ex) { in doTest()
150 } catch (WrongMethodTypeException ex) { in doTest()
181 } catch (WrongMethodTypeException ex) { in doTest()
214 } catch (UnsupportedOperationException ex) { in doTest()
/art/test/542-inline-trycatch/src/
DMain.java42 } catch (NumberFormatException ex) { in $noinline$TryCatch()
52 } catch (NumberFormatException ex) { in testSingleBlockFromTry()
60 } catch (NumberFormatException ex) {} in testSingleBlockFromTry()
68 } catch (Exception ex) { in testSingleBlockFromCatch()
79 } catch (NumberFormatException ex) { in testMultipleBlocksFromTry()
86 } catch (NumberFormatException ex) { in testMultipleBlocksFromTry()
94 } catch (NumberFormatException ex) {} in testMultipleBlocksFromTry()
99 } catch (NumberFormatException ex) {} in testMultipleBlocksFromTry()
107 } catch (Exception ex) { in testMultipleBlocksFromCatch()
114 } catch (Exception ex) { in testMultipleBlocksFromCatch()
[all …]
/art/test/2000-virtual-list-structural/
Dbuild21 mv src-ex/java/util/AbstractCollection.java src-ex/java/util/AbstractCollection.bak
22 cp src-ex/java/util/AbstractCollection.bak src-ex/java/util/AbstractCollection.java
25 patch src-ex/java/util/AbstractCollection.java AbstractCollection.patch
30 rm src-ex/java/util/AbstractCollection.java
31 mv src-ex/java/util/AbstractCollection.bak src-ex/java/util/AbstractCollection.java
/art/test/etc/
Ddefault-build83 if [ -d smali-ex ]; then
89 if [ -d src-ex ]; then
372 mkdir classes-ex
374 …javac_with_bootclasspath -implicit:none -sourcepath src -d classes-ex `find src-dex2oat-unresolved…
376 make_dex classes-ex
377 mv classes-ex.dex classes.dex # rename it so it shows up as "classes.dex" in the zip file.
378 zip ${TEST_NAME}-ex.jar classes.dex
476 mkdir -p classes-tmp-for-ex
480 javac_with_bootclasspath -d classes-tmp-for-ex \
484 javac_with_bootclasspath -d classes-tmp-for-ex `find src -name '*.java'`
[all …]
/art/test/674-hiddenapi/src-ex/
DReflection.java29 } catch (NoSuchFieldException ex) { in canDiscoverWithGetDeclaredField()
47 } catch (NoSuchFieldException ex) { in canDiscoverWithGetField()
67 } catch (Exception ex) { in canGetField()
68 ex.printStackTrace(); in canGetField()
79 } catch (Exception ex) { in canSetField()
80 ex.printStackTrace(); in canSetField()
89 } catch (NoSuchMethodException ex) { in canDiscoverWithGetDeclaredMethod()
107 } catch (NoSuchMethodException ex) { in canDiscoverWithGetMethod()
127 } catch (Exception ex) { in canInvokeMethod()
128 ex.printStackTrace(); in canInvokeMethod()
[all …]
/art/test/003-omnibus-opcodes/src/
DThrow.java34 } catch (Exception ex) { in one()
96 } catch (Exception ex) { in rethrow()
97 if (ex instanceof ArithmeticException) { in rethrow()
100 if (ex instanceof NullPointerException) { in rethrow()
102 throw (NullPointerException) ex; in rethrow()
107 } catch (Exception ex) { in rethrow()
/art/test/092-locale/src/
DMain.java36 } catch (Exception ex) { in main()
37 ex.printStackTrace(System.out); in main()
42 } catch (Exception ex) { in main()
43 ex.printStackTrace(System.out); in main()
48 } catch (Exception ex) { in main()
49 ex.printStackTrace(System.out); in main()
54 } catch (Exception ex) { in main()
55 ex.printStackTrace(System.out); in main()
60 } catch (Exception ex) { in main()
61 ex.printStackTrace(System.out); in main()
/art/test/541-regression-inlined-deopt/src/
DMain.java29 } catch (InvocationTargetException ex) { in main()
31 if (!(ex.getCause() instanceof ArrayIndexOutOfBoundsException)) { in main()
32 throw ex; in main()
/art/test/543-checker-dce-trycatch/src/
DMain.java29 } catch (Exception ex) { in doNotMergeThrow()
55 } catch (ArithmeticException ex) { in testDeadTryCatch()
57 } catch (ArrayIndexOutOfBoundsException ex) { in testDeadTryCatch()
/art/test/551-implicit-null-checks/src/
DMain.java29 } catch (NullPointerException ex) { in main()
34 } catch (NullPointerException ex) { in main()
39 } catch (NullPointerException ex) { in main()
44 } catch (NullPointerException ex) { in main()
/art/test/2038-hiddenapi-jvmti-ext/src/
DMain.java52 } catch (NoSuchMethodException ex) { in assertMethodNotHidden()
61 } catch (NoSuchFieldException ex) { in assertFieldNotHidden()
71 } catch (NoSuchMethodException ex) { in assertMethodIsHidden()
80 } catch (NoSuchFieldException ex) { in assertFieldIsHidden()
/art/test/586-checker-null-array-get/src/
DMain.java40 } catch (InvocationTargetException ex) { in $noinline$runSmaliTest()
41 throw ex.getCause(); // re-raise expected exception. in $noinline$runSmaliTest()
42 } catch (Exception ex) { in $noinline$runSmaliTest()
43 throw new Error(ex); in $noinline$runSmaliTest()
/art/test/593-checker-boolean-2-integral-conv/src/
DMain.java179 } catch (Exception ex) { in $noinline$runSmaliTest()
180 throw new Error(ex); in $noinline$runSmaliTest()
189 } catch (Exception ex) { in $noinline$runSmaliTest()
190 throw new Error(ex); in $noinline$runSmaliTest()
/art/test/424-checkcast/src/
DMain.java47 } catch (ClassCastException ex) {} in $opt$TestMain()
61 } catch (ClassCastException ex) {} in $opt$TestFinalClass()
67 } catch (ClassCastException ex) {} in $opt$TestFinalClass()
/art/test/064-field-access/src/
DMain.java113 } catch (Exception ex) { in getValue()
116 + ex.getClass()); in getValue()
117 ex.printStackTrace(System.out); in getValue()
119 if (!expectedException.equals(ex.getClass())) { in getValue()
122 + ex.getClass()); in getValue()
123 ex.printStackTrace(System.out); in getValue()
691 } catch (Exception ex) { in getValue()
694 + ex.getClass()); in getValue()
695 ex.printStackTrace(System.out); in getValue()
697 if (!expectedException.equals(ex.getClass())) { in getValue()
[all …]
/art/test/091-override-package-private-method/
Dbuild27 mkdir -p classes-ex
28 mv classes/OverridePackagePrivateMethodSuper.class classes-ex
/art/test/127-checker-secondarydex/
Dbuild29 mkdir classes-ex
30 mv classes/Super.class classes-ex
/art/test/164-resolution-trampoline-dex-cache/src/
DMain.java42 public static ClassLoader getClassLoaderFor(String location, ClassLoader parent, boolean ex) in getClassLoaderFor() argument
48 String path = location + "/" + TEST_NAME + (ex ? "-ex.jar" : ".jar"); in getClassLoaderFor()
52 String url = "file://" + location + (ex ? "/classes-ex/" : "/classes/"); in getClassLoaderFor()
/art/test/101-fibonacci/src/
DMain.java53 } catch (NumberFormatException ex) { in main()
54 System.out.println(ex); in main()
/art/test/155-java-set-resolved-type/src/
DMain.java68 public static ClassLoader getClassLoaderFor(String location, ClassLoader parent, boolean ex) in getClassLoaderFor() argument
75 String path = location + "/" + TEST_NAME + (ex ? "-ex.jar" : ".jar"); in getClassLoaderFor()
79 String url = "file://" + location + (ex ? "/classes-ex/" : "/classes/"); in getClassLoaderFor()
/art/test/563-checker-fakestring/src/
DMain.java62 } catch (InvocationTargetException ex) { in main()
63 if (ex.getCause() instanceof ArrayIndexOutOfBoundsException) { in main()
66 throw ex.getCause(); in main()
126 } catch (InvocationTargetException ex) { in main()
127 if (ex.getCause() instanceof ArrayIndexOutOfBoundsException) { in main()
130 throw ex.getCause(); in main()

123