Hi Lars, In the current state, the "description" (from Metadata super class) and the "uri" property could be customized for the same method. Therefore, unless we remove those properties or forbid their setting, it won't be possible to compare simple object reference for equality.
Best regards, Jerome > -----Message d'origine----- > De : Lars Heuer [mailto:[EMAIL PROTECTED] > Envoyé : dimanche 1 octobre 2006 15:47 > À : [email protected] > Objet : Method > > Hi all, > > Now that we have the static method > > Method.valueOf(String) > > I wonder if it makes sense to make the Method constructors private. I > think it's unlikely that someone wants to create a non-standard > Method. > If the constructors are private we can compare Method instances by > reference which should be a lot faster than the > equals(Object) method. > > Thoughts? > > Best regards, > Lars > -- > http://www.semagia.com > >

