Home
last modified time | relevance | path

Searched refs:thrown (Results 1 – 15 of 15) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java33 boolean thrown = false; in test_getLjava_lang_ObjectI()
45 thrown = true; in test_getLjava_lang_ObjectI()
47 if (!thrown) { in test_getLjava_lang_ObjectI()
50 thrown = false; in test_getLjava_lang_ObjectI()
55 thrown = true; in test_getLjava_lang_ObjectI()
57 if (!thrown) { in test_getLjava_lang_ObjectI()
64 thrown = false; in test_getLjava_lang_ObjectI()
76 thrown = true; in test_getLjava_lang_ObjectI()
78 if (!thrown) { in test_getLjava_lang_ObjectI()
81 thrown = false; in test_getLjava_lang_ObjectI()
[all …]
DFieldTest.java205 boolean thrown = false; in test_getLjava_lang_Object()
212 thrown = true; in test_getLjava_lang_Object()
214 assertTrue("IllegalArgumentException expected but not thrown", thrown); in test_getLjava_lang_Object()
217 thrown = false; in test_getLjava_lang_Object()
224 thrown = true; in test_getLjava_lang_Object()
226 assertTrue("NullPointerException expected but not thrown", thrown); in test_getLjava_lang_Object()
229 thrown = false; in test_getLjava_lang_Object()
569 boolean thrown = false; in test_getBooleanLjava_lang_Object()
575 thrown = true; in test_getBooleanLjava_lang_Object()
579 assertTrue("IllegalArgumentException expected but not thrown", thrown); in test_getBooleanLjava_lang_Object()
[all …]
/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java96 boolean thrown = false; in transferToThenCheckIfAnyClosed()
100 thrown = true; in transferToThenCheckIfAnyClosed()
102 if (!thrown) in transferToThenCheckIfAnyClosed()
304 Throwable thrown;
307 thrown = null;
309 thrown = caught;
312 if (!throwable.isInstance(thrown)) {
313 String caught = thrown == null ?
314 "nothing" : thrown.getClass().getCanonicalName();
317 throwable, caught), thrown);
[all …]
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java97 boolean thrown = false; in transferToThenCheckIfAnyClosed()
101 thrown = true; in transferToThenCheckIfAnyClosed()
103 if (!thrown) in transferToThenCheckIfAnyClosed()
328 Throwable thrown;
331 thrown = null;
333 thrown = caught;
336 if (!throwable.isInstance(thrown)) {
337 String caught = thrown == null ?
338 "nothing" : thrown.getClass().getCanonicalName();
341 throwable, caught), thrown);
[all …]
/libcore/dalvik/test-rules/src/main/java/libcore/dalvik/system/
DCloseGuardSupport.java108 Throwable thrown = null; in apply() local
117 thrown = throwable; in apply()
126 if (thrown == null) { in apply()
127 thrown = new IllegalStateException( in apply()
131 thrown.addSuppressed(allocationSite); in apply()
134 if (thrown != null) { in apply()
135 throw thrown; in apply()
/libcore/ojluni/src/main/java/java/lang/
DExceptionInInitializerError.java78 public ExceptionInInitializerError(Throwable thrown) { in ExceptionInInitializerError() argument
80 this.exception = thrown; in ExceptionInInitializerError()
/libcore/ojluni/src/main/java/java/util/logging/
DLogRecord.java127 private Throwable thrown; field in LogRecord
446 return thrown; in getThrown()
454 public void setThrown(Throwable thrown) { in setThrown() argument
455 this.thrown = thrown; in setThrown()
DLogger.java870 public void log(Level level, String msg, Throwable thrown) { in log() argument
875 lr.setThrown(thrown); in log()
898 public void log(Level level, Throwable thrown, Supplier<String> msgSupplier) { in log() argument
903 lr.setThrown(thrown); in log()
1034 String msg, Throwable thrown) { in logp() argument
1041 lr.setThrown(thrown); in logp()
1068 Throwable thrown, Supplier<String> msgSupplier) { in logp() argument
1075 lr.setThrown(thrown); in logp()
1278 String bundleName, String msg, Throwable thrown) { in logrb() argument
1285 lr.setThrown(thrown); in logrb()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java75 boolean thrown = false; in exceptionInConstructor()
81 thrown = true; in exceptionInConstructor()
83 if (!thrown) { in exceptionInConstructor()
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java423 abstract void doLog(Level level, String msg, Throwable thrown); in doLog() argument
470 void doLog(Level level, String msg, Throwable thrown) { in doLog() argument
472 outputStream().print(format(level, msg, thrown)); in doLog()
522 private synchronized String format(Level level, String msg, Throwable thrown) { in format() argument
525 if (thrown != null) { in format()
529 thrown.printStackTrace(pw); in format()
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DLogger.java140 java.util.logging.Level level, java.lang.String msg, java.lang.Throwable thrown) { in log() argument
146 java.lang.Throwable thrown, in log() argument
190 java.lang.Throwable thrown) { in logp() argument
198 java.lang.Throwable thrown, in logp() argument
260 java.lang.Throwable thrown) { in logrb() argument
270 java.lang.Throwable thrown) { in logrb() argument
302 java.lang.Throwable thrown) { in throwing() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/logging/
DLogger.annotated.java68 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in log() argument
70 …ava.util.logging.Level level, @libcore.util.Nullable java.lang.Throwable thrown, @libcore.util.Non… in log() argument
80 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logp() argument
82 …ava.lang.String sourceMethod, @libcore.util.Nullable java.lang.Throwable thrown, @libcore.util.Non… in logp() argument
96 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logrb() argument
98 …ullable java.lang.String msg, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in logrb() argument
110 …ava.lang.String sourceMethod, @libcore.util.Nullable java.lang.Throwable thrown) { throw new Runti… in throwing() argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java590 …private void checkException(String message, Exception thrown, Class<? extends Exception> expected)… in checkException() argument
591 if (thrown == null) { in checkException()
595 } else if (expected == thrown.getClass()) { in checkException()
600 … fail(message + ", unexpected exception: " + thrown + ", expected: " + expected.getName()); in checkException()
/libcore/ojluni/src/main/java/java/nio/
DX-Buffer.java.template125 * content and will cause an unspecified exception to be thrown either at the
690 * thrown.
776 * BufferOverflowException} is thrown.
830 * thrown.
919 * BufferOverflowException} is thrown.
/libcore/expectations/
Dknownfailures.txt490 …description: "According to spec info.getStatement should return null but an exception is thrown: s…
595 description: "no exception is thrown when moving cursor backwards on forward only statement",
725 thrown.",
1630 substring: "Expected FactoryConfigurationError was not thrown"