From 7b621acacf66dbfa12a1ae2da62e8fcbb2eaa64b Mon Sep 17 00:00:00 2001 From: avasseur Date: Thu, 28 Jul 2005 10:15:26 +0000 Subject: fix corrupted test failing on Jrockit, fix a ltw doc, ltw include are ORed as per doc --- weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'weaver/testsrc') diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java index 83efcc26d..e3cd0e3fa 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java @@ -113,7 +113,9 @@ public class WorldTestCase extends AbstractWorldTestCase { ResolvedMember clone = iter.lookupMethod(Member.method(UnresolvedType.OBJECT, 0, "clone", "()Ljava/lang/Object;")); assertNotNull("iterator doesn't have clone" , clone); - modifiersTest(clone, Modifier.PROTECTED | Modifier.NATIVE); + //AV: JRockit Object.clone() is not native.. corrupted test here: + //modifiersTest(clone, Modifier.PROTECTED | Modifier.NATIVE); + assertTrue("should be protected" + clone.toString(), clone.isProtected()); exceptionsTest(clone, UnresolvedType.forNames(new String[] {"java.lang.CloneNotSupportedException"})); interfacesTest(iter, ResolvedType.NONE); -- cgit v1.2.3