You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (Created) (JIRA)" <ji...@apache.org> on 2012/03/16 17:41:40 UTC

[jira] [Created] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
----------------------------------------------------------------------------------------

                 Key: OPENJPA-2156
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 2.2.0, 2.3.0
            Reporter: Rick Curtis
            Assignee: Rick Curtis
             Fix For: 2.3.0, 2.2.1


In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231367#comment-13231367 ] 

Rick Curtis commented on OPENJPA-2156:
--------------------------------------

Committed code changes to trunk and 2.2.x.
                
> Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>              Labels: sourcecode
>             Fix For: 2.3.0, 2.2.1
>
>
> In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234835#comment-13234835 ] 

Rick Curtis commented on OPENJPA-2156:
--------------------------------------

Also added support for generating a final class to trunk and 2.2.1.
                
> Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>              Labels: sourcecode
>             Fix For: 2.3.0, 2.2.1
>
>
> In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Posted by "Rick Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251781#comment-13251781 ] 

Rick Curtis commented on OPENJPA-2156:
--------------------------------------

> I thought it was "java.lang.*" that was ignored. 
You are correct that using java.lang.* classes won't generate an import... but that is a problem for some java.lang classes. ie: Map.


                
> Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>              Labels: sourcecode
>             Fix For: 2.3.0, 2.2.1
>
>
> In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Posted by "Pinaki Poddar (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251724#comment-13251724 ] 

Pinaki Poddar commented on OPENJPA-2156:
----------------------------------------

> we incorrectly ignore adding ClassNames who's package starts with java.util 
where did you see that? I thought it was "java.lang.*" that was ignored.
                
> Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>              Labels: sourcecode
>             Fix For: 2.3.0, 2.2.1
>
>
> In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (OPENJPA-2156) Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.

Posted by "Rick Curtis (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Curtis closed OPENJPA-2156.
--------------------------------

    Resolution: Fixed
    
> Fix bug in org.apache.openjpa.persistence.util.SourceCode to correctly generate imports.
> ----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2156
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2156
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Rick Curtis
>            Assignee: Rick Curtis
>              Labels: sourcecode
>             Fix For: 2.3.0, 2.2.1
>
>
> In SourceCode we incorrectly ignore adding ClassNames who's package starts with java.util to the collection of imports. For example, when a generated source file uses a java.util.Map, an import won't be created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira