Sorry to post small insights into my own problem, but I thought I should add 
this as well:

return $2.get("Quantity") != null ? $2.get("Quantity") : "1";

This works fine.  It is only when using the return value of the conditional 
operator as a parameter or context object for some function call that I get the 
Verify Error.  I thought it may be because I was using illegal arguments for 
the conditional operator, but according to the Java Language Spec what I did 
above should be fine because the second and third arguments are both 
references.  If I've misunderstood that part to be true, then please correct 
me, but it seems that since the above code works, then I assume my code is 
valid.

Chiba, considering Verify Error is essentially "this didn't pass language spec" 
can I consider this a bug within Javassist in dealing with the return type of 
the conditional operator?  If not I'm still very curious what is wrong within 
my code.

(BTW, I would just stop using the conditional operator, but the code that could 
be potentially generated in this program genuinely calls for only one line 
without intermediate variable storage.)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928336#3928336

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928336


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to