1
1
/*
2
- * Copyright (c) 2010, 2020 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2010, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -62,7 +62,7 @@ protected void parseArgs(String args[]) {
62
62
if (args [i ].equals ("-useSingleLoader" )) {
63
63
this .useSingleLoader = false ;
64
64
}
65
- // jar path is in useal classpath format
65
+ // jar path is in usual classpath format
66
66
if (args [i ].equals ("-jarpath" )) {
67
67
String [] files = args [i + 1 ].split (File .pathSeparator );
68
68
jars = new URL [files .length ];
@@ -148,11 +148,8 @@ public void run() {
148
148
// set name into public variable just to be sure
149
149
// that class is loaded
150
150
tmp = clz .getName ();
151
- } catch (ClassNotFoundException cnfe ) {
152
- throw new TestFailure (cnfe );
153
- } catch (OutOfMemoryError oome ) {
151
+ } catch (OutOfMemoryError | ClassNotFoundException e ) {
154
152
// just ignore
155
- // we do not check memory leaks in PermGen in this tests
156
153
} catch (StackOverflowError soe ) {
157
154
// just ignore, chains could be too large
158
155
// StackOverflowError could be in some sparcs
@@ -164,6 +161,7 @@ public void run() {
164
161
}
165
162
}
166
163
164
+
167
165
@ Override
168
166
protected Runnable createRunnable (int i ) {
169
167
currentClassLoaders = createClassLoadersInternal ();
0 commit comments