enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
198 stars 34 forks source link

PropertySet.detach is broken #10571

Closed rymsha closed 1 month ago

rymsha commented 1 month ago

This method is deprecated and does not have tests

Simple test fails

    @Test
    void detach()
    {
        PropertySet set = new PropertyTree().newSet();
        set.setString( "myProp", "myValue" );

        PropertySet detached = set.detach(); //<- Exception here
    }