diff --git a/impl/src/main/java/org/jboss/weld/event/ObserverMethodImpl.java b/impl/src/main/java/org/jboss/weld/event/ObserverMethodImpl.java index e1313db7d5c..348cea4e444 100644 --- a/impl/src/main/java/org/jboss/weld/event/ObserverMethodImpl.java +++ b/impl/src/main/java/org/jboss/weld/event/ObserverMethodImpl.java @@ -102,7 +102,7 @@ protected ObserverMethodImpl(final WeldMethod observer, final RIBe this.id = new StringBuilder().append(ID_PREFIX).append(ID_SEPARATOR)/*.append(manager.getId()).append(ID_SEPARATOR)*/.append(ObserverMethod.class.getSimpleName()).append(ID_SEPARATOR).append(declaringBean.getBeanClass().getName()).append(".").append(observer.getSignature()).toString(); this.bindings = new HashSet(observerMethod.getAnnotatedParameters(Observes.class).get(0).getMetaAnnotations(Qualifier.class)); Observes observesAnnotation = observerMethod.getAnnotatedParameters(Observes.class).get(0).getAnnotation(Observes.class); - this.reception = observesAnnotation.receive(); + this.reception = observesAnnotation.notifyObserver(); transactionPhase = TransactionPhase.IN_PROGRESS; this.newInjectionPoints = new HashSet>(); for (WeldInjectionPoint injectionPoint : Beans.getParameterInjectionPoints(null, observerMethod)) diff --git a/tests-arquillian/src/test/java/org/jboss/weld/tests/contexts/Cat.java b/tests-arquillian/src/test/java/org/jboss/weld/tests/contexts/Cat.java index 2816414324e..bad131b5767 100644 --- a/tests-arquillian/src/test/java/org/jboss/weld/tests/contexts/Cat.java +++ b/tests-arquillian/src/test/java/org/jboss/weld/tests/contexts/Cat.java @@ -11,7 +11,7 @@ public class Cat private Mouse mouse; - public void observe(@Observes(receive=IF_EXISTS) Mouse mouse) + public void observe(@Observes(notifyObserver=IF_EXISTS) Mouse mouse) { this.mouse = mouse; }