Bug 333560

Summary: Generating Externalizable writeObject and readObject for Java class like equals() or hashcode()
Product: [Eclipse Project] JDT Reporter: Archanaa <archanaa.panda>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: deepakazad, markus.kell.r, Olivier_Thomann
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Archanaa CLA 2011-01-05 06:42:35 EST
Build Identifier: 20100218-1602

It is a well known fact that Object serialization is quite heavy.  The recommended performance tip often is for the developer to implement Externalizable instead of Serializable for certain classes and implement the writeExternal and readExternal. This is a feature request to provide source code generation of writeExternal and readExternal by providing a dialog box where the user can select which attributes are to be written and read as well as the order in which they have to be written and read. Then eclipse would generate the writeString(..)/writeInt(..)/writeObject(..) code automatically. This would help programmers save time in implementing the externalizable interface and they would be encouraged to do so for multiple classes easily if required. 

Reproducible: Always
Comment 1 Olivier Thomann CLA 2011-01-05 08:16:04 EST
Move to JDT/UI