Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004514 [Resin] minor always 04-19-11 14:01 04-26-11 11:05
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.18 Product Version
  Product Build
Summary 0004514: Resin proxy generations breaks for generics
Description
@Local
public interface SchoolDao {
        ...

    public <T extends BaseEntity> void refresh(T entity);

________

@Stateless
public class SchoolJpaDao implements SchoolDao {
      ...

    @Override
    public <T extends BaseEntity> void refresh(T entity) {
        if (entityManager.contains(entity)) {
            entityManager.refresh(entity);
        }
    }

This causes Resin proxy generation to fail as follows:


     [java] [11-04-19 13:46:47.240] {main} Compiling org/cdisource/examples/taskcrud/bean/SchoolJpaDao__StatelessProxy.java
     [java] [11-04-19 13:46:47.836] {main} WebApp[production/webapp/default/taskcrud] fail
     [java] [11-04-19 13:46:47.836] {main} /Users/rick/tools/resin/resin-4.0.17/webapps/taskcrud/WEB-INF/work/ejb/org/cdisource/examples/taskcrud/bean/SchoolJpaDao__StatelessProxy.java:114: cannot find symbol
     [java] symbol : class T_0
     [java] location: class org.cdisource.examples.taskcrud.bean.SchoolJpaDao__StatelessProxy<T>
     [java] public void refresh(T_0 a0)
     [java] ^
     [java] Note: /Users/rick/tools/resin/resin-4.0.17/webapps/taskcrud/WEB-INF/work/ejb/org/cdisource/examples/taskcrud/bean/SchoolJpaDao__StatelessProxy.java uses unchecked or unsafe operations.
     [java] Note: Recompile with -Xlint:unchecked for details.
     [java] 1 error
     [java] [11-04-19 13:46:47.837] {main} Host[production/host/default] active
Steps To Reproduce
Additional Information To reproduce:

http://code.google.com/p/jee6-cdi/wiki/UsingKnappSackArchetypeWithResin [^]

Comment out @Stateless DataRepositoryProducer.

//@Stateless
public class DataRepositoryProducer {
Attached Files

- Relationships

- Notes
(0005201)
ferg
04-26-11 11:05

ejb/40c6
 

- Issue History
Date Modified Username Field Change
04-19-11 14:01 rickHigh New Issue
04-26-11 11:05 ferg Note Added: 0005201
04-26-11 11:05 ferg Assigned To  => ferg
04-26-11 11:05 ferg Status new => closed
04-26-11 11:05 ferg Resolution open => fixed
04-26-11 11:05 ferg Fixed in Version  => 4.0.18
04-26-11 11:05 ferg Description Updated


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