Re: JMIUNDO SPI 0.2

Holger Krug <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
On Fri, Jun 28, 2002 at 12:53:27PM -0500, Brian Smith wrote:
> My understanding is that all datatypes, including CollectionType 
> instances, are immutable.

>From where did you take this understanding ? My sources are:

JMI p.40: Unless otherwise specified, Java collections that appear in
the generated and reflective APIs have live semantics as opposed to
copy semantics. ... the source collection can be updated using:
* Operations defined in the Java collection interface.

JMI p. 74: CollectionType Template: All CollectionTypes are mapped to
java.util.Collection or java.util.List.

Please point me to my misunderstanding, if there is any.

For the moment I won't argue on the other point brought up by you,
because if you're right in this point, then I will agree with you in
the other point, too. It would really heavily simplify the JMIUNDO SPI
and I would be glad about this. Then it would be the nice SPI I wanted
to have. On the other hand interactive applications would have to add a
layer on top of the meta-data repository to allow the user to modify
attribute values.

> Do any JMI implementations allow you to modify the StructureField
> values?

Yes, every open source JMI implementation after a few code changes ;-)

-- 
Holger Krug
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.