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.
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.
Something like that. Or even ..../foo.rules:1: invalid rule format: "new String();" is missing a '=>' expression (maybe forgot "{" ... "}" ?) if that works.
Fixed message to: invalid rule format: "new String();" is missing a '=>' expression (perhaps missing braces around a multi-statement block?)