Skip to content

Commit

Permalink
workaround for File bug in windows java
Browse files Browse the repository at this point in the history
  • Loading branch information
wipu committed Apr 3, 2024
1 parent 9170c63 commit dbe476e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public IwantCoreServicesImpl(Iwant iwant, File cRoot,
}

public IwantCoreServicesImpl(Iwant iwant) {
this(iwant, new File("C:"), System.getProperties(), System.getenv());
// The trailing slash is mandatory, see
// https://bugs.java.com/bugdatabase/view_bug?bug_id=8189862
// (It really is a bug and should be fixed, but since they won't we work
// around like this)
this(iwant, new File("C:/"), System.getProperties(), System.getenv());
}

@Override
Expand Down

0 comments on commit dbe476e

Please sign in to comment.