Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318083

Summary: [compiler] "Cannot externalize non-public role" from generated code
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTJAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Stephan Herrmann CLA 2010-06-26 11:49:37 EDT
In a role-of-role context a callout binding can cause the error mentioned
in the title although the source code does not have an explicit reference
to the non-public role.
This is witnessed by test1122_layeredTeams8() where the callout
  void k() -> void k()
is implemented using a call to the internal bridge method
  _OT$R1$private$k(R1<@theTeam>)

That first parameter is generated and actually is a baseclass reference
that shouldn't be checked for this kind of access issue.
Comment 1 Stephan Herrmann CLA 2010-06-26 11:53:07 EDT
Created attachment 172838 [details]
Fix

One-line fix, by marking the argument reference as a baseclass reference.
Comment 2 Stephan Herrmann CLA 2010-06-26 11:54:40 EDT
Patch has been committed as r530.
Comment 3 Stephan Herrmann CLA 2010-07-06 07:50:52 EDT
Verified using build 201007050931.