Skip to content

Commit 9394e5b

Browse files
committed
SwingJS-site.zip
1 parent a8406e3 commit 9394e5b

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed
343 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210826152909
1+
20210907013612
343 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210826152909
1+
20210907013612
343 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/test/Test_File.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public class Test_File extends Test_ {
1818
@SuppressWarnings("unused")
1919
public static void main(String[] args) {
2020

21+
File fff = new File("jar:file:testing/here");
22+
System.out.println(fff.getPath());
23+
System.out.println(fff.getAbsolutePath());
24+
2125
testTempDir();
2226

2327
System.out.println(System.getProperty("jnlp.codebase"));

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17866,9 +17866,9 @@ var radix=(n.startsWith("0x", i) ? 16 : n.startsWith("0", i) ? 8 : 10);
1786617866
// The general problem with parseInt is that is not strict -- ParseInt("10whatever") == 10.
1786717867
// Number is strict, but Number("055") does not work, though ParseInt("055", 8) does.
1786817868
// need to make sure negative numbers are negative
17869-
if (n == "")
17870-
return NaN
17871-
n = Number(n) & 0xFFFFFFFF;
17869+
if (n == "" || radix == 10 && isNaN(+n))
17870+
return NaN
17871+
n = (+n) & 0xFFFFFFFF;
1787217872
return (radix == 8 ? parseInt(n, 8) : n);
1787317873
}, 1);
1787417874

0 commit comments

Comments
 (0)