ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/util ReferencesTest.java
Date Wed, 11 Dec 2002 19:44:40 GMT
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message