Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1884

Weld fires in some cases ProcessBeanAttributes and ProcessBean events also for anonymous class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.10.Final, 3.0.0.Alpha6
    • 3.0.0.Alpha5
    • None
    • None

      This is true for example for this class:

      class Test {
      
          private final static ThreadLocal<Test> local = new ThreadLocal<Test>(){
      
              @Override
              protected Test initialValue(){
                  return new Test();
              }
          };
      }
      

      In this case the org.jboss.weld.util.reflection.Reflections#isStatic(java.lang.Class<?>) method returns true for the anonymous type, which looks bit weird.

              mkouba@redhat.com Martin Kouba
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: