User: juhalindfors
Date: 02/02/05 08:20:45
Modified: src/main/javax/management/loading MLet.java
Log:
don't add the mbean to be registered until the MLET end tag is found.
Revision Changes Path
1.5 +3 -4 jmx/src/main/javax/management/loading/MLet.java
Index: MLet.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/loading/MLet.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MLet.java 2002/02/05 12:50:59 1.4
+++ MLet.java 2002/02/05 16:20:45 1.5
@@ -30,7 +30,7 @@
/**
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class MLet
extends URLClassLoader
@@ -182,12 +182,11 @@
throw new ServiceNotFoundException("<" +
buf.toString().replace('\n', ' ').replace('\r', ' ').replace('\t', ' ').trim() + "> is
missing mandatory CODE | OBJECT attribute");
if (entry.archive == null)
throw new ServiceNotFoundException("<" +
buf.toString().replace('\n', ' ').replace('\r', ' ').replace('\t', ' ').trim() + "> is
missing mandatory ARCHIVE attribute");
-
- mlets.add(entry);
}
else if (tagName.equals("/MLET"))
- {
+ {
+ mlets.add(entry);
entry = null;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development