Title:
Bug 87131:-(Watson Migration Closure)I would like to integrate pure Java code inside my CFML
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Nathan Strutz / Nathan Strutz (Nathan Strutz)
Created: 10/07/2011
Components: General Server
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
I would like to integrate pure Java code inside my CFML. Something like a <cfjava> tag or <cfscript language="java">.
I have a handful of use cases. For one, it is difficult to create a byte array for CF to read a stream such as the FileInputStream, which is required when interacting with some java libraries. The workaround now is to write my own class, compile it, put it in the server classpath or use Mark Mandel's JavaLoader (I am using ColdFusion 9), then call my method that gives me a basic byte[]. This enhancement would potentially allow me to write a function or put java code inline that could give me my byte array without having to do any extra steps - a huge time saver!
There are many other things that Java can do that ColdFusion cannot without going outside of CFML, and if we were allowed to do that easily, it would greatly reduce the need to write java files.
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3044057
External Customer Info:
External Company:
External Customer Name: Nathan Strutz
External Customer Email: 36EC2AB9446105B39920157F
External Test Config: 10/07/2011
Attachments:
Comments: