Skip to content

Commit 0896fc9

Browse files
committed
SwingJS-site.zip
1 parent afd2063 commit 0896fc9

File tree

6 files changed

+49
-2
lines changed

6 files changed

+49
-2
lines changed
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20230124211103
1+
20230202011832
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20230124211103
1+
20230202011832
Binary file not shown.

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package test;
22

3+
import java.beans.PropertyChangeEvent;
4+
import java.beans.PropertyChangeListener;
5+
6+
import test.js.TestJS;
7+
38
/**
49
* @j2sNative
510
*
@@ -29,10 +34,52 @@ class Test_Native extends Test_ {
2934
*/
3035
@Override
3136
public void test123(int a, int b, int c) {
37+
38+
PropertyChangeListener x = new PropertyChangeListener() {
39+
40+
/**
41+
* @j2sAlias TEST
42+
*/
43+
@Override
44+
public void propertyChange(PropertyChangeEvent evt) {
45+
// TODO Auto-generated method stub
46+
47+
}
48+
49+
};
50+
51+
// Note that the following is NOT JavaDoc, because JavaDoc must
52+
// "immediately precede a method declaration
53+
TestJS tfails = new TestJS() {
54+
55+
@Override
56+
/**
57+
* @j2sAlias TESTJSFAILS
58+
*/
59+
public void test() {
60+
61+
System.out.println("Test_Native_test");
62+
}
63+
64+
};
3265

66+
TestJS tok = new TestJS() {
67+
68+
/**
69+
* @j2sAlias TESTJSOK
70+
*/
71+
@Override
72+
public void test() {
73+
74+
System.out.println("Test_Native_test");
75+
}
76+
77+
};
78+
3379
}
3480

3581

82+
3683
void checkP(int i, Object obj, int j) {
3784

3885
}

0 commit comments

Comments
 (0)