Re: [COLLECTIONS] Tests fail with JDK 1.4.2
On Tue, 18 Nov 2003, Stephen Colebourne [EMAIL PROTECTED] wrote: Should be sorted now. Thanks. I can confirm that it works after a cvs up on my machine. It came too late for gump.covalent.net, so it will fail there once again, but after that things should work smoothely. (Tests suceeded in Eclipse, but failed using ant) Like I said, they also failed when running the TestAll class directly, without Ant around. I wonder whether you are using a different JDK when running from within Eclipse. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[COLLECTIONS] Tests fail with JDK 1.4.2
Hi, I've been investigating collection's GUMP failure http://gump.covalent.net/log/commons-collections.html 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 oacc.collection.AbstractTestCollection. 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). Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [COLLECTIONS] Tests fail with JDK 1.4.2
I am pretty sure that I ran the tests Sunday night (UK) and all was well. I know there was a point at which things didn't work but I fixed that. Can you confirm your JDK version? I'll look at it tonight if I can. Stephen from:Stefan Bodewig [EMAIL PROTECTED] I've been investigating collection's GUMP failure http://gump.covalent.net/log/commons-collections.html 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 oacc.collection.AbstractTestCollection. 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). Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [COLLECTIONS] Tests fail with JDK 1.4.2
On Tue, 18 Nov 2003, [EMAIL PROTECTED] wrote: Can you confirm your JDK version? I'll look at it tonight if I can. [EMAIL PROTECTED] jsps]$ java -fullversion java full version 1.4.2-b28 on my Linux box (Sun's SDK) and bash-2.05$ /usr/j2sdk1.4.1_02/bin/java -fullversion java full version 1.4.1_02-b06 on gump.covalent.net which runs Solaris 9. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [COLLECTIONS] Tests fail with JDK 1.4.2
Should be sorted now. I made all relevant methods public. (Tests suceeded in Eclipse, but failed using ant) Stephen - Original Message - From: Stefan Bodewig [EMAIL PROTECTED] On Tue, 18 Nov 2003, [EMAIL PROTECTED] wrote: Can you confirm your JDK version? I'll look at it tonight if I can. [EMAIL PROTECTED] jsps]$ java -fullversion java full version 1.4.2-b28 on my Linux box (Sun's SDK) and bash-2.05$ /usr/j2sdk1.4.1_02/bin/java -fullversion java full version 1.4.1_02-b06 on gump.covalent.net which runs Solaris 9. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]