[
https://issues.apache.org/jira/browse/THRIFT-3946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15577692#comment-15577692
]
Jens Geyer commented on THRIFT-3946:
------------------------------------
Two questions:
1. Which one is more efficient?
2. Would it make sense to use {{clone()}} only when the {{(java5}} option is
specified, and use {{copyOf()}} otherwise?
> Java 1.5 compatibility broken for binary fields (java5 option)
> --------------------------------------------------------------
>
> Key: THRIFT-3946
> URL: https://issues.apache.org/jira/browse/THRIFT-3946
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Affects Versions: 0.9.3
> Reporter: Philip Hamer
> Labels: java5
> Attachments: thrift-3946-java5-binary-arrays-copyof.patch
>
>
> For binary fields, even with the java5 option (--gen java:java5), generated
> code uses "Arrays.copyOf", which is only available in Java 1.6+.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)