Ticket #111 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Warning can not be suppressed / configured

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.1.10
Component: compiler Version: 1.1.9
Keywords: Cc:

Description

This warning

Dangerous instantitation. To avoid a WrongRoleException at runtime role {0} should be used instead (OTJLD 2.4.3).

can neither be suppressed (with @SuppressWarnings) nor configured (batch compiler option -warn and compiler preference page).

Change History

Changed 4 years ago by stephan

  • status changed from new to closed
  • resolution set to fixed

Fixed in r18240:

  • introduced a new warning token "roleinstantiation", which subsumes the above warning (re OTJLD §2.4.3) and the old token "lifting" (re OTJLD §2.4.1(c)).

Note, that this may require updates in existing code that uses @SuppressWarnings("lifting") and may also effect project preferences that contain a non-default value for this diagnostic.

Note: See TracTickets for help on using tickets.