Browse Source

AntTypeDefintion#similarDefinition could be called in situations

where the loader for the class is not antclassloader
Obtained from: David Konecny


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276858 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
0e46158a11
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/AntTypeDefinition.java

+ 3
- 0
src/main/org/apache/tools/ant/AntTypeDefinition.java View File

@@ -352,6 +352,9 @@ public class AntTypeDefinition {
// is the same
ClassLoader oldLoader = other.getClassLoader();
ClassLoader newLoader = this.getClassLoader();
if (oldLoader == newLoader) {
return true;
}
return
newLoader != null
&& oldLoader != null


Loading…
Cancel
Save