Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » line1 : error missing EOF at '('
line1 : error missing EOF at '(' [message #1059314] Fri, 17 May 2013 13:38 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

I am trying to valiadate OCL for my attribute(part of ecore) and i keep getting

line1 : error missing EOF at '('

But when i evaluate my ecore with help of delegates then there is no error so it seems a bug.

i am using following code:

org.eclipse.ocl.examples.pivot.OCL ocl = org.eclipse.ocl.examples.pivot.OCL.newInstance(new PivotEnvironmentFactory());
org.eclipse.ocl.examples.pivot.helper.OCLHelper helper = ocl.createOCLHelper();
helper.setPropertyContext(eClass, eAttribute);
try {
helper.createDerivedValueExpression(body);
} catch (org.eclipse.ocl.examples.pivot.ParserException e) {
message = e.getDiagnostic().getMessage();
}

Is it a bug?

Cheers
Re: line1 : error missing EOF at '(' [message #1059332 is a reply to message #1059314] Fri, 17 May 2013 14:25 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Bugs are always possible but without the OCL to look at how can I tell?

Regards

Ed Willink

On 17/05/2013 14:38, ModelGeek Mising name wrote:
> Hi,
>
> I am trying to valiadate OCL for my attribute(part of ecore) and i
> keep getting
>
> line1 : error missing EOF at '('
>
> But when i evaluate my ecore with help of delegates then there is no
> error so it seems a bug.
>
> i am using following code:
>
> org.eclipse.ocl.examples.pivot.OCL ocl =
> org.eclipse.ocl.examples.pivot.OCL.newInstance(new
> PivotEnvironmentFactory());
> org.eclipse.ocl.examples.pivot.helper.OCLHelper helper =
> ocl.createOCLHelper();
> helper.setPropertyContext(eClass, eAttribute);
> try {
> helper.createDerivedValueExpression(body);
> } catch (org.eclipse.ocl.examples.pivot.ParserException e) {
> message = e.getDiagnostic().getMessage();
> }
>
> Is it a bug?
>
> Cheers
Previous Topic:Why helper.createQuery() takes a considerable time?
Next Topic:How to specify integer value in an invariant?
Goto Forum:
  


Current Time: Tue Apr 16 18:08:54 GMT 2024

Powered by FUDForum. Page generated in 1.88563 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top