Selaa lähdekoodia

fixed JASSIST-145

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@593 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 12 vuotta sitten
vanhempi
commit
aad7d4277c

+ 4
- 0
src/main/javassist/bytecode/stackmap/TypeData.java Näytä tiedosto

@@ -400,6 +400,10 @@ public abstract class TypeData {
return new ArrayElement(array);
}

public boolean isNullType() {
return array.isNullType();
}

protected void setType(String typeName, ClassPool cp) throws BadBytecode {
super.setType(typeName, cp);
array.setType(getArrayType(typeName), cp);

+ 6
- 2
src/test/javassist/JvstTest4.java Näytä tiedosto

@@ -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")

Loading…
Peruuta
Tallenna