From 85e2eebf17da1506fcdfe541261030e56253239c Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 18 Oct 2011 16:10:30 +0000 Subject: unit test for JASSIST-145 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@592 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/test/test4/Aaload.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/test4/Aaload.java (limited to 'src/test/test4') 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); + } + } + } +} -- cgit v1.2.3