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 09:38 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 460
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 10:25 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3849
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: Fri Apr 25 02:50:36 EDT 2014

Powered by FUDForum. Page generated in 0.02578 seconds