Modify ↓
Ticket #250 (new defect)
Opened 8 years ago
gjc.v6.RetroTransport: public inner classes make use of variable this$0 in generated code
| Reported by: | Burkhard Kuehlert | Owned by: | hauma |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | uka.transport | Version: | 1.07i |
| Severity: | normal | Keywords: | public inner classes |
| Cc: |
Description
Let us assume we have this code:
..
public class Outerclass
{
public class InnerClass
{
}
}
then the gjc.v6.RetroTransport compiler generates the following:
protected void deepCloneReferences(uka.transport.DeepClone _helper)
throws CloneNotSupportedException
{
this.this$0 = (com.x.Outerclass) _helper.doDeepClone(this.this$0);
}
This is wrong cause the inner class is independent of outer objects.
Attachments
Note: See
TracTickets for help on using
tickets.
