Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Joel Cox / Joel Cox (jlcox)
Created: 07/07/2009
Components: Language, CF Component
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: intermediate 6/29 / 241238
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Win All
Vote Count: 17
Problem:
When using Mach-II 1.8 framework, application bombs on this statement (in framework code):
<cfreturn CreateObject("java","java.math.BigInteger").init(arguments.value) />
where arguments.value is of type "any"
This works properly in Beta 2, does not in the June 29 intermediate build. Not sure about the JDK listed above, I reverted to Beta 2, but it was using whatever JDK is installed by default with the build.
I tried JavaCast-ing the argument to a variety of types (string, long, etc) without success.
Method:
<cffunction name="createBigInteger" access="private" returntype="any" output="false" >
<cfargument name="value" type="any" required="true" />
<cfreturn CreateObject("java", "java.math.BigInteger").init(arguments.value) />
</cffunction>
<Cfdump var="#createBigInteger(gettickcount())#">
Result:
Unable to find a constructor for class java.math.BigInteger that accepts parameters of type ( java.lang.Double )
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039173
External Customer Info:
External Company:
External Customer Name: Joel Cox
External Customer Email: 17A0291744608F7A9920157F
External Test Config: 07/07/2009
Attachments:
Comments: