diff options
Diffstat (limited to 'tests/pending/run/t2296c/Global.java')
-rw-r--r-- | tests/pending/run/t2296c/Global.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/pending/run/t2296c/Global.java b/tests/pending/run/t2296c/Global.java new file mode 100644 index 000000000..7e5a762de --- /dev/null +++ b/tests/pending/run/t2296c/Global.java @@ -0,0 +1,29 @@ +package bug; + +import bug.action.Action; +import java.util.List; +import java.util.LinkedList; + +public class Global { + public int items() { + return 0; + } + + public int items(int i) { + return i + ls.size(); + } + + private List<Action> ls = new LinkedList<Action>(); + + public void putAction(Action a) { + a.setGlobal(this); + ls.add(a); + } + + public void runActions() { + for (Action action: ls) { + System.out.println("RUNNING ACTION"); + action.run(0); + } + } +} |