Community
Participate
Working Groups
After a workspace from WDSC 7.0 is migrated, the library list of an IBMi connection is incorrect. The attached an image (Library_List_err.gif) shows the incorrect library list in the UI. The attachment workspace_70_Migr.zip is a very simply workspace from WDSC 7.0. You can use it to reproduce the problem following these steps: 1) Un-zip the workspace 2) Launch RD Power 8.0.0.1 against this workspace Migration should occur automatically. 3) After migration, right-click on the connection > Properties to show the library list. The order is incorrect. The class org.eclipse.rse.core.model.PropertySet.java in plugin org.eclipse.rse.core is using a HashMap to store the library list entries. HashMap does not guantantee the ordering of the map so the library list could be in an order. The fix is to replace the usage of HashMap with LinkedHashMap which does guarantee the ordering (insertion-order) of the map entries. I found 2 PropertySet contstructor where this change should be made: //_properties = new HashMap(); //old _properties = new LinkedHashMap(); //new Please include this change in the R3_2_maintenance stream so we can pick it up for a fixpack.
Created attachment 187154 [details] Screen capture
Created attachment 187155 [details] sample workspace
Created attachment 187678 [details] patch to use LinkedHashMap instead of HashMap
San, could you verify the the patch I've attached here solves the problem? Thanks.
Created attachment 187681 [details] additional patch to use LinkedHashMap in PropertySetContainer
I verified the patch solves the problem.
Thanks San, I've committed the change to cvs. I'll follow up with the 3.2.x backport (bug 335504) when it has been reviewed.