KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > server > support > ConstructorTest5


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.server.support;
9
10 import javax.management.ObjectName;
11 import javax.management.MalformedObjectNameException;
12
13 /**
14  * Support class which fails with an error in static initializer.
15  *
16  * @author <a HREF="mailto:juha@jboss.org">Juha Lindfors</a>.
17  * @version $Revision: 1.1 $
18  *
19  */

20 public class ConstructorTest5
21 {
22
23    static
24    {
25       try
26       {
27          new ObjectName(":");
28       }
29       catch (MalformedObjectNameException e)
30       {
31          throw new BabarError();
32       }
33    }
34    
35 }
36       
37
38
39
40
Popular Tags