I noticed a bug-like thing in sys::Field.
virtual Obj? get(Obj? instance := null)
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.
Promoted to ticket #1844 and assigned to brian
Looks we could clean that up a bit
Ticket resolved in 1.0.63
Added special check in Method.invoke to report this better
Login or Signup to reply.