The following test code works fine on my machine. :<

  | ClassPool pool = ClassPool.getDefault(null);
  | CtClass cc = sloader.makeClass("test2.NullArgTest");
  | CtMethod m1 = CtNewMethod.make(
  |             "public Object foo(Object[] obj, int idx) throws Throwable {" +
  |             "    return null; }", cc);
  | cc.addMethod(m1);
  | CtMethod m2 = CtNewMethod.make(
  |                      "public void bar() { this.foo(null, 0); }", cc);
  | cc.addMethod(m2);
  | CtMethod m3 = CtNewMethod.make(
  |                  "public void bar2() { this.foo((Object[])null, 0); }", cc);
  | cc.addMethod(m3);
  | cc.writeFile();
  | 

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824933#3824933";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824933>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to