If instance is null, but the field reflected on is non-static, the Java-level NullPointerException leaks into the Fantom stacktrace. It should probably be masked as a Fantom sys::NullErr.
I suspect that sys::Field.set suffers from the same problem.
brianMon 19 Mar 2012
Promoted to ticket #1844 and assigned to brian
Looks we could clean that up a bit
brianSat 16 Jun 2012
Ticket resolved in 1.0.63
Added special check in Method.invoke to report this better
tactics Sun 18 Mar 2012
I noticed a bug-like thing in sys::Field.
If instance is null, but the field reflected on is non-static, the Java-level NullPointerException leaks into the Fantom stacktrace. It should probably be masked as a Fantom
sys::NullErr
.I suspect that
sys::Field.set
suffers from the same problem.brian Mon 19 Mar 2012
Promoted to ticket #1844 and assigned to brian
Looks we could clean that up a bit
brian Sat 16 Jun 2012
Ticket resolved in 1.0.63
Added special check in Method.invoke to report this better