At 01:34 PM 6/29/2002 +0000, you wrote: >mcconnell 2002/06/29 06:34:36 > > Modified: > containerkit/src/java/org/apache/excalibur/containerkit/metadata > ComponentMetaData.java > Log: > updated to provide support for automatically naming (needed when > creating implicit metadata) > > Revision Changes Path > 1.7 +6 > -3 > >jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java > > Index: ComponentMetaData.java > =================================================================== > RCS file: > >/home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java,v > retrieving revision 1.6 > retrieving revision 1.7 > diff -u -r1.6 -r1.7 > --- ComponentMetaData.java 25 Jun 2002 07:39:57 -0000 1.6 > +++ ComponentMetaData.java 29 Jun 2002 13:34:36 -0000 1.7 > @@ -67,7 +67,11 @@ > { > if( null == name ) > { > - throw new NullPointerException( "name" ); > + m_name = "" + System.identityHashCode( this ); > + } > + else > + { > + m_name = name; > }
It would be nicer to do this outside of ComponentMetaData in the utility classes rather than here. Cheers, Peter Donald ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Faced with the choice between changing one's mind, and proving that there is no need to do so - almost everyone gets busy on the proof." - John Kenneth Galbraith ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>