Modify

Ticket #184 (new defect)

Opened 9 years ago

Last modified 8 years ago

Generation of marshaling routines does not respect user-provided implementations

Reported by: Bernhard Haumacher (haui at haumacher dot de) Owned by:
Priority: normal Milestone: JPlater
Component: uka.transport Version: 1.08b
Severity: major Keywords:
Cc:

Description (last modified by hauma) (diff)

The JavaParty compiler declares classes transportable and generates appropriate implementations of marshaling methods. Unfortunately, it does not respect user-provided implementations of the Transportable interface. Instead it generates duplicate methods and crashes when compiling generated sources.

Test

jp.test.TestStringTransport_SendPackage

Evaluation

There should be a possibility to specify user-defined marshaling routines in a more abstract way that is suitable for java.io serialization and uka.transport mashaling. These user-defined methods should only use the general interfaces java.io.Object{In|Out}put instead of the concrete implementations java.io.Object{In|Out}putStream and uka.transport.{Unm|M}arshalStream.

Attachments

Change History

comment:1 Changed 8 years ago by hauma

  • Description modified (diff)

The solution of simply implementing the complete uka.transport.Transportable interface seems to work now.

comment:2 Changed 8 years ago by hauma

  • Severity changed from normal to major
  • Milestone set to 2.00

comment:3 Changed 8 years ago by hauma

  • Milestone changed from 2.0 to JPlater

There is already the option to completely provide a custom implementation of the Transportable interface.

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.