Mantis - Quercus
Viewing Issue Advanced Details
1176 minor always 06-05-06 17:03 06-28-06 19:28
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.0.20  
0001176: "while (false)" produces non-compilable Java code
The PhpDocumentor package has some code that's commented out with "while (false) { ... }". Why they used "while" instead of "if" I'm not sure, but they did, and the resulting Java fails to compile, though it works fine in interpreted mode.

[16:59:46.114] com.caucho.java.JavaCompileException: /Users/sgrimm/resin/resin/webapps/test/WEB-INF/work/_quercus/_test__php.java:53: unreachable statement
[16:59:46.114] while (false) {
[16:59:46.114] ^
[16:59:46.114] 1 error
060602 snapshot

Notes
(0001351)
ferg   
06-28-06 19:28   
php/3617