[JSR308] Wrapper types

Artemus Harper subanark at gmail.com
Sun Mar 2 15:57:06 EST 2008

>  Right.  If you want a Set that contains objects of @ReadOnly type,
>  you need a different declaration.
>                     -Mike

So this means that you cannot store @ReadOnly type into
JComponent.putClientProperty method? Clients can put mutable objects
in this store and take them out. So you cannot put @ReadOnly items in
the store, rather you would need to keep your own store.

How about JTree, can the TreeNode's value (which is of type Object) be
@Readonly types? Can a JTree have a combination of @Readonly and
@Mutable nodes?

Artemus Harper

More information about the JSR308 mailing list