Mantis - Quercus
Viewing Issue Advanced Details
2146 minor always 11-06-07 14:31 12-17-07 16:25
koreth  
ferg  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.5  
0002146: "Name is too long to represent" error when compiling large PHP file
We have a huge (30,000-line) machine-generated PHP file. When Quercus tries to compile it, I get a "java.lang.InternalError: Name is too long to represent" exception.

Possibly related to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=136752 [^]

I can split the file up for now, so this is not urgent.

Notes
(0002464)
ferg   
11-07-07 19:22   
The large method issue is not a surprise, although that specific error is odd. I'd expect something more like a "jump out of bounds issue". The underlying issue is still JVM limitations (many of the constants are 16-bit shorts.)

Eventually, we'll need to break up large methods into multiple Java methods to work around that problem.
(0002466)
koreth   
11-07-07 19:24   
Actually, this file is not a large method. In fact, it's a bunch of (mostly reasonably small) PHP class declarations.
(0002587)
ferg   
12-17-07 16:25   
Added check in JavaCompiler. If the .smap file is larger than 64k, Resin does not try to merge the data.