Browse Source

fix getClassLocation method in Diagnostics class. Bug 48782. Reported by Torsten Werner. Patch by Ludovic Claude.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@912258 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 15 years ago
parent
commit
4d7bc0e158
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      WHATSNEW
  2. +3
    -0
      src/main/org/apache/tools/ant/Diagnostics.java

+ 3
- 0
WHATSNEW View File

@@ -29,6 +29,9 @@ Fixed bugs:

* VectorSet#remove(Object) would fail if the size of the vector
equaled its capacity.
* Regression : ant -diagnostics was returning with exit code 1
Bugzilla Report 48782

Other changes:
--------------


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

@@ -180,6 +180,9 @@ public final class Diagnostics {
* @since Ant 1.8.0
*/
private static URL getClassLocation(Class clazz) {
if (clazz.getProtectionDomain().getCodeSource() == null) {
return null;
}
return clazz.getProtectionDomain().getCodeSource().getLocation();
}



Loading…
Cancel
Save