Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #36762 All Revisions ] Back to Issue ]
Summary 0036762: Window personalization list can not be loaded properly due to an error during its sorting
Revision 2017-09-05 18:29 by caristu
Description Window personalization list can not be loaded properly due to an error during its sorting.

The list of personalizations for a tab is sorted[1] before returning it to the client.

Since Java 7 Collections.sort uses TimSort. Using a non-transitive comparator for sorting in Java >= 7 will throw the following exception: java.lang.IllegalArgumentException: Comparison method violates its general contract!

And the PersonalizationComparator is not transitive when checking the priority by client.

[1] https://code.openbravo.com/erp/devel/pi/file/4fa54a2fb83d/modules/org.openbravo.client.application/src/org/openbravo/client/application/personalization/PersonalizationHandler.java#l270 [^]
[2] https://code.openbravo.com/erp/devel/pi/file/4fa54a2fb83d/modules/org.openbravo.client.application/src/org/openbravo/client/application/personalization/PersonalizationHandler.java#l601 [^]
Revision 2017-09-01 12:10 by caristu
Description 'Save button' on the toolbar is not showing when containing many views having its personalization too complex. In the case of the example, there are 21 views defined and its not working, but if we mark one of them as not active, the button works correctly.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker