Skip to content

Commit

Permalink
Correct native charset in TestWorkspaceEncodingExistingWorkspace ecli…
Browse files Browse the repository at this point in the history
…pse-platform#128

TestWorkspaceEncodingExistingWorkspace retrieves the expected native
charset via the "file.encoding" system property, but with Java 21 this
always returns UTF-8 and the native encoding can be retrieved via
"native.encoding" since Java 17. This change adapts the test to properly
run with Java 21.

Fixes eclipse-platform#128
  • Loading branch information
HeikoKlare committed Mar 30, 2024
1 parent a0da4c3 commit 06c0105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TestWorkspaceEncodingExistingWorkspace() {
}

public void testExpectedEncoding1() throws Exception {
String defaultValue = System.getProperty("file.encoding");
String defaultValue = System.getProperty("native.encoding");
IWorkspace workspace = ResourcesPlugin.getWorkspace();

// Should be system default
Expand Down

0 comments on commit 06c0105

Please sign in to comment.