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 - Rule error message is obscure
Summary: Rule error message is obscure
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 20:48 UTC by _ tball
Modified: 2005-12-20 23:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?)