Modify

Ticket #176 (new defect)

Opened 12 years ago

Last modified 8 years ago

Anonymous inner classes are not declared serializable

Reported by: Bernhard Haumacher (haui at haumacher dot de) Owned by:
Priority: normal Milestone:
Component: jpc Version: 1.04d
Severity: major Keywords:
Cc:

Description

The JavaParty compiler automatically declares application classes serializable. This does not work for anonymous inner classes, because those classes cannot be declared to implement additional interfaces.

Workaround

Make the class non-anonymous.

Test

jp.test.TestMarshalInner

Solution

The transformation that adds the serializable code must be moved after the inner class transformation.

todo since 1.04d.

Attachments

Change History

comment:1 Changed 8 years ago by hauma

  • Severity changed from normal to major
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 (none). Next status will be 'new'
The owner will be changed from (none) 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.