This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70599

Summary: Rule error message is obscure
Product: contrib Reporter: _ tball <tball>
Component: JackpotAssignee: issues@contrib <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tball 2005-12-19 20:48:40 UTC
The engine should produce a better error message when a statement doesn't follow
the rule syntax. For example, given this faulty rulefile:

new String(); new String() => new String();

The error message given is:

..../foo.rules:1: => expected:  "new String()" sc="new" r="null"

A better message would be:

..../foo.rules:1: invalid rule format: "new String();" is missing a '=>' expression.
Comment 1 Jesse Glick 2005-12-20 03:14:41 UTC
Something like that. Or even

..../foo.rules:1: invalid rule format: "new String();" is missing a '=>'
expression (maybe forgot "{" ... "}" ?)

if that works.
Comment 2 _ tball 2005-12-20 23:17:47 UTC
Fixed message to:

invalid rule format: "new String();" is missing a '=>' expression
   (perhaps missing braces around a multi-statement block?)