|
From: <php...@li...> - 2009-07-03 11:41:39
|
Undeclared exceptions are not handled. This is consistent with other JEE
containers.
[Undeclared]
> Exception not thrown but returned in php side
This is correct behaviour and documented this way.
Regards,
Jost Boekemeier
3. Jul 2009 1:34 nachm. schrieb am <
php...@li...>:
Hi,
There seem to be a bug in runtime exception handling in PHP/Java Bridge
5.4.4.2:
1) Call some java method and get return value successfully
2) Call same method again, but now it throws runtime exception
-> Exception not thrown but returned in php side
Example:
try { $val = $javaObjOrClass->throwIfTrue(true) } catch(Exception $ex) {
//catched nicely here }
try { $val = $javaObjOrClass->throwIfTrue(false) } catch(Exception $ex) {
//does not come here, $val is ok }
try { $val = $javaObjOrClass->throwIfTrue(true) } catch(Exception $ex) {
//does not come here, $val contains exception }
Workaround:
define("JAVA_PREFER_VALUES", true);
Juha
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|