Skip to content
Permalink
Browse files
8208074: [TESTBUG] vmTestbase/nsk/jvmti/RedefineClasses/StressRedefin…
…eWithoutBytecodeCorruption/TestDescription.java failed with NullPointerException

Fixed refactoring caused by JDK-8203820

Backport-of: 16f9e07
  • Loading branch information
GoeLin committed Dec 7, 2021
1 parent 3a452af commit 38bfb43c851452457ebbd6ada7b8c23581f673cb
Showing 2 changed files with 2 additions and 3 deletions.
@@ -193,7 +193,6 @@ vmTestbase/metaspace/gc/firstGC_default/TestDescription.java 8208250 generic-all

vmTestbase/nsk/jvmti/ClearBreakpoint/clrbrk001/TestDescription.java 8016181 generic-all
vmTestbase/nsk/jvmti/FieldModification/fieldmod001/TestDescription.java 8016181 generic-all
vmTestbase/nsk/jvmti/RedefineClasses/StressRedefineWithoutBytecodeCorruption/TestDescription.java 8202896,8206076,8208074 generic-all
vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted001/TestDescription.java 7013634 generic-all
vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted003/TestDescription.java 6606767 generic-all
vmTestbase/nsk/jvmti/ResourceExhausted/resexhausted004/TestDescription.java 7013634,6606767 generic-all
@@ -114,8 +114,8 @@ private static void runMethod(Random random, String name) {
try {
// Just for fun we transfer parameters to method
Object res = myClass.getMethod(name, double.class, int.class, Object.class)
.invoke(null, random.nextDouble(), random.nextInt(), new Object());
} catch (IllegalArgumentException | InvocationTargetException
.invoke(myClass.newInstance(), random.nextDouble(), random.nextInt(), new Object());
} catch (IllegalArgumentException | InvocationTargetException | InstantiationException
| IllegalAccessException | NoSuchMethodException e) {
// It's okay to get exception here since we are corrupting bytecode and can't expect
// class to work properly.

1 comment on commit 38bfb43

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 38bfb43 Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.