Description
If run inside the repository VM, the following code results in an IllegalStateException("item is not of type ItemDecorator")
Node demo = session.getNode("/"); Property p1 = demo.getProperty("jcr:uuid"); Property p2 = demo.getProperties(new String[]{"jcr:uuid"}).nextProperty(); p1.isSame(p2);
The problem seems to be a missing wrapper on p2, as returned by getProperties(String[]).
isSame() then checks for the wrapper and throws.
I also checked getProperties(String) and getProperty(String), both of which work normally.