mirror of https://github.com/apache/poi.git
Add workaround for IBM JDK where Ant populates classname instead of className for some reason
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1598264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09a9ca7bef
commit
915ad8c27a
|
@ -46,6 +46,13 @@ public class ExcelAntUserDefinedFunction extends Typedef {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getClassName() {
|
protected String getClassName() {
|
||||||
|
// workaround for IBM JDK assigning the classname to the lowercase instance provided by Definer!?!
|
||||||
|
// I could not find out why that happens, the wrong assignment seems to be done somewhere deep inside Ant itself
|
||||||
|
// or even in IBM JDK as Oracle JDK does not have this problem.
|
||||||
|
if(className == null) {
|
||||||
|
return getClassname();
|
||||||
|
}
|
||||||
|
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue