You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jon Travis (JIRA)" <ji...@apache.org> on 2010/07/14 22:53:52 UTC

[jira] Created: (AVRO-597) Avro should be usable from JDK 1.5 programs

Avro should be usable from JDK 1.5 programs
-------------------------------------------

                 Key: AVRO-597
                 URL: https://issues.apache.org/jira/browse/AVRO-597
             Project: Avro
          Issue Type: Improvement
          Components: build, java
    Affects Versions: 1.3.3
            Reporter: Jon Travis
             Fix For: 1.4.0


Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 

The change to get this to work are pretty minimal.  
  - Removed @Override on interfaces, since 1.5 does not support this
  - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Commented: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Thiruvalluvan M. G. (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889221#action_12889221 ] 

Thiruvalluvan M. G. commented on AVRO-597:
------------------------------------------

Do we want to set the requirement to "Avro requires JDK 1.5 or later to build" or "Avro requires JRE 1.5 or later to run"? If the choose the former, the patch is good. But if we choose the latter, just replacing Array.copyOf() with ArrayUtil.copyOf() should be sufficient.

I personally choose the second requirement. That's if one needs to build or modify Avro, he/she needs JDK 1.6. But Avro jar file can be used with JRE 1.5.

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>             Fix For: 1.4.0
>
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Commented: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Christopher Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927680#action_12927680 ] 

Christopher Hunt commented on AVRO-597:
---------------------------------------

Any interest in applying this patch? I've just run into the problem not knowing that 1.6 was a requirement for Avro thus imposed then on my own build.

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Updated: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Jon Travis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Travis updated AVRO-597:
----------------------------

    Status: Patch Available  (was: Open)

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>             Fix For: 1.4.0
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Commented: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888589#action_12888589 ] 

Doug Cutting commented on AVRO-597:
-----------------------------------

@Override is in JDK 1.5, no?

http://download.oracle.com/docs/cd/E17476_01/javase/1.5.0/docs/api/java/lang/Override.html



> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>             Fix For: 1.4.0
>
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Commented: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Jon Travis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888593#action_12888593 ] 

Jon Travis commented on AVRO-597:
---------------------------------

Yes, but in 1.5 it could not be used to designate that a method implemented an interface method.  It was only used by subclasses.  

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>             Fix For: 1.4.0
>
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Updated: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-597:
------------------------------

           Status: Open  (was: Patch Available)
    Fix Version/s:     (was: 1.4.0)

> Do we want to set the requirement to "Avro requires JDK 1.5 or later to build" or "Avro requires JRE 1.5 or later to run"? 

I agree that running in Java 1.5 should be sufficient.

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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


[jira] Updated: (AVRO-597) Avro should be usable from JDK 1.5 programs

Posted by "Jon Travis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jon Travis updated AVRO-597:
----------------------------

    Attachment: avro-597-jdk15.patch

> Avro should be usable from JDK 1.5 programs
> -------------------------------------------
>
>                 Key: AVRO-597
>                 URL: https://issues.apache.org/jira/browse/AVRO-597
>             Project: Avro
>          Issue Type: Improvement
>          Components: build, java
>    Affects Versions: 1.3.3
>            Reporter: Jon Travis
>             Fix For: 1.4.0
>
>         Attachments: avro-597-jdk15.patch
>
>
> Our application needs to run on a 1.5 JDK, but Avro classes are built for 1.6. 
> The change to get this to work are pretty minimal.  
>   - Removed @Override on interfaces, since 1.5 does not support this
>   - Replace usage of Arrays.copyOf with our own version of it

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