|
Re: Getting some parsing exceptions..... [message #16726 is a reply to message #16696] |
Fri, 27 January 2006 12:09 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Shrawanika,
This should be changed. Please open a bugzilla to make sure it does.
Shrawanika wrote:
> Hi,
>
> Can you help why I am getting these type of errors while
> evaluating some Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute) Error :
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
>
>
>
>
|
|
|
Re: Getting some parsing exceptions..... [message #16735 is a reply to message #16696] |
Fri, 27 January 2006 13:17 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Shrawanika,
It appears from the OclParsingException that the "attribute" feature does
not have a type (the type is "null"). Is that the case?
Regarding the syserrs about Eclass.getEStructuralFeatures(), yes, please
open a bugzilla.
Thanks,
Christian
Shrawanika wrote:
> Hi,
>
> Can you help why I am getting these type of errors while evaluating
> some
> Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute)
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
|
|
|
|
|
Re: Getting some parsing exceptions..... [message #20007 is a reply to message #19882] |
Thu, 02 February 2006 14:09 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Shrawanika,
If "attribute" is a DataType with multiplicity many, then this should
certainly work. Even if it was a scalar multiplicity, it should be coerced
to a Set type automatically. Looks like a bug, if you care to raise it.
Thanks,
Christian
Shrawanika wrote:
> Hi Christian,
>
> No, the "attribute" feature has type defined (the Type is not
> "null").
> I instantiated UML 1.3 Metamodel. And the attributes have DataType as
> their Object Type.
> Then, what can be the possible reason for this error:
>
> Expression : self.attribute->product(self.attribute)
>
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> ----------------
>
> Thanks and Regards,
> Shrawanika
|
|
|
|
Re: Getting some parsing exceptions..... [message #564365 is a reply to message #16696] |
Fri, 27 January 2006 12:09 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Shrawanika,
This should be changed. Please open a bugzilla to make sure it does.
Shrawanika wrote:
> Hi,
>
> Can you help why I am getting these type of errors while
> evaluating some Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute) Error :
> org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
>
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Getting some parsing exceptions..... [message #564422 is a reply to message #16696] |
Fri, 27 January 2006 13:17 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Shrawanika,
It appears from the OclParsingException that the "attribute" feature does
not have a type (the type is "null"). Is that the case?
Regarding the syserrs about Eclass.getEStructuralFeatures(), yes, please
open a bugzilla.
Thanks,
Christian
Shrawanika wrote:
> Hi,
>
> Can you help why I am getting these type of errors while evaluating
> some
> Ocl expressions?....like-
>
> Expression : self.attribute->product(self.attribute)
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEReferences()
>
> Expression : Set{self.attribute.name}->product(Set{self.attribute.name})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection
> type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Expression : Set{self.attribute}->product(Set{self.attribute})
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (Set(null)).(product)
> Please fix your code to add using
> EClass.getEStructuralFeatures()
> instead of EClass.getEAttributes()
>
> Thanks and Regards,
> Shrawanika
|
|
|
|
|
Re: Getting some parsing exceptions..... [message #565446 is a reply to message #19882] |
Thu, 02 February 2006 14:09 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Shrawanika,
If "attribute" is a DataType with multiplicity many, then this should
certainly work. Even if it was a scalar multiplicity, it should be coerced
to a Set type automatically. Looks like a bug, if you care to raise it.
Thanks,
Christian
Shrawanika wrote:
> Hi Christian,
>
> No, the "attribute" feature has type defined (the Type is not
> "null").
> I instantiated UML 1.3 Metamodel. And the attributes have DataType as
> their Object Type.
> Then, what can be the possible reason for this error:
>
> Expression : self.attribute->product(self.attribute)
>
> Error : org.eclipse.emf.ocl.helper.OclParsingException[1]:
> Collection type conformance failure: (null).(product)
> ----------------
>
> Thanks and Regards,
> Shrawanika
|
|
|
|
Powered by
FUDForum. Page generated in 0.03847 seconds