gcj trunk - getAnnotations NullPointerException / segmentation fault

Hanno Meyer-Thurow h.mth@web.de
Mon Mar 5 18:52:00 GMT 2007

On Mon, 5 Mar 2007 15:48:40 +0000
Andrew Haley <aph@redhat.com> wrote:

> Agh.  This is my bug in Proxy, where I cache a Method in a reflection
> structure that is not scanned by the GC, so the Method is reclaimed.
> Then I try to use it.  :-(
> OK, so I need to create the Method at the time the Proxy is invoked,
> not cache it.  This turns out to be unexpectedly hard: creating
> instances of Method() is difficult.

Thanks for the patch. Now JUnit-4.2 tests pass.


More information about the Java mailing list