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

Decorated generic observer gets called twice in JRE 1.8

    XMLWordPrintable

Details

    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: