|
Re: Error in 17.5.7 Classifier [message #477225 is a reply to message #477215] |
Wed, 09 April 2008 15:37 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Felix,
Yes I think you are right again...
Classifier is a ParameterableElement and it redefines templateParameter.
The type of the redefined templateParameter should be
ClassifierTemplateParameter.
In the current implementation, we allow for users to call
setTemplateParameter(TemplateParameter ) but then throw an exception if it
not of type ClassifierTemplateParameter. This should be addressed in the
spec. so we can update our API.
Cheers,
- James.
"Felix Dorner" <felix_do@web.de> wrote in message
news:fti8nr$bfq$1@build.eclipse.org...
> Hey again...
>
> The best proof of the template mechanism's complexity is the amount of
> errors I find in the specs.. Here's another one:
>
> Section 17.5.7 Classifier, p. 627, under Associations:
>
> "templateParameter : ParameterableElement [0..1]
> The template parameter that exposes this element as a formal
> parameter. Redefines ParameterableElement::templateParameter"
>
> The type of "templateParameter" must be
> "ClassifierTemplateParameter", not "ParameterableElement".
>
>
> As always, before submitting an Issue, I'd like to have some other
> people's interpretations.
>
> Thanks,
> Felix
>
>
>
|
|
|
|
|
Re: Error in 17.5.7 Classifier [message #626383 is a reply to message #477215] |
Wed, 09 April 2008 15:37 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Felix,
Yes I think you are right again...
Classifier is a ParameterableElement and it redefines templateParameter.
The type of the redefined templateParameter should be
ClassifierTemplateParameter.
In the current implementation, we allow for users to call
setTemplateParameter(TemplateParameter ) but then throw an exception if it
not of type ClassifierTemplateParameter. This should be addressed in the
spec. so we can update our API.
Cheers,
- James.
"Felix Dorner" <felix_do@web.de> wrote in message
news:fti8nr$bfq$1@build.eclipse.org...
> Hey again...
>
> The best proof of the template mechanism's complexity is the amount of
> errors I find in the specs.. Here's another one:
>
> Section 17.5.7 Classifier, p. 627, under Associations:
>
> "templateParameter : ParameterableElement [0..1]
> The template parameter that exposes this element as a formal
> parameter. Redefines ParameterableElement::templateParameter"
>
> The type of "templateParameter" must be
> "ClassifierTemplateParameter", not "ParameterableElement".
>
>
> As always, before submitting an Issue, I'd like to have some other
> people's interpretations.
>
> Thanks,
> Felix
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03692 seconds