History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CFML-44
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Valeria Nikolaenko
Reporter: Daniel Jimenez
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IntelliJ IDEA CFML Plugin

Java Completion, difference between a class and an instance...

Created: 19 May 09 02:04   Updated: 04 Nov 09 20:48
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File test.cfm (0.7 kb)

Environment:
Mac OS X 10.5.6, CFML plugin version 1.28

Build: 9,852
Fixed in build: 9,852


 Description  « Hide
When you create an instance of a new object using it's constructor, you need to use init.

This example outputs a UUID created by passing in two long's to the constructor:

<!---
In this case IntelliJ should not show instance methods when doing code completion on uuidClass. 
However on myUUID, instance methods should be available. Currently, intellij highlights init saying it cannot find this function.
--->
<cfscript>
uuidClass = createObject("java", "java.util.UUID");
myUUID = uuidClass.init(2,2);
</cfscript>
<cfoutput>#myUUID#</cfoutput>

This example calls the randomUUID static method:

<cfscript>
uuidClass = createObject("java", "java.util.UUID");
myUUID = uuidClass.randomUUID();
</cfscript>
<cfoutput>#myUUID#</cfoutput>


 All   Comments   Work Log   Change History      Sort Order:
Daniel Jimenez - 19 Aug 09 00:16
This is a sample cfm file with a few test cases for cfml java code completion.

Daniel Jimenez - 19 Aug 09 00:20
Hi, I've added an attachment cfm with some test cases. I hope this may help in some way!

Daniel


Kenton - 22 Sep 09 20:49
I really hope this can get some attention before moving onto new development. The java completion in its current form isn't correct or usable.

Daniel Jimenez - 22 Sep 09 21:53
I totally agree, it's not very usable right now.