Issue Details (XML | Word | Printable)

Key: JCR-333
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Stefan Guggisberg
Reporter: Jukka Zitting
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jackrabbit Content Repository

NodeTypeDef depends on supertype ordering

Created: 07/Mar/06 07:33 AM   Updated: 13/Oct/06 04:07 PM
Return to search
Component/s: nodetype
Affects Version/s: 0.9
Fix Version/s: 1.0

Time Tracking:
Not Specified

Resolution Date: 09/Mar/06 01:12 AM


 Description  « Hide
Currently the NodeTypeDef.setSupertypes() method simply sets the given QName array as the supertype QName array of the defined node type, thus preserving whatever ordering a node type parser or ultimately a node type definition file uses. This causes problems for example in the equals() method that uses the order-sensitive Arrays.equals() method to check for equality of the supertype QName arrays. The current implementation does therefore not consider the node type definitions "A > B, C" and "A > C, B" as equal even though they really should be so considered.

The same problem affects also child node and property definitions. The proper fix for this issue would probably be to use Sets to store and handle this information.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.