Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit67462aa

Browse files
second call failed also with JDK17, fix to make test succeed
1 parent57b8916 commit67462aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines 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 (NoClassDefFoundErrore2) {
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)

[8]ページ先頭

©2009-2025 Movatter.jp