commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject [COLLECTIONS] Tests fail with JDK 1.4.2
Date Tue, 18 Nov 2003 10:00:52 GMT

I've been investigating collection's GUMP failure
<> that we are
seeing since you've refactored the test hierarchy.

I added an e.getTargetException().printStackTrace(); to
BulkTest#addBulk's catch block for InvocationTargetExceptions to see
where the problem arises.

What we get are a whole bunch of VerifyErrors as
oacc.list.AbstractTestList$BulkTestSubList accesses protected methods
and data that have been indirectly inherited from

I don't quite understand why the compiler allows this but the runtime
fails, but that's the reason and it even occurs if I run

java -cp JUNIT:COMMONS/collections/dist/classes/ org.apache.commons.collections.TestAllPackages

with a completely empty CLASSPATH, so it is not Gump-only issue - I
would have suspected a classloader problem otherwise.

Access to protected methods is no longer a problem if you mirror the
methods in oacc.list.AbstractTestList - but there is no way to make the
verifier happy with the access of protected data (apart from protected
and mirrored setters, that is).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message