commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Petrola <fernando.petr...@gmail.com>
Subject javaflow null assignment bug
Date Tue, 03 Feb 2009 13:10:19 GMT
I've found a bug at javaflow (reported in
http://issues.apache.org/jira/browse/SANDBOX-277) related to assign
null  to local variable.
Debugging ContinuationMethodAdapter class I've seen that there are
many lines like this:

    mv.visitTypeInsn(CHECKCAST, value.getType().getInternalName());

Those lines are trying to cast the value popped from stack to the
internal value name, but in case of null values there is no type at
least extracted from value.getType(). Is there a way to know the type
of certain local variable at that point?

regards, Fernando Petrola

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message