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() {
4646 preferences = PreferenceModel .getInstance (null );
4747 // the second call will call will succeed and use preferences from user.home
4848 // 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+ }
5055 } finally {
5156 // set defaults manually, since all tests are using the same preference store
5257 preferences .setShowSuccessfulTests (true );
You can’t perform that action at this time.
0 commit comments