tracker issue : CF-3754672

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

Prefix-based custom tags work only if cfimport is used outside of cfscript.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Suchika Singh)

Created: 05/05/2014

Components: Language, CustomTag

Versions: 11.0

Failure Type: Unspecified

Found In Build/Fixed In Build: final /

Priority/Frequency: Major / Unknown

Locale/System: English / Win XP All

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem:

Method:The following code does not work:
<cfscript>
cfimport (prefix="myTags", taglib="../mycustomtags/");
myTags:calling01();
</cfscript> 

Result:Invalid construct.	 
A script statement must end with ";".
..
coldfusion.compiler.ScriptParseExceptions$SemicolonMissingException: Invalid construct.
         at coldfusion.compiler.ScriptParseExceptions.throwSemicolonMissingException(ScriptParseExceptions.java:109)
         at coldfusion.compiler.cfml40.cfscriptStatement(cfml40.java:1605)
         at coldfusion.compiler.cfml40.cfscript(cfml40.java:1455)
         at coldfusion.compiler.cfml40.cfml(cfml40.java:4718)
         at coldfusion.compiler.cfml40.start(cfml40.java:5150)
         at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:620)
         at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:601)
         at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:441)
         at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:391)


Expected:Should work

Workaround: Use cfimport tag instead

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

Watson Bug ID:	3754672

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Verified this is fixed in CF11 Update 3. Thanks!, -Aaron
Comment by External U.
12324 | November 06, 2014 10:50:47 PM GMT