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

Decorated generic observer gets called twice in JRE 1.8

XMLWordPrintable

    • Hide

      mvn clean verify -Dtest=DecorateGenericObserverTest -f weld-core/tests-arquillian/pom.xml

      Show
      mvn clean verify -Dtest=DecorateGenericObserverTest -f weld-core/tests-arquillian/pom.xml

      The test DecorateGenericObserverTest fails in JRE 1.8:

      java.lang.AssertionError: expected:<1> but was:<2>
      	at org.junit.Assert.fail(Assert.java:91)
      	...
      	at org.jboss.weld.tests.decorators.genericobserver.DecorateGenericObserverTest.shouldInvokeDecoratorsWhenObservingGenericEvents(DecorateGenericObserverTest.java:62)
      	...
      

      Both, the decorated and the decorator methods get called twice in a single event firing.

      This problem does not occur in 2.0 branch, the test passes there.

              mkouba@redhat.com Martin Kouba
              rsmeral Ron Šmeral (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: