Ticket #164 (closed defect: fixed)

Opened 7 weeks ago

Last modified 6 weeks ago

recursive use of role files not working

Reported by: mosconi Owned by: stephan
Priority: major Milestone: OTDT_1.2.5
Component: compiler Version: 1.2.4
Keywords: Cc:

Description

Consider the following structure:

package test;

public team class OuterTeam {}
team package test.OuterTeam;

public team class InnerTeam {}
team package test.OuterTeam.InnerTeam;

protected class InnerInnerRole {}

The compiler states the following on the last team package declaration:

  • Enclosing team test.OuterTeam.InnerTeam not found for role file InnerInnerRole (OTJLD 1.2.5(c)).
  • The package test.OuterTeam.InnerTeam collides with a type

Either this should work or there should be a rule in the OTJLD forbidding recursive role files ;-)

Change History

Changed 7 weeks ago by stephan

  • milestone set to OTDT_1.2.5

Witnesses are in

r19251 fixed the initial issue (LookupEnvironment was not happy with the inner class syntax of a type name to lookup).

r19252 fixes issues of 4 level nesting.

Changed 7 weeks ago by stephan

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

Changed 6 weeks ago by stephan

r19257 fixes a regression in ExternalRoleTest caused by patches in this issue.

Note: See TracTickets for help on using tickets.