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.
Let's introduce @Property(mutable=false) to define semi-immutable property that can only be changed in construction time before the object is passed to underlaying Technology. Attempts to modify the object then yield IllegalStateException. Technologies may decide to represent such non-mutable property in more effective way - for example Knockout will use plain JavaScript values (number, string, array, boolean) rather than observables.
Please review the changes in the @Property and its processor: http://source.apidesign.org/hg/html~html4j/rev/4c40ceb185e5
The change for ko4j module is here: http://source.apidesign.org/hg/html~html4j/rev/c61d247f087a Now we are missing just a note in overview.html and some real world sample in Javadoc.
Documentation overview fixed: http://source.apidesign.org/hg/html~html4j/rev/a753f36c67fc Unless there are objections, I integrate on Monday.
Will be part of HTML/Java 1.3: http://hg.netbeans.org/html4j/rev/3554078c32ce