Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004590 [Resin] minor always 06-02-11 11:57 06-02-11 18:38
Reporter reza View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.19
Summary 0004590: EJB Code Generation Error with Generics
Description The following EJB causes a code generation error:

================================================================================
@Stateless
public class FooService {
  public <T extends Serializable> List<T> find(Class<T> tcmClass,
      Collection<Integer> ids) {
    return Collections.emptyList();
  }

  public <T> List<T> findAll(Class<T> tcmClass) {
    return Collections.emptyList();
  }
}
================================================================================

The error is below:
================================================================================
11-06-02 14:49:18.813] {http://*:8080-2} [^] /home/reza/workspace/resin/webapps/ejb-generics/WEB-INF/work/ejb/qa/FooService__StatelessProxy.java:13: name clash: <T_0>findAll(java.lang.Class<T_0>) in qa.FooService__StatelessProxy<T> and <T>findAll(java.lang.Class<T>) in qa.FooService have the same erasure, yet neither overrides the other
                                          public class FooService__StatelessProxy<T>
================================================================================

This issue was originally reported by Harald Wellmann: http://forum.caucho.com/showthread.php?t=27905. [^]
Additional Information
Attached Files

- Relationships

- Notes
(0005291)
ferg
06-02-11 18:38

ejb/50b1
 

- Issue History
Date Modified Username Field Change
06-02-11 11:57 reza New Issue
06-02-11 18:38 ferg Note Added: 0005291
06-02-11 18:38 ferg Assigned To  => ferg
06-02-11 18:38 ferg Status new => closed
06-02-11 18:38 ferg Resolution open => fixed
06-02-11 18:38 ferg Fixed in Version  => 4.0.19


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