本帖最后由 beyondmk2001 于 2011-06-25 23:28:40 编辑

解决方案 »

  1.   

    Eclipse? 右键项目 ->Properties->Java Compiler->Error/Warning->Inexact type mach for vararg argument
    设为 Ignore 
      

  2.   

    参数类型不够精确,把第一个调用中的null换成new Class[0],第二个调用中的null换成new Object[0]就可以了如:
    Method getMethod=from.getClass().getMethod(getName, new Class[0]);Object value=getMethod.invoke(from, new Object[0]);
      

  3.   

    我选择Properties后没有Java Compiler这个选项啊?