Skip to content

Commit fa72dd1

Browse files
committed
Fix wrong path used for looking up resources on class loaders
1 parent 373c034 commit fa72dd1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/bridj/Platform.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static URL getResource(String path) {
123123
return in;
124124
}
125125

126+
path = path.substring(1);
126127
ClassLoader[] cls = {
127128
BridJ.class.getClassLoader(),
128129
Thread.currentThread().getContextClassLoader(),

0 commit comments

Comments
 (0)