openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-486) OpenJPAEntityManager.createInstance(Class<T> cls) fails when T is an abstract class
Date Sun, 27 Apr 2008 22:42:55 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592689#action_12592689
] 

Patrick Linskey commented on OPENJPA-486:
-----------------------------------------

I believe that the correct behavior is to generate a concrete impl on the fly.


> OpenJPAEntityManager.createInstance(Class<T> cls) fails when T is an abstract class
> -----------------------------------------------------------------------------------
>
>                 Key: OPENJPA-486
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-486
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jpa
>            Reporter: Pinaki Poddar
>             Fix For: 1.1.0
>
>
> According to JavaDoc, OpenJPAEntityManager.createInstance() method 
>        public <T> T createInstance(Class<T> cls);
>      behaves as follows:
> "Create a new instance of type <code>cls</code>. If <code>cls</code>
is
>   an interface or an abstract class whose abstract methods follow the
>   JavaBeans convention, this method will create a concrete implementation
>   according to the metadata that defines the class"
> The method fails when T is an abstract class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message