Community
Participate
Working Groups
The following thrown error doesn't have the offsets well set. Analyzer-ERROR in enumerationOrClassLiteralExpCS; StandardLibrary.qvto:1 : Static reference to non-static attribute "name" The problem resides in this piece of code of AbstractOCLAnalyzer: if (!uml.isStatic(attribute)) { String message = OCLMessages.bind( OCLMessages.NonStaticAttribute_ERROR_, lastToken); ERROR(attribute, "enumerationOrClassLiteralExpCS", message);//$NON-NLS-1$ } attribute comes from a found property of a metamodel, which doesn't have correspondence with the text. Using the correspondent cstNode is needed: ERROR(enumLiteralExpCS.getSimpleNameCS(), "enumerationOrClassLiteralExpCS", message);//$NON-NLS-1$ Cheers, Adolfo.
Committed the submitter's suggested change.
Fix available in R1_2_maintenance: 1.2.1.M200807161339.
This is a one symbol name change, so does not require an IP log entry.
Closing after over a year in verified state.