aboutsummaryrefslogtreecommitdiffstats
path: root/src/excelant/java/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-05-29 12:04:51 +0000
committerDominik Stadler <centic@apache.org>2014-05-29 12:04:51 +0000
commit915ad8c27a51e3876d331af106fff24b01f548a8 (patch)
treefedd50b9795a2117ebc7b6f47a0004c3c10e782c /src/excelant/java/org
parent09a9ca7bef7ab2fffcb0a3ca5de71f9f64cd4011 (diff)
downloadpoi-915ad8c27a51e3876d331af106fff24b01f548a8.tar.gz
poi-915ad8c27a51e3876d331af106fff24b01f548a8.zip
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
Diffstat (limited to 'src/excelant/java/org')
-rw-r--r--src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java
index f69e9b6366..5c19912b35 100644
--- a/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java
+++ b/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java
@@ -46,6 +46,13 @@ public class ExcelAntUserDefinedFunction extends Typedef {
}
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;
}