tracker issue : CF-3041680

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83390:Better datatype handling when integrating with Java would make java-cfml integration more enjoyableFor example, given a java class that takes a key and a value as arguments, if I pass a 1 as the value

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): marc esher / marc esher (marcesher)

Created: 06/18/2010

Components: Language

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 10

Problem:

Better datatype handling when integrating with Java would make java-cfml integration more enjoyableFor example, given a java class that takes a key and a value as arguments, if I pass a 1 as the value, it's passed as a string unless I javacast it.  This inevitably leads to hard to diagnose bugs. I'd like to see ColdFusion get smarter about datatypes when integrating. If I have a struct that I pass to a java object, and that struct has a number as a value, then that should be treated as an Integer or a Double/Float, not as a string.I've been working on a project with the java driver for MongoDB for the past month, and this issue has caused me untold wasted time and bugs. In fact, it's been nearly miserable trying to get ColdFusion to play nicely because every single place a boolean or number is used I need to javacast. While I understand that it's my responsibility to do so, I see no reason why the language can't make this kind of thing much easier.Please, help make integrating with java apis more enjoyable!
Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041680

External Customer Info:
External Company:  
External Customer Name: marc esher
External Customer Email: 70390EBF47F01CAF992015B9
External Test Config: 06/18/2010

Attachments:

Comments:

This bug has been voted..
Vote by External U.
22016 | November 11, 2011 12:56:02 AM GMT
This would be outstanding.
Vote by External U.
22017 | November 11, 2011 12:56:03 AM GMT
This bug has been voted..
Vote by External U.
22018 | November 11, 2011 12:56:05 AM GMT
This bug has been voted..
Vote by External U.
22019 | November 11, 2011 12:56:06 AM GMT
This would be very helpful.
Vote by External U.
22020 | November 11, 2011 12:56:07 AM GMT
Agree that this is something to be rectified.
Vote by External U.
22021 | November 11, 2011 12:56:09 AM GMT
This bug has been voted..
Vote by External U.
22022 | November 11, 2011 12:56:10 AM GMT
This bug has been voted..
Vote by External U.
22023 | November 11, 2011 12:56:11 AM GMT
This bug has been voted..
Vote by External U.
22024 | November 11, 2011 12:56:13 AM GMT
This bug has been voted..
Vote by External U.
22025 | November 11, 2011 12:56:14 AM GMT