support char arrays · swsharp/node-java@2080cab · GitHub
Skip to content

Commit 2080cab

Browse files
committed
support char arrays
1 parent 50d89a8 commit 2080cab

7 files changed

Lines changed: 24 additions & 0 deletions

File tree

70 Bytes
Binary file not shown.

src/java.cpp

Lines changed: 13 additions & 0 deletions

test/Test$SubClass.class

0 Bytes
Binary file not shown.

test/Test$SuperClass.class

0 Bytes
Binary file not shown.

test/Test.class

144 Bytes
Binary file not shown.

test/Test.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public Test() {}
2424
public static int staticMethodOverload(int a) { return 2; }
2525
public static int staticMethodOverload(SuperClass a) { return a.getVal(); }
2626

27+
public static String staticMethodCharArrayToString(char[] a) { return new String(a); }
28+
2729
public static class SuperClass {
2830
public int getVal() { return 3; }
2931
}

test/java-callStaticMethod-test.js

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)