costin 2002/12/11 11:44:40 Modified: src/testcases/org/apache/tools/ant/util ReferencesTest.java Log: Different test - it seems the field is no private, so it can't pass. Revision Changes Path 1.2 +1 -1 jakarta-ant/src/testcases/org/apache/tools/ant/util/ReferencesTest.java Index: ReferencesTest.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/util/ReferencesTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ReferencesTest.java 8 Dec 2002 00:38:07 -0000 1.1 +++ ReferencesTest.java 11 Dec 2002 19:44:40 -0000 1.2 @@ -74,7 +74,7 @@ public static void testReferencesAreSoft() { boolean isJava11=JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1); WeakishReference reference = WeakishReference.createReference(new Object()); - if (reference instanceof WeakishReference.HardReference + if ((reference.getClass().getName().indexOf("HardReference") > 0 ) && !isJava11) { fail("We should be creating soft references in this version of Java"); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>