Jody Garnett a écrit :
>> @UML(identifier="conditional", obligation=CONDITIONAL, specification=ISO_19115)
>> CONDITIONAL,
> I get the following error:
>> Cannot reference a field before it is defined
>> geoapi/src/main/java/org/opengis/annotation Obligation.java line 30
> Which seems fair; but I am not sure enough of how annotations work to
> make the call one way or another on this. Can you use an annotation to
> annotate its own definition?
It work well with Sun's compiler (both JDK 5 and 6)...
We could comment it out for Eclipse users, but we would need to remember it and
maybe uncomment before each deploy (which means that deploy should be made with
Sun's compiler).
What do you think?
Martin
|