peterreilly 2004/09/14 05:45:12
Modified: src/main/org/apache/tools/ant AntTypeDefinition.java
Log:
AntTypeDefintion#similarDefinition could be called in situations
where the loader for the class is not antclassloader
Obtained from: David Konecny
Revision Changes Path
1.14 +3 -0 ant/src/main/org/apache/tools/ant/AntTypeDefinition.java
Index: AntTypeDefinition.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntTypeDefinition.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- AntTypeDefinition.java 14 Apr 2004 15:42:06 -0000 1.13
+++ AntTypeDefinition.java 14 Sep 2004 12:45:12 -0000 1.14
@@ -352,6 +352,9 @@
// is the same
ClassLoader oldLoader = other.getClassLoader();
ClassLoader newLoader = this.getClassLoader();
+ if (oldLoader == newLoader) {
+ return true;
+ }
return
newLoader != null
&& oldLoader != null
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]