You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2002/04/29 18:58:59 UTC
cvs commit: jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/avalon/excalibur/instrument/manager DefaultInstrumentManager.java
leif 02/04/29 09:58:59
Modified: instrument-manager/src/java/org/apache/avalon/excalibur/instrument/manager
DefaultInstrumentManager.java
Log:
Buffered Instrumentable arrays were not being reset correctly when
registerInstrumentable was called.
Revision Changes Path
1.7 +5 -1 jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/avalon/excalibur/instrument/manager/DefaultInstrumentManager.java
Index: DefaultInstrumentManager.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/avalon/excalibur/instrument/manager/DefaultInstrumentManager.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DefaultInstrumentManager.java 28 Apr 2002 17:05:41 -0000 1.6
+++ DefaultInstrumentManager.java 29 Apr 2002 16:58:59 -0000 1.7
@@ -40,7 +40,7 @@
/**
*
* @author <a href="mailto:leif@tanukisoftware.com">Leif Mortenson</a>
- * @version CVS $Revision: 1.6 $ $Date: 2002/04/28 17:05:41 $
+ * @version CVS $Revision: 1.7 $ $Date: 2002/04/29 16:58:59 $
* @since 4.1
*/
public class DefaultInstrumentManager
@@ -267,6 +267,10 @@
// Do not call configure here because there is no configuration
// for discovered instrumentables.
m_instrumentableProxies.put( instrumentableName, instrumentableProxy );
+
+ // Clear the optimized arrays
+ m_instrumentableProxyArray = null;
+ m_instrumentableDescriptorArray = null;
// Recursively register all the Instruments in this and any child Instrumentables.
registerInstruments( instrumentable, instrumentableProxy, instrumentableName );
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>