gcj trunk - getAnnotations NullPointerException / segmentation fault

Andrew Haley aph@redhat.com
Mon Mar 5 18:57:00 GMT 2007


Hanno Meyer-Thurow writes:
 > 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.
OK, thanks a lot for all your hard work on this!
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /