Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 283509 - [analyzer] Poor invalid character ignored error message
Summary: [analyzer] Poor invalid character ignored error message
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 1.3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 05:15 EDT by Ed Willink CLA
Modified: 2011-05-27 02:47 EDT (History)
0 users

See Also:


Attachments
Message fix (19.34 KB, patch)
2009-10-17 02:21 EDT, Ed Willink CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2009-07-15 05:15:48 EDT
The error message for an expression such as

self.gender = #Gender::male

isLexer: {0} {1} unexpected character ignored : '#'.

The {0} and {1} have not been substituted.
Comment 1 Ed Willink CLA 2009-10-17 02:21:17 EDT
Created attachment 149806 [details]
Message fix

The relevant lexerError had only one test use without content checking.

New test tests content.

Fix to HelperUtil ensures lexer errors are not cleared by the tardy beginParse.

AbstractBasicEnvironment was not substituting {0} and {1}. It now does.

The derived OCLProblemHandler.lexerProblem was adding a redundant and fairly meaningless string of numbers.
Comment 2 Adolfo Sanchez-Barbudo Herrera CLA 2009-10-23 13:29:21 EDT
+1.
Comment 3 Ed Willink CLA 2009-10-23 16:53:10 EDT
Committed to HEAD.
Comment 4 Ed Willink CLA 2011-05-27 02:47:35 EDT
Closing after over 18 months in resolved state.