Ticket #250 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Decapsulation warning for base import should be suppressable at the role type

Reported by: stephan Owned by: stephan
Priority: minor Milestone: OTDT_1.3.0_M4
Component: compiler Version: 1.3.0M2
Keywords: Cc:

Description

When a base-imported class is not regularly visible, the compiler issues a decapsulation warning against the base import.

It should be possible to suppress this warning by adding @SuppressWarnings("decapsulation") to the role type. Currently this annotation has to be added to the team, which is too coarse grained for normal use.

See team OTQuickFixes for examples.

Change History

Changed 4 years ago by stephan

  • milestone set to OTDT_1.3.0

Put this on our radar, hoping it's easy to implement.

Changed 4 years ago by stephan

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from OTDT_1.3.0 to OTDT_1.3.0_M4

Test is in 7.4.6-otjld-baseclass-is-invisible-9.

Implementation in r21686.

Changed 4 years ago by stephan

r21690 fixes a regression caused by r21686 (bogus "Unnessary @SuppressWarnings...").

Note: See TracTickets for help on using tickets.