Hi,

The following code fails in the Javassist compiler when $2 is a primitive array:

if ( $2 != null )
  |         return $2.length;

Instead I have to use:

if ( System.identityHashCode( $2 ) != 0 )
  |         return $2.length;

Are there plans to add support for comparing primitive arrays to null?

Is there a better work around?

Keep up the good work - Howard.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to