Ticket #267 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

Visibility of inferred callout-to-field methods

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

Description

In the presence of an inferred callout-to-field (e.g. x), usage of the implicit callout method (e.g. getX()) is possible, but with no navigation capabilities (hover, F3) and no hint that this an inferred method. Perhaps it would be better to forbid direct usage of an implicitly generated callout-to-field method?

Change History

Changed 15 months ago by mosconi

Example code:

public team class MyTeam {
    public class MyRole playedBy MyBase {
        public void rm() {
            System.out.println(str); // inferred callout-to-field
            System.out.println(getStr()); // usage of implicit getter
        }
    }
}

Changed 15 months ago by stephan

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

Agreed, such usage should be forbidden.

Test is 3.3.20-otjld-inferred-callout-to-field-13.

Spec-update and implementation is in r21748.

Changed 15 months ago by stephan

See also the fix in r21750 (mainly CalloutImplementor).

Note: See TracTickets for help on using tickets.