Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332803 - XDCtools should show better error message
Summary: XDCtools should show better error message
Status: ASSIGNED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 18:18 EST by Amit Mookerjee CLA
Modified: 2012-07-10 20:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Mookerjee CLA 2010-12-16 18:18:26 EST
XDCtools throws the following error:

generating interfaces for package idiom (because package/package.xdc.inc is older than ModA.xdc) ...
    translating ModA
----------
1. ERROR in package/idiom.java (at line 137)
	po.addFld("id", $$T_Str, Global.eval(""one" + "two""), "w");
	                                       ^^^^^^^^^^^^^
Syntax error on tokens, delete these tokens
----------
1 problem (1 error)error:  internal java compilation error


while compiling the following RTSC module.

/* ModA.xdc */
module ModA {
......... 
     config String id = "one" + "two";
.........
}


Obviously the RTSC spec. does not support the familiar "+" javascript operation on strings which would be a nice addition. Meanwhile XDCtools can throw a more meaningful error referring to the problem in the spec. file itself.