You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2014/05/29 14:04:52 UTC

svn commit: r1598264 - /poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java

Author: centic
Date: Thu May 29 12:04:51 2014
New Revision: 1598264

URL: http://svn.apache.org/r1598264
Log:
Add workaround for IBM JDK where Ant populates classname instead of className for some reason

Modified:
    poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java

Modified: poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java?rev=1598264&r1=1598263&r2=1598264&view=diff
==============================================================================
--- poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java (original)
+++ poi/trunk/src/excelant/java/org/apache/poi/ss/excelant/ExcelAntUserDefinedFunction.java Thu May 29 12:04:51 2014
@@ -46,6 +46,13 @@ public class ExcelAntUserDefinedFunction
 	}
 
 	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;
 	}
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org