Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 67462aa

Browse filesBrowse files
second call failed also with JDK17, fix to make test succeed
1 parent 57b8916 commit 67462aa
Copy full SHA for 67462aa

File tree

1 file changed

+6
-1
lines changed
Filter options

1 file changed

+6
-1
lines changed

‎sqldev/src/test/java/org/utplsql/sqldev/test/runner/UtplsqlRunnerTest.java

Copy file name to clipboardExpand all lines: sqldev/src/test/java/org/utplsql/sqldev/test/runner/UtplsqlRunnerTest.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.