1 Reply Latest reply on Apr 13, 2005 12:51 PM by Shigeru Chiba

    Is there a way to add a static block into the class.

    Kumar Matcha Newbie

      Hi,

      I'am generating a java class on the fly using javassist. I would like to know how to add the piece of code given below.

      private static final Hashtable myTable = new Hashtable();
      static{
      myTable.put("String","java.lang.String");
      myTable.put("Integer","java.lang.Integer");
      }

      Thanks in advance,

      Kumar Mathca.