jsr338-experts@jpa-spec.java.net

[jsr338-experts] Method signature in EntityGraph.addSubclassSubgraph()

From: Pinaki Poddar <ppoddar_at_us.ibm.com>
Date: Wed, 24 Apr 2013 12:04:40 -0700

Following method signature is defined in EntityGraph<T> interface

    /**
     * Add additional attributes to this entity graph that
     * correspond to attributes of subclasses of this EntityGraph's
     * entity type. ...
    **/
public <T> Subgraph<? extends T> addSubclassSubgraph(Class<? extends T>
type);


Should the correct signature be
   public <S extends T> Subgraph<S> addSubclassSubgraph(Class<S> type);


Otherwise, the current signature <T> will hide
Regards --

Pinaki Poddar
Chair, Apache OpenJPA Project http://openjpa.apache.org/
JPA Expert Group Member
Application & Integration Middleware