Skip to content

Commit 00b8cc6

Browse files
committed
new transpiler fix; doesn't affect working transpiling; run-time
enhancements
1 parent 5c2fc48 commit 00b8cc6

File tree

10 files changed

+92
-80
lines changed

10 files changed

+92
-80
lines changed
0 Bytes
Binary file not shown.
79 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191113220729
1+
20191118014829
0 Bytes
Binary file not shown.
79 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20191113220729
1+
20191118014829
0 Bytes
Binary file not shown.

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import java.awt.datatransfer.DataFlavor;
2626
import java.awt.datatransfer.StringSelection;
2727
import java.awt.datatransfer.Transferable;
28+
import java.awt.event.ActionEvent;
29+
import java.awt.event.ActionListener;
2830
import java.awt.event.AdjustmentEvent;
2931
import java.awt.event.AdjustmentListener;
3032
import java.awt.event.FocusEvent;
@@ -282,7 +284,16 @@ void testGraphic() {
282284
b = new Button("XXX");
283285
b.setBounds(500, 100, 100, 100);
284286
tApp2.add(b);
285-
287+
b.addActionListener(new ActionListener() {
288+
289+
@Override
290+
public void actionPerformed(ActionEvent e) {
291+
System.out.println("caret before: " + tApp2.ta.getCaretPosition());
292+
tApp2.ta.appendText("XXXXXXXXXXXXX ");
293+
System.out.println("caret after: " + tApp2.ta.getCaretPosition());
294+
}
295+
296+
});
286297

287298
System.out.println("Tapp2 OK");
288299
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class Test_Cinit extends Test_ {
99
System.out.println("Test_Cinit nonstatic init");
1010
}
1111
static int a = 0;
12+
// note that i will be 0, not p, even though Test_cinit4.j points to Test_Cinit.p.
13+
1214
static int i = Test_cinit4.j;
1315
//static Test_cinit4 b = new Test_cinit4(55);
1416
static int p = 33;

0 commit comments

Comments
 (0)