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;