]> source.dussan.org Git - aspectj.git/commitdiff
avoid using helpers on Member hierarchy
authoraclement <aclement>
Tue, 17 Nov 2009 18:36:45 +0000 (18:36 +0000)
committeraclement <aclement>
Tue, 17 Nov 2009 18:36:45 +0000 (18:36 +0000)
weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java

index 5816e06b453a588d0b4017d38dba2ec340abca25..e7332b73cb549e0392e35b95cb4c8f3489284c26 100644 (file)
@@ -119,7 +119,7 @@ public class WorldTestCase extends CommonWorldTests {
                assertNotNull("iterator doesn't have clone", clone);
                // AV: JRockit Object.clone() is not native.. corrupted test here:
                // modifiersTest(clone, Modifier.PROTECTED | Modifier.NATIVE);
-               assertTrue("should be protected" + clone.toString(), clone.isProtected());
+               assertTrue("should be protected" + clone.toString(), Modifier.isProtected(clone.getModifiers()));
                exceptionsTest(clone, UnresolvedType.forNames(new String[] { "java.lang.CloneNotSupportedException" }));
 
                interfacesTest(iter, ResolvedType.NONE);