diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-10-18 16:10:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-10-18 16:10:30 +0000 |
commit | 85e2eebf17da1506fcdfe541261030e56253239c (patch) | |
tree | ba3ea4e0a45b3afae2e11a04a3db8599df7ebed9 /src/test/test4/Aaload.java | |
parent | 3ad4da6d8cd5f11a8009c70f59d613b52cf4b50d (diff) | |
download | javassist-85e2eebf17da1506fcdfe541261030e56253239c.tar.gz javassist-85e2eebf17da1506fcdfe541261030e56253239c.zip |
unit test for JASSIST-145
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@592 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/test4/Aaload.java')
-rw-r--r-- | src/test/test4/Aaload.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/test4/Aaload.java b/src/test/test4/Aaload.java new file mode 100644 index 00000000..5299b485 --- /dev/null +++ b/src/test/test4/Aaload.java @@ -0,0 +1,15 @@ +package test4; +import java.awt.MenuItem; + +public class Aaload { + static void narf() { + String[] list = null; + for (int i = 0; i < list.length; i++) { + String name = list[i]; + if (name.endsWith(".txt")) { + MenuItem item = new MenuItem(name); + item.addActionListener(null); + } + } + } +} |