Mantis - Quercus
Viewing Issue Advanced Details
4840 major always 11-05-11 12:31 11-05-11 12:31
diyism  
 
normal  
new 4.0.14  
open  
none    
none  
0004840: com.caucho.quercus.QuercusException: java.lang.reflect.Method.invoke: argument type mismatch
Always show error:
com.caucho.quercus.QuercusException: java.lang.reflect.Method.invoke: argument type mismatch

The java code:
public class GaeFileObject extends AbstractFileObject
  implements Serializable
{
  private boolean isCombinedLocal;

  public void setCombinedLocal(boolean b) {
    this.isCombinedLocal = b;
  }
}

The php code:
import com.newatlanta.commons.vfs.provider.gae.GaeVFS;
import org.apache.commons.io.IOUtils;
import java.lang.Long;
import java.lang.Boolean;
GaeVFS::setRootPath(quercus_servlet_request()->getSession(true)->getServletContext()->getRealPath('/'));
define('VFSM', GaeVFS::getManager());
$file=VFSM->resolveFile('gae://gaevfs/tmp1'); [^]
$file->getClass()->getDeclaredMethod('setCombinedLocal', array(Boolean::TYPE))->invoke($file, true);

The last line "invoke" trigger the "argument type mismatch" error.
and i tried:
$file->getClass()->getDeclaredMethod('setCombinedLocal', array(Boolean::TYPE))->invoke($file, new Boolean('true'));
And the error is still the same.

I can't figure out why. It's maybe a bug of quercus.

There are no notes attached to this issue.