eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

VariableExp#getName() always returns null - compatibility issue and confusing #315

Closed eclipse-ocl-bot closed 6 hours ago

eclipse-ocl-bot commented 6 hours ago

| --- | --- | | Bugzilla Link | 243528 | | Status | CLOSED DUPLICATE of bug 243526 | | Importance | P3 normal | | Reported | Aug 07, 2008 21:28 EDT | | Modified | May 27, 2011 02:48 EDT | | Version | 1.2.0 | | Reporter | Stefan Schulze |

Description

Until OCL 1.1.2 VariableExp#getName() always returns the name of the referred variable. In 1.2.0 this is changed to always returning null.\ It makes sense that the expression itself doesn't have a name - only the referred variable has, but this change breaks compatibility to previous releases and it's confusing that there is a public method which does nothing but return null.

To fix this, you could handle the name-attribute as derived and just delegate VariableExp#getName() to VariableExp#getReferredVariable().getName().

eclipse-ocl-bot commented 6 hours ago

By Stefan Schulze on Aug 07, 2008 21:35

Multiple posts due to problems with my browser

This bug has been marked as a duplicate of bug 243526

eclipse-ocl-bot commented 6 hours ago

By Ed Willink on May 27, 2011 02:48

Closing after over 18 months in resolved state.