You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2012/08/23 10:12:24 UTC

svn commit: r1376401 - /ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml

Author: hibou
Date: Thu Aug 23 08:12:23 2012
New Revision: 1376401

URL: http://svn.apache.org/viewvc?rev=1376401&view=rev
Log:
Fixing test: javac 1.5 doesn't seem able to infer properly types here (incomparable types: org.apache.tools.ant.types.Path and java.lang.Object)

Modified:
    ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml

Modified: ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml?rev=1376401&r1=1376400&r2=1376401&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/core/ref-propertyhelper-test.xml Thu Aug 23 08:12:23 2012
@@ -49,7 +49,7 @@ public class Task {
     }
     private boolean set = false;
     public void setPath(Path p) {
-        if (p != project.getReference("foo")) {
+        if (p != (Path) project.getReference("foo")) {
             throw new BuildException("this is not my path");
         }
         set = true;