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/08 19:35:21 UTC

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

    [ 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