You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Paul Golick (JIRA)" <tu...@ws.apache.org> on 2006/05/02 21:03:46 UTC

[jira] Created: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
-------------------------------------------------------------------------------

         Key: TUSCANY-257
         URL: http://issues.apache.org/jira/browse/TUSCANY-257
     Project: Tuscany
        Type: Bug

  Components: Java SDO Tools  
 Environment: all
    Reporter: Paul Golick


Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-257:
------------------------------------

    Attachment: 257.patch

have used Paul's work and created 257.patch. please review

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-257
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-257
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>         Environment: all
>            Reporter: Paul Golick
>             Fix For: Java-SDO-Next
>
>         Attachments: 257.patch, newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-257?page=all ]

Jean-Sebastien Delfino updated TUSCANY-257:
-------------------------------------------

    Fix Version: Java-Mx
                     (was: Java-M1)
        Version: Java-Mx

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>          Key: TUSCANY-257
>          URL: http://issues.apache.org/jira/browse/TUSCANY-257
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Tools
>     Versions: Java-Mx
>  Environment: all
>     Reporter: Paul Golick
>      Fix For: Java-Mx
>  Attachments: newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Paul Golick (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-257?page=comments#action_12378468 ] 

Paul Golick commented on TUSCANY-257:
-------------------------------------

As an alternative to the patch I previously suggested:

The existing Interface2JavaGenerator.java file could be deleted so that it could be added to a new subproject such as one in a new subdirectory "Tuscany\java\sdo\java5tools" as shown by the files in the attached newFiles.jar  that is intended to be extracted from "Tuscany\java".
In combination with the delete of the existing Interface2JavaGenerator.java file and the addition of the new subproject, the current Tuscany\java\sdo\pom.xml file needs to be patched to add the new subproject as shown by the attached patch file, patchUpdated.txt.

Of course there is nothing significant about the java5tools directory name and a more appropriate name can be used if desired, with corresponding changes in the pom.xml files.


> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>          Key: TUSCANY-257
>          URL: http://issues.apache.org/jira/browse/TUSCANY-257
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Tools
>  Environment: all
>     Reporter: Paul Golick
>      Fix For: M1
>  Attachments: patchInterface2JavaGenerator.txt
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar resolved TUSCANY-257.
-------------------------------------

    Resolution: Fixed

resolved at rev 620782

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-257
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-257
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>         Environment: all
>            Reporter: Paul Golick
>             Fix For: Java-SDO-Next
>
>         Attachments: 257.patch, newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Paul Golick (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-257?page=all ]

Paul Golick updated TUSCANY-257:
--------------------------------

    Attachment: newFiles.jar
                patchUpdated.txt

attached files mentioned in previous comment.

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>          Key: TUSCANY-257
>          URL: http://issues.apache.org/jira/browse/TUSCANY-257
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Tools
>  Environment: all
>     Reporter: Paul Golick
>      Fix For: M1
>  Attachments: newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-257:
------------------------------------

    Fix Version/s:     (was: Java-SDO-Next)
                   Java-SDO-1.1

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-257
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-257
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>         Environment: all
>            Reporter: Paul Golick
>             Fix For: Java-SDO-1.1
>
>         Attachments: 257.patch, newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Paul Golick (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-257?page=all ]

Paul Golick updated TUSCANY-257:
--------------------------------

    Attachment: patchInterface2JavaGenerator.txt

The attached patch makes the file compatible with Java 1.4 by removing the code that handled methods with parameterized return types, a new feature of Java 1.5.

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>          Key: TUSCANY-257
>          URL: http://issues.apache.org/jira/browse/TUSCANY-257
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Tools
>  Environment: all
>     Reporter: Paul Golick
>  Attachments: patchInterface2JavaGenerator.txt
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-257:
-----------------------------------

    Patch Info: [Patch Available]

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-257
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-257
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SCA-Mx
>         Environment: all
>            Reporter: Paul Golick
>             Fix For: Java-SDO-Mx
>
>         Attachments: newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568064#action_12568064 ] 

Kelvin Goodson commented on TUSCANY-257:
----------------------------------------

Thanks Amita,  I took a scan of the patch file and it appears good.  The only thing I spotted is that we need a new java_1_4 maven profile that does not include the new project.

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-257
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-257
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>         Environment: all
>            Reporter: Paul Golick
>             Fix For: Java-SDO-Next
>
>         Attachments: 257.patch, newFiles.jar, patchInterface2JavaGenerator.txt, patchUpdated.txt
>
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-257) recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-257?page=all ]

Frank Budinsky updated TUSCANY-257:
-----------------------------------

    Fix Version: M1

Without using parameterized types, the whole Interface2JavaGenerator is uninteresting, so we can't take it out. We need to figure out a way to package Java5 dependent features (like this) in a way that makes them optional extensions for Java5 users.

Any suggestions, or help with that, would be much appreciated.

Thanks,
Frank.

> recently added file Interface2JavaGenerator.java is not compatible with JDK 1.4
> -------------------------------------------------------------------------------
>
>          Key: TUSCANY-257
>          URL: http://issues.apache.org/jira/browse/TUSCANY-257
>      Project: Tuscany
>         Type: Bug

>   Components: Java SDO Tools
>  Environment: all
>     Reporter: Paul Golick
>      Fix For: M1
>  Attachments: patchInterface2JavaGenerator.txt
>
> Interface2JavaGenerator.java uses java.lang.reflect.ParameterizedType and java.lang.reflect.Type that were added in Java 5 for generics.  It appears that the portion of Interface2JavaGenerator that uses ParameterizedType and Type is not needed for Java 1.4 classes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira