Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
2.5.0.Beta2
-
None
-
Low
Description
In case one needs to get values from a node he needs to use either JcrSingleValueProperty or JcrMultiValueProperty; However, in cases these come back from a wrapper in closed systems, one can't find out this easily, meaning a simple approach to get all Values from a node is to just use: .getValues[] which also works in Jackrabbit; If now one uses modeshape on the same JCR repo he gets into trouble as this error is thrown in case he wants to access it; This is even worse if you one take in mind that the difference between JcrSingleValueProperty and JcrMultiValueProperty is just the sum of properties, leading to the problem that even a JcrMultiValueProperty is once a JcrSingleValueProperty (when size of array is exactly one!);
I therefore request to allow getValues[] even on JcrSinglValueProperty by just doing a return new Value[]
{getValue()}; instead of throwing this error;