![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
2.0.0.SP1 |
|
Assignee:
|
Jozef Hartinger
|
|
Components:
|
Extensions |
|
Created:
|
15/Jun/13 1:09 PM
|
|
Description:
|
When trying to add a qualifier to the list of observed qualifiers
void processObserverMethod(@Observes ProcessObserverMethod<? extends ConfigurableEvent<?>, ?> observerMethod) {
ObserverMethod<?> method = observerMethod.getObserverMethod();
Set<Annotation> qualifiers = method.getObservedQualifiers();
qualifiers.add(new AnnotationLiteral<SynchronousEvent>() {});
I get the following exception
Exception while loading the app : CDI definition failure:Exception List with 1 exceptions:
Exception 0 :
java.lang.UnsupportedOperationException
at java.util.AbstractCollection.add(AbstractCollection.java:252)
at ...EventExtension.processObserverMethod(EventExtension.java:36)
Same code works with Weld 1.1 on glassfish3 and jboss AS 7.2.0
|
|
Environment:
|
Glassfish 4.0
|
|
Project:
|
Weld
|
|
Priority:
|
Major
|
|
Reporter:
|
Daniele Gaffuri
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues