- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for OutOfMemoryError (0.39 sec)
-
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
// OutOfMemoryError is an Error, not Exception, so it will not be caught // The test should expect the error to propagate try { purgeDocJob.execute(); fail("Expected OutOfMemoryError to be thrown"); } catch (OutOfMemoryError e) { assertEquals("Out of memory", e.getMessage()); } } public void test_execute_verifyQueryToString() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
throw new OutOfMemoryError("Simulated OOM"); } }; ComponentUtil.register(mockSearchLogHelper, "searchLogHelper"); // Execute the job - Error should NOT be caught since implementation only catches Exception try { aggregateLogJob.execute(); fail("OutOfMemoryError should not be caught by Exception handler");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
// Bug in inputFuture.get(). Propagate to the output Future so that its consumers don't hang. setException(e); return; } catch (Error e) { /* * StackOverflowError, OutOfMemoryError (e.g., from allocating ExecutionException), or * something. Try to treat it like a RuntimeException. If we overflow the stack again, the * resulting Error will propagate upward up to the root call to set().
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 20 18:03:37 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java
// Test with Error (not Exception) Throwable errorCause = new OutOfMemoryError("Out of memory"); GsaConfigException errorException = new GsaConfigException("GSA memory error", errorCause); assertNotNull(errorException); assertTrue(errorException.getCause() instanceof OutOfMemoryError); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
/** * Returns the response as a byte array. * * This method loads entire response body into memory. If the response body is very large this * may trigger an [OutOfMemoryError]. Prefer to stream the response body if this is a * possibility for your response. */ @Throws(IOException::class) fun bytes() = consumeSource(BufferedSource::readByteArray) { it.size } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 11.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
} } } private static String oldRepeat(String string, int count) { // If this multiplication overflows, a NegativeArraySizeException or // OutOfMemoryError is not far behind int len = string.length(); int size = len * count; char[] array = new char[size]; for (int i = 0; i < size; i += len) { string.getChars(0, len, array, i); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
// Bug in inputFuture.get(). Propagate to the output Future so that its consumers don't hang. setException(e); return; } catch (Error e) { /* * StackOverflowError, OutOfMemoryError (e.g., from allocating ExecutionException), or * something. Try to treat it like a RuntimeException. If we overflow the stack again, the * resulting Error will propagate upward up to the root call to set().
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 20 18:03:37 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java
final NullPointerException npeCause = new NullPointerException("Null query parameter"); final IllegalStateException iseCause = new IllegalStateException("Invalid parser state"); final OutOfMemoryError oomCause = new OutOfMemoryError("Query too large"); // Execute final InvalidQueryException npeException = new InvalidQueryException(messageCode, message, npeCause);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
} } } private static String oldRepeat(String string, int count) { // If this multiplication overflows, a NegativeArraySizeException or // OutOfMemoryError is not far behind int len = string.length(); int size = len * count; char[] array = new char[size]; for (int i = 0; i < size; i += len) { string.getChars(0, len, array, i); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/escape/CharEscaper.java
* ok if it's in a method call. If the index passed in is 0 then no copying will be done. */ private static char[] growBuffer(char[] dest, int index, int size) { if (size < 0) { // overflow - should be OutOfMemoryError but GWT/j2cl don't support it throw new AssertionError("Cannot increase internal buffer any further"); } char[] copy = new char[size]; if (index > 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0)