Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005531 [Resin] minor always 09-19-13 04:51 09-23-13 10:46
Reporter cowan View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.36
Summary 0005531: @Observes is not called for Interfaces with generic
Description OmniFaces 1.6 is using two extensions that act upon JSF converters and validators. These observe the ProcessManagedBean event for resp. the javax.faces.convert.Converter and javax.faces.validator.Validator types (both are interfaces).

E.g.

protected void processValidators(@Observes ProcessManagedBean<Validator> validator)

The problem is that this method is never called on Resin, but it IS called on every other Java EE 6 implementation I tried it with (JBoss EAP 6.1, GlassFish 3.1.2, TomEE 1.5.3, Liberty 8.5.5, etc).

If I remove the generic parameter then Resin does call the method, e.g.

protected void processValidators(@Observes ProcessManagedBean validator)

And if the generic parameter is a class type instead of an interface type it works as well, e.g.

public class MyClass { ...}

protected void processValidators(@Observes ProcessManagedBean<MyClass> validator)

See https://code.google.com/p/omnifaces/issues/detail?id=183 [^] for more information about this particular issue.
Additional Information Rep by A Tijms
Attached Files

- Relationships

- Notes
(0006322)
ferg
09-23-13 10:46

ioc/0p68
 

- Issue History
Date Modified Username Field Change
09-19-13 04:51 cowan New Issue
09-23-13 10:46 ferg Note Added: 0006322
09-23-13 10:46 ferg Assigned To  => ferg
09-23-13 10:46 ferg Status new => closed
09-23-13 10:46 ferg Resolution open => fixed
09-23-13 10:46 ferg Fixed in Version  => 4.0.38


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker