/libcore/dom/src/test/java/org/w3c/domts/ |
D | JunitTestCases.java | 27 private void runDomTest(String name) throws Throwable { in runDomTest() 33 public void test_level1_core_attrcreatedocumentfragment() throws Throwable { in test_level1_core_attrcreatedocumentfragment() 37 public void test_level1_core_attrcreatetextnode() throws Throwable { in test_level1_core_attrcreatetextnode() 41 public void test_level1_core_attrcreatetextnode2() throws Throwable { in test_level1_core_attrcreatetextnode2() 45 public void test_level1_core_attreffectivevalue() throws Throwable { in test_level1_core_attreffectivevalue() 49 public void test_level1_core_attrname() throws Throwable { in test_level1_core_attrname() 53 public void test_level1_core_attrnextsiblingnull() throws Throwable { in test_level1_core_attrnextsiblingnull() 57 public void test_level1_core_attrparentnodenull() throws Throwable { in test_level1_core_attrparentnodenull() 61 public void test_level1_core_attrprevioussiblingnull() throws Throwable { in test_level1_core_attrprevioussiblingnull() 65 public void test_level1_core_attrspecifiedvalue() throws Throwable { in test_level1_core_attrspecifiedvalue() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThrowableTest.java | 37 public synchronized Throwable fillInStackTrace() { in fillInStackTrace() 54 } catch (Throwable th) { in testNonWritableStackTrace() 73 private static class SuppressionsThrowable extends Throwable { 76 public SuppressionsThrowable(String detailMessage, Throwable throwable, in SuppressionsThrowable() 83 Throwable throwable = new Throwable(); in testAddSuppressed() 85 Throwable suppressedA = new Throwable(); in testAddSuppressed() 88 Throwable suppressedB = new Throwable(); in testAddSuppressed() 94 Throwable throwable = new Throwable(); in testAddDuplicateSuppressed() 95 Throwable suppressedA = new Throwable(); in testAddDuplicateSuppressed() 103 Throwable throwable = new Throwable(); in testGetSuppressedReturnsCopy() [all …]
|
D | OldThrowableTest.java | 26 Throwable thr = new Throwable(message, npe); in test_ConstructorLStringLThrowable() 30 thr = new Throwable(null, npe); in test_ConstructorLStringLThrowable() 34 thr = new Throwable(message, null); in test_ConstructorLStringLThrowable() 42 Throwable thr = new Throwable(npe); in test_ConstructorLThrowable() 46 thr = new Throwable((Throwable) null); in test_ConstructorLThrowable() 52 Throwable e = new Throwable(testMessage); in test_getLocalizedMessage() 60 class TestThrowable extends Throwable { 74 Throwable thr = new Throwable(message, npe); in test_getStackTrace() 83 Throwable thr = new Throwable(); in test_initCause() 87 thr = new Throwable("message"); in test_initCause() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 127 private static MethodHandle explicitCastVoidReturnValue(Class toType) throws Throwable { in explicitCastVoidReturnValue() 150 public void explicitCastArgumentParentToChild() throws Throwable { in explicitCastArgumentParentToChild() 159 public void explicitCastArgumentNullParentToChild() throws Throwable { in explicitCastArgumentNullParentToChild() 166 public void explicitCastArgumentChildToParent() throws Throwable { in explicitCastArgumentChildToParent() 173 public void explicitCastArgumentNullChildToParent() throws Throwable { in explicitCastArgumentNullChildToParent() 180 public void explicitCastReturnValueNullParentToChild() throws Throwable { in explicitCastReturnValueNullParentToChild() 187 public void explicitCastReturnValueParentToChild() throws Throwable { in explicitCastReturnValueParentToChild() 196 public void explicitCastReturnValueNullChildToParent() throws Throwable { in explicitCastReturnValueNullChildToParent() 203 public void explicitCastReturnValueChildToParent() throws Throwable { in explicitCastReturnValueChildToParent() 210 public void explicitCastArgumentOfInterfaceType_doesNotThrow() throws Throwable { in explicitCastArgumentOfInterfaceType_doesNotThrow() [all …]
|
D | CallSitesTest.java | 34 public void test_ConstantCallSiteConstructorNullMethodHandle() throws Throwable { in test_ConstantCallSiteConstructorNullMethodHandle() 42 private static MethodHandle methodHandleForAdd2() throws Throwable { in methodHandleForAdd2() 47 public void test_ConstantCallSite() throws Throwable { in test_ConstantCallSite() 60 OurConstantCallSite(MethodType targetType, MethodHandle createTargetHook) throws Throwable { in OurConstantCallSite() 64 static MethodHandle createTargetHook(OurConstantCallSite callSite) throws Throwable { in createTargetHook() 71 public void test_ConstantCallSiteWithHook() throws Throwable { in test_ConstantCallSiteWithHook() 83 public void test_MutableCallSiteConstructorNullMethodType() throws Throwable { in test_MutableCallSiteConstructorNullMethodType() 91 public void test_MutableCallSiteConstructorNullMethodHandle() throws Throwable { in test_MutableCallSiteConstructorNullMethodHandle() 99 public void test_MutableCallsiteNoMethodHandle() throws Throwable { in test_MutableCallsiteNoMethodHandle() 109 public void test_MutableCallSite() throws Throwable { in test_MutableCallSite() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Throwable.java | 32 public class Throwable implements java.io.Serializable { class 34 public Throwable() { in Throwable() method in Throwable 38 public Throwable(java.lang.String message) { in Throwable() method in Throwable 42 public Throwable(java.lang.String message, java.lang.Throwable cause) { in Throwable() method in Throwable 46 public Throwable(java.lang.Throwable cause) { in Throwable() method in Throwable 50 protected Throwable( in Throwable() method in Throwable 52 java.lang.Throwable cause, in Throwable() 66 public synchronized java.lang.Throwable getCause() { in getCause() 70 public synchronized java.lang.Throwable initCause(java.lang.Throwable cause) { in initCause() 87 private void printStackTrace(java.lang.Throwable.PrintStreamOrWriter s) { in printStackTrace() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Throwable.annotated.java | 34 public class Throwable implements java.io.Serializable { class 36 public Throwable() { throw new RuntimeException("Stub!"); } in Throwable() method in Throwable 38 public Throwable(@libcore.util.Nullable java.lang.String message) { throw new RuntimeException("Stu… in Throwable() method in Throwable 40 public Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.lang.… in Throwable() method in Throwable 42 public Throwable(@libcore.util.Nullable java.lang.Throwable cause) { throw new RuntimeException("St… in Throwable() method in Throwable 44 protected Throwable(@libcore.util.Nullable java.lang.String message, @libcore.util.Nullable java.la… in Throwable() method in Throwable 50 @libcore.util.Nullable public synchronized java.lang.Throwable getCause() { throw new RuntimeExcept… in getCause() 52 …e.util.NonNull public synchronized java.lang.Throwable initCause(@libcore.util.Nullable java.lang.… in initCause() 62 @libcore.util.NonNull public synchronized java.lang.Throwable fillInStackTrace() { throw new Runtim… in fillInStackTrace() 68 public final synchronized void addSuppressed(@libcore.util.NonNull java.lang.Throwable exception) {… in addSuppressed() [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/ |
D | CodeCacheOverflowProcessor.java | 45 public static Boolean isThrowableCausedByVME(Throwable t) { in isThrowableCausedByVME() 46 Throwable causeOfT = t; in isThrowableCausedByVME() 71 public static Throwable runMHTest(ThrowingRunnable test) throws Throwable { in runMHTest() 72 Throwable t = filterException(test::run, in runMHTest() 87 void run() throws Throwable; in run() 102 public static Throwable filterException(ThrowingRunnable test, in filterException() 103 Function<Throwable, Boolean> filter) throws Throwable { in filterException() argument 106 } catch (Throwable t) { in filterException()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Throwable.java | 118 public class Throwable implements Serializable { class 204 private Throwable cause = this; 248 private List<Throwable> suppressedExceptions = Collections.emptyList(); 270 public Throwable() { in Throwable() method in Throwable 285 public Throwable(String message) { in Throwable() method in Throwable 307 public Throwable(String message, Throwable cause) { in Throwable() method in Throwable 330 public Throwable(Throwable cause) { in Throwable() method in Throwable 377 protected Throwable(String message, Throwable cause, in Throwable() method in Throwable 435 public synchronized Throwable getCause() { in getCause() 475 public synchronized Throwable initCause(Throwable cause) { in initCause() [all …]
|
D | ClassNotFoundException.java | 61 super((Throwable)null); // Disallow initCause in ClassNotFoundException() 83 public ClassNotFoundException(String s, Throwable ex) { in ClassNotFoundException() 99 public Throwable getException() { in getException() 110 new ObjectStreamField("ex", Throwable.class) 129 Throwable exception = (Throwable) fields.get("ex", null); in readObject()
|
/libcore/dalvik/src/test/java/libcore/dalvik/system/ |
D | CloseGuardTest.java | 40 public void evaluate() throws Throwable { in preserveEnabledState() 52 public void testEnabled_NotOpen() throws Throwable { 59 public void testEnabled_OpenNotClosed() throws Throwable { 67 public void testEnabled_OpenWithCallsiteNotClosed() throws Throwable { 75 public void testEnabled_OpenThenClosed() throws Throwable { 84 public void testEnabled_OpenWithCallsiteThenClosed() throws Throwable { 93 public void testEnabledWhenCreated_DisabledWhenOpen() throws Throwable { 105 public void testEnabledWhenOpened_DisabledWhenFinalized() throws Throwable { 116 public void testDisabled_NotOpen() throws Throwable { 123 public void testDisabled_OpenNotClosed() throws Throwable { [all …]
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | InvocationTargetException.java | 57 private Throwable target; 64 super((Throwable)null); // Disallow initCause in InvocationTargetException() 72 public InvocationTargetException(Throwable target) { in InvocationTargetException() 73 super((Throwable)null); // Disallow initCause in InvocationTargetException() 84 public InvocationTargetException(Throwable target, String s) { in InvocationTargetException() 98 public Throwable getTargetException() { in getTargetException() 109 public Throwable getCause() { in getCause()
|
D | UndeclaredThrowableException.java | 65 private Throwable undeclaredThrowable; 74 public UndeclaredThrowableException(Throwable undeclaredThrowable) { in UndeclaredThrowableException() 75 super((Throwable) null); // Disallow initCause in UndeclaredThrowableException() 87 public UndeclaredThrowableException(Throwable undeclaredThrowable, in UndeclaredThrowableException() 104 public Throwable getUndeclaredThrowable() { in getUndeclaredThrowable() 116 public Throwable getCause() { in getCause()
|
/libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
D | DatatypeConfigurationExceptionTest.java | 44 Throwable t = new Throwable(); in constructorWithStringAndThrowable() 52 Throwable t = new Throwable(); in constructorWithThrowable() 60 Throwable t = new Throwable(); in testPrintStackTrace_noArgs() 67 Throwable t = new Throwable(); in testPrintStackTrace_withPrintStream() 79 Throwable t = new Throwable(); in testPrintStackTrace_withPrintWriter()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | TryFinallyTest.java | 52 public static void testTryFinally() throws Throwable { in testTryFinally() 74 public static void testTryFinally(Class<?> argType, Object arg) throws Throwable { in testTryFinally() 78 MethodHandles.dropArguments(identity, 0, Throwable.class)); in testTryFinally() 84 public static void testTryFinallyException(Class<?> argType, Object arg) throws Throwable { in testTryFinallyException() 94 public static void testTryFinallyVoid() throws Throwable { in testTryFinallyVoid() 101 public static void testTryFinallySublist() throws Throwable { in testTryFinallySublist() 120 public static void testTryFinallyOmitTrailingArguments(MethodHandle cleanup) throws Throwable { in testTryFinallyOmitTrailingArguments() 130 … errCleanup = MethodHandles.dropArguments(MethodHandles.constant(int.class, 0), 0, Throwable.class, in negativeTestData() 139 {intid, MethodHandles.dropArguments(intid, 0, Throwable.class, double.class), in negativeTestData() 169 } catch (Throwable t) { in testTryFinallyThrowableCheck() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CompletionStageTest.java | 42 private Throwable exception = null; 60 protected void execute() throws Throwable { in execute() 64 } catch (Throwable ex) { in execute() 77 public void completeExceptionally(Throwable ex) { in completeExceptionally() 81 protected abstract T doGet() throws Throwable; in doGet() 83 public T get() throws Throwable { in get() 254 public <U> CompletionStage<U> handle(BiFunction<? super T, Throwable, ? extends U> fn) { in handle() argument 260 BiFunction<? super T, Throwable, ? extends U> fn) { in handleAsync() argument 265 public <U> CompletionStage<U> handleAsync(BiFunction<? super T, Throwable, ? extends U> fn, in handleAsync() argument 271 public CompletionStage<T> whenComplete(BiConsumer<? super T, ? super Throwable> action) { in whenComplete() [all …]
|
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/ |
D | CloseGuardSupport.java | 102 public void evaluate() throws Throwable { in apply() 108 Throwable thrown = null; in apply() 114 } catch (Throwable throwable) { in apply() 123 Collection<Throwable> allocationSites = in apply() 130 for (Throwable allocationSite : allocationSites) { in apply() 156 private final Set<Throwable> allocationSites = 162 public void open(Throwable allocationSite) { 169 public void close(Throwable allocationSite) { 179 Collection<Throwable> getAllocationSitesForUnreleasedResources() { 263 private final List<Throwable> unreleasedResourceAllocationSites = new ArrayList<>(); [all …]
|
/libcore/ojluni/src/test/java/util/ArrayList/ |
D | Bug6533203.java | 39 void test(String[] args) throws Throwable { in test() 55 void unexpected(Throwable t) {failed++; t.printStackTrace();} in unexpected() 60 public static void main(String[] args) throws Throwable { in main() 62 void instanceMain(String[] args) throws Throwable { in instanceMain() 63 try {test(args);} catch (Throwable t) {unexpected(t);} in instanceMain() 66 abstract class F {abstract void f() throws Throwable;} in f() 67 void THROWS(Class<? extends Throwable> k, F... fs) { in THROWS() 70 catch (Throwable t) { in THROWS()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | CloseGuard.java | 288 Throwable stack = new Throwable(message); in openWithCallSite() 314 if (tracker != null && closerNameOrAllocationInfo instanceof Throwable) { in close() 316 tracker.close((Throwable) closerNameOrAllocationInfo); in close() 335 if (closerNameOrAllocationInfo instanceof Throwable) { in warnIfOpen() 336 reporter.report(MESSAGE, (Throwable) closerNameOrAllocationInfo); in warnIfOpen() 356 void open(Throwable allocationSite); in open() 357 void close(Throwable allocationSite); in close() 372 void report(String message, Throwable allocationSite); in report() 389 @Override public void report (String message, Throwable allocationSite) { in report()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | HotPotatoes.java | 49 public void testVector() throws Throwable { in testVector() 54 public void testArrayList() throws Throwable { in testArrayList() 59 public void testPriorityQueue() throws Throwable { in testPriorityQueue() 64 public void testPriorityBlockingQueue() throws Throwable { in testPriorityBlockingQueue() 68 private static void testImplementation(Class<? extends Collection> implClazz) throws Throwable { in testImplementation() 81 Class<? extends List> argClazz) throws Throwable { in testPotato() 108 } catch (Throwable t) { in testPotato() 115 public abstract void realRun() throws Throwable; in realRun() 120 } catch (Throwable t) { in run()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | IOExceptionTest.java | 63 "A fake IOException", new Throwable("A fake Throwable")); //$NON-NLS-1$//$NON-NLS-2$ in test_ConstructorLString_LThrowable() 68 … "A fake error", new Throwable("Some error message")); //$NON-NLS-1$ //$NON-NLS-2$ in test_ConstructorLString_LThrowable() 83 Throwable cause = new Throwable("A fake Throwable"); //$NON-NLS-1$ in test_Constructor_LThrowable() 87 ioException = new IOException((Throwable) null); in test_Constructor_LThrowable() 91 throw new IOException(new Throwable("Some error message")); //$NON-NLS-1$ in test_Constructor_LThrowable()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Fill.java | 40 private static void realMain(String[] args) throws Throwable { in realMain() 46 catch (Throwable t) { unexpected(t); } in realMain() 53 catch (Throwable t) { unexpected(t); } in realMain() 60 catch (Throwable t) { unexpected(t); } in realMain() 68 static void unexpected(Throwable t) {failed++; t.printStackTrace();} in unexpected() 73 public static void main(String[] args) throws Throwable { in main() 74 try {realMain(args);} catch (Throwable t) {unexpected(t);} in main()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThrowableTest.java | 31 Throwable e = new Throwable(); in test_Constructor() 41 Throwable e = new Throwable("fixture"); in test_ConstructorLjava_lang_String() 79 } catch (Throwable e) { in test_fillInStackTrace() 88 } catch (Throwable e) { in test_fillInStackTrace() 129 Throwable x = new ClassNotFoundException("A Test Message"); in test_printStackTrace() 150 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintStream() 167 Throwable x = new java.net.UnknownHostException("A Message"); in test_printStackTraceLjava_io_PrintWriter() 179 Throwable e = new Throwable("Throw"); in test_toString()
|
/libcore/ojluni/src/main/java/java/sql/ |
D | SQLException.java | 54 implements Iterable<Throwable> { 164 public SQLException(Throwable cause) { in SQLException() 186 public SQLException(String reason, Throwable cause) { in SQLException() 209 public SQLException(String reason, String sqlState, Throwable cause) { in SQLException() 235 public SQLException(String reason, String sqlState, int vendorCode, Throwable cause) { in SQLException() 314 public Iterator<Throwable> iterator() { in iterator() 316 return new Iterator<Throwable>() { in iterator() 320 Throwable cause = firstException.getCause(); in iterator() 328 public Throwable next() { in iterator() 329 Throwable throwable = null; in iterator()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | T6433170.java | 51 void test(String[] args) throws Throwable { in test() 76 void unexpected(Throwable t) {failed++; t.printStackTrace();} in unexpected() 81 public static void main(String[] args) throws Throwable { in main() 83 void instanceMain(String[] args) throws Throwable { in instanceMain() 84 try {test(args);} catch (Throwable t) {unexpected(t);} in instanceMain() 87 abstract class F {abstract void f() throws Throwable;} in f() 88 void THROWS(Class<? extends Throwable> k, F... fs) { in THROWS() 91 catch (Throwable t) { in THROWS()
|