Can you tell us about the method parseText()?
What kind of code did you generate?
(please don't post 2500 lines of code...
only overview is fine.)
Sorry for being late, I was on vacation for some time ...
We are using it to generate a Parser which parses standard string messages. the rules are defined in the database, and using the rules, and the logic, a static method to parse the string is generated. Earlier we had lot of try catch blocks so that the stack was not building up so high. But we did some change in logic, so that the number of try catch blocks reduced.
There are expression classe slike Loop,Statement, Condition,Block etc which is used to generate the method body string.
but now when we use the generated class with Sun jvm we get this error. if we copy the generated code (which is passed to the Javassist) and put it in a java file and then compile it works perfectly.
We tried to disassemble the byte code. There is some byte code, which is not available. also the Jad for decompiling is giving errors like 'invalid stack height
ERROR: Invalid stack at 19270
ERROR: Invalid stack at 19791
Thansks and Regards
The Problem does not come in javassist 2.6. it is coming in javassist 3.0 only...