Ticket #63 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Various issues with callout-binding clone()

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.1.7
Component: compiler Version: 1.1.6
Keywords: Cc:

Description

The following snippet causes various problems:

team class T {
   protected class R playedBy B {
       Object clone() => Object clone();
   }
}
  • role method clone() is reported as not visible
  • the generated callout method is wrongly marked as native
  • base method clone() is OK for the compiler, but required decapsulation doesn't work at run-time

Change History

Changed 4 years ago by stephan

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

Bullets 1 & 2 are fixed in r17908 and r17909, resp. Test is in 3.1.3-otjld-concrete-callout-binding-5.

Bullet 3 is due to the inability to weave (decapsulate) system classes. It would be nice if the compiler could warn in these cases... Opened #64 for this remaining issue.

Note: See TracTickets for help on using tickets.