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 TrackerStatus/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: