Modify ↓
Ticket #176 (new defect)
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
Note: See
TracTickets for help on using
tickets.
