This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Following test fails on 1.2 version: @Test public void changingModelClass() throws Exception { final MyY myY = new MyY("Ahoj", 0); MyX p = Models.bind( new MyX(myY, new MyY("Hi", 333), new MyY("Hello", 999)), c) .applyBindings(); MyY realY = p.getOne(); Map m = (Map)Models.toRaw(p); Object v = m.get("one"); assertNotNull(v, "Value should be in the map"); assertEquals(v.getClass(), One.class, "It is instance of One"); One o = (One)v; assertEquals(o.changes, 0, "No changes so far"); assertFalse(o.pb.isReadOnly(), "Normal property"); assertEquals(o.get(), myY); assertSame(o.get(), realY); final MyY newY = new MyY("Hi", 1); p.setOne(newY); assertSame(p.getOne(), newY); assertEquals(o.changes, 1, "One change"); }
https://hg.netbeans.org/html4j/rev/34eed9763f59 The fix should get into NetBeans 8.1
I tested my fifteen game and the CRUD archetype. No problems found with 1.2.1 so far