File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sqldev/src/test/java/org/utplsql/sqldev/test/runner Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,12 @@ public void setupDefaultPreferences() {
46
46
preferences = PreferenceModel .getInstance (null );
47
47
// the second call will call will succeed and use preferences from user.home
48
48
// this ensures that the test and the runner use the same preferences
49
- preferences = PreferenceModel .getInstance (Preferences .getPreferences ());
49
+ try {
50
+ preferences = PreferenceModel .getInstance (Preferences .getPreferences ());
51
+ } catch (NoClassDefFoundError e2 ) {
52
+ // the second call also failed. no other option left (new behavior with Java17)
53
+ preferences = PreferenceModel .getInstance (null );
54
+ }
50
55
} finally {
51
56
// set defaults manually, since all tests are using the same preference store
52
57
preferences .setShowSuccessfulTests (true );
You can’t perform that action at this time.
0 commit comments