sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Pauls <karlpa...@gmail.com>
Subject Re: Why does loading classes reach into the service registry? (was: [Jenkins] Sling » sling-org-apache-sling-launchpad-testing » master #23 is BROKEN)
Date Fri, 22 Feb 2019 11:41:01 GMT
On Fri, Feb 22, 2019 at 12:35 PM Robert Munteanu <rombert@apache.org> wrote:
>
> On Fri, 2019-02-22 at 10:47 +0000, David Bosschaert wrote:
> > Hi Robert,
> >
> > Regarding the question in the subject line "Why does loading classes
> > reach
> > into the service registry?"
> > This is most likely to see if there are any registered weaving hooks
> > which
> > can weave the class bytes.
> >
> > Best regards,
> >
> > David
> >
> > [1]
> > https://osgi.org/specification/osgi.core/7.0.0/framework.weavinghooks.html
>
> Interesting. So I guess your advice would be "don't do non-trivial
> stuff in static initializers since they might break your class?".

No. While that probably is good advice in general, this doesn't seem
right. We might be looking at a bug in felix. A classload should not
fail because the thread that instigated it was interrupted. Can you
reproduce this?

regards,

Karl

> Robert
>


-- 
Karl Pauls
karlpauls@gmail.com

Mime
View raw message