|
Re: Null pointer exception while parsing file [message #17090 is a reply to message #16998] |
Thu, 12 April 2007 16:15 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Youmm,
Comments in-line, below.
HTH,
Christian
Youmm P. wrote:
> Hello,
>
> I was trying to parse this file
>
> "context Fruit::myMethod() : MyObject
> pre
> cond1: true = true
> "
This is the correct form of an operation precondition constraint.
> but in a method class context (in fact I'm not sure if it's possible...):
>
> "context myMethod() : MyObject
> pre
> cond1: true = true
> "
This is not a valid operation context; the operation must be qualified with
a classifier name as in your first example.
> however with the last file I get a null pointer exception. A parser
> exception would be nicer :)
Yes, a parse exception would be nicer than an NPE. Would you mind raising a
bug with the details? (OCL text and stack trace)
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=MDT& version=1.1.0&component=OCL
> Perhaps I made some mistakes in the source code, you can find it here :
>
> http://rafb.net/p/K29acM86.html
|
|
|
|
Powered by
FUDForum. Page generated in 0.03044 seconds