mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8062904: TEST_BUG: Tests java/lang/invoke/LFCaching fail when run with -Xcomp option
Reviewed-by: vlivanov
This commit is contained in:
parent
b07bdeb8bd
commit
2f5dc153c2
5 changed files with 68 additions and 45 deletions
|
@ -24,6 +24,7 @@
|
|||
/*
|
||||
* @test LFGarbageCollectedTest
|
||||
* @bug 8046703
|
||||
* @key randomness
|
||||
* @ignore 8078602
|
||||
* @summary Test verifies that lambda forms are garbage collected
|
||||
* @author kshefov
|
||||
|
@ -73,7 +74,7 @@ public final class LFGarbageCollectedTest extends LambdaFormTestCase {
|
|||
try {
|
||||
adapter = testCase.getTestCaseMH(data, TestMethods.Kind.ONE);
|
||||
} catch (NoSuchMethodException ex) {
|
||||
throw new Error("Unexpected exception: ", ex);
|
||||
throw new Error("Unexpected exception", ex);
|
||||
}
|
||||
mtype = adapter.type();
|
||||
Object lambdaForm = INTERNAL_FORM.invoke(adapter);
|
||||
|
@ -94,7 +95,7 @@ public final class LFGarbageCollectedTest extends LambdaFormTestCase {
|
|||
collectLambdaForm();
|
||||
} catch (IllegalAccessException | IllegalArgumentException |
|
||||
InvocationTargetException ex) {
|
||||
throw new Error("Unexpected exception: ", ex);
|
||||
throw new Error("Unexpected exception", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue