Re: svn commit: r1363887 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLoggerFacade.java

2012-09-10 Thread Joseph Bergmark
That makes perfect sense, thanks! On Mon, Sep 10, 2012 at 1:07 AM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Hi, Yeah it does exactly the same but the code is in a static block so it is executed when the class is loaded and the imports between both classes make it fail (circular dep).

Re: svn commit: r1363887 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLoggerFacade.java

2012-09-09 Thread Joseph Bergmark
I know was well over a month ago, but do you remember why: WebBeansUtil.getCurrentClassLoader().loadClass(factoryClassname) is problematic, but a direct call to: ClassLoader classloader = Thread.currentThread().getContextClassLoader(); is not? They appear basically the same. Unless I'm

Re: svn commit: r1363887 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLoggerFacade.java

2012-09-09 Thread Romain Manni-Bucau
Hi, Yeah it does exactly the same but the code is in a static block so it is executed when the class is loaded and the imports between both classes make it fail (circular dep). I didnt like to copy paste the code but it is a sure way to avoid linkageerror. About java 2 sec you are right it is