Ticket #176 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Support @Override annotation for role classes

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.2.8
Component: language Version: 1.2.4
Keywords: Cc:

Description

Role classes, just like methods, override inherited versions simply based on name equality. For methods Java 5 introduced the @Override annotation for documenting overriding in the source code and for supporting compile time checks whether all overrides have been declared and whether all declared overrides are actually overrides.

In OT/J the same concept should be applied to role classes, too.

Furthermore the tool should display override markers for roles, too.

Change History

Changed 3 years ago by stephan

  • status changed from new to accepted
  • milestone set to OTDT_2.0.0

Should definitely do this. Haven't analyzed how difficult this is.

Changed 3 years ago by stephan

The UI issue (markers/indicators) has been separated into #220.

Changed 3 years ago by stephan

  • status changed from accepted to closed
  • resolution set to fixed
  • milestone changed from OTDT_2.0.0 to OTDT_1.2.8

Tests are here

r19754 brings

Note, that the warning can be configured together with method-override annotations (batch compiler uses token over-annon).

Note: See TracTickets for help on using tickets.