geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anita kulshreshtha <a_kuls...@yahoo.com>
Subject Re: Build Failure - org/apache/geronimo/deployment/service/GBeanAdapter
Date Tue, 11 Jan 2005 13:02:36 GMT
Dain,
      Thanks.
--- Dain Sundstrom <dsundstrom@gluecode.com> wrote:

> On Jan 10, 2005, at 5:11 AM, anita kulshreshtha
> wrote:
> 
> >    Let me rephrase this question. Is
> getDeclaredMethod
> > supposed to behave like this? Why is it trying to
> find
> > GBeanAdaptor class. Shouldn't it give
> > NoSuchMethodException? In that case the build will
> > fail gracefully indicating that it is time to
> build
> > openejb! I hope my question is not out of scope of
> > Geronimo.
> 
> Yes this is expected. Normally when a class, is
> loaded in Java it is 
> not fully resolved.  This means that the byte code
> was loaded and 
> verified, but not all classes the loaded class
> depends on were loaded.  
> This is an optimization by the VM engineers to even
> out load time of an 
> application.  When you call getDeclatedMethod, the
> class is fully 
> resolved, which mean that all dependency classes are
> loaded and this 
> can cause a NoClassDefFoundError.
> 
> In this case this is caused by an inconsistent build
> which is a very 
> abnormal case, so IMO not beneficial to add such a
> check to the code as 
> it complicates the code.  If this could happen in an
> official release 
> (even if it were rare), I would support adding a
> check.

    I agree it is not likely to happen in an official
release. 

Thanks
Anita
> 
> -dain
> 
> 



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page  Try My Yahoo!
http://my.yahoo.com 

Mime
View raw message