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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from hauma. Next status will be 'new'
The owner will be changed from hauma to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.