diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-10-19 04:54:56 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2011-10-19 04:54:56 +0000 |
commit | aad7d4277c161ddcf502b9e4bd48861450a3458d (patch) | |
tree | 1765d74057f9c673836ae80fdd42ce502cc38ca7 /src/test/javassist/JvstTest4.java | |
parent | 85e2eebf17da1506fcdfe541261030e56253239c (diff) | |
download | javassist-aad7d4277c161ddcf502b9e4bd48861450a3458d.tar.gz javassist-aad7d4277c161ddcf502b9e4bd48861450a3458d.zip |
fixed JASSIST-145
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@593 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/test/javassist/JvstTest4.java')
-rw-r--r-- | src/test/javassist/JvstTest4.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java index 9ea09743..67c229fa 100644 --- a/src/test/javassist/JvstTest4.java +++ b/src/test/javassist/JvstTest4.java @@ -495,7 +495,9 @@ public class JvstTest4 extends JvstTestRoot { for (CtClass c: tab) { System.err.println(c.getName()); } - assertEquals(4, tab.length); + + // Eclipse compiler sets tab.length to 4 but javac sets to 3. + assertTrue(tab.length == 4 || tab.length == 3); for (CtClass c: tab) { String name = c.getName(); assertTrue(name.equals("test4.NestedClass$N") @@ -512,7 +514,9 @@ public class JvstTest4 extends JvstTestRoot { public void testGetClasses() throws Exception { CtClass cc = sloader.get("test4.NestedClass"); CtClass[] tab = cc.getDeclaredClasses(); - assertEquals(4, tab.length); + + // Eclipse compiler sets tab.length to 4 but javac sets to 3. + assertTrue(tab.length == 4 || tab.length == 3); for (CtClass c: tab) { String name = c.getName(); assertTrue(name.equals("test4.NestedClass$N") |