Skip to content

Commit f0b8f5c

Browse files
committed
fix deprecation warning on JDK11
1 parent 6a2e2d1 commit f0b8f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ private PException fileNoFound(String path) {
746746

747747
@TruffleBoundary(allowInlining = true, transferToInterpreterOnException = false)
748748
private static long strToLong(String name) throws NumberFormatException {
749-
return new Long(name).longValue();
749+
return Long.decode(name).longValue();
750750
}
751751

752752
@TruffleBoundary(allowInlining = true)

0 commit comments

Comments
 (0)