[
https://issues.apache.org/jira/browse/THRIFT-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124323#comment-13124323
]
Rajika Kumarasiri commented on THRIFT-633:
------------------------------------------
[rajika@localhost ~]$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
Actual issue is, the generated java code contains @Override annotations, which
my IDE complains saying "@Override is not allowed when implementing interface
method" due to the @Override annotation. I'll attach the idl.
Rajika
Rajika
> Generated code has @Override annotations which won't compile using Apple's
> JDK 1.5
> ----------------------------------------------------------------------------------
>
> Key: THRIFT-633
> URL: https://issues.apache.org/jira/browse/THRIFT-633
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Environment: Mac OS X Tiger/Leopard JDK 1.5
> Reporter: Mathias Herberts
> Assignee: Jake Farrell
>
> Apple's JDK 1.5 does not recognize @Override annotation. Tests fail with
> error:
> [javac]
> /private/var/tmp/thrift-trunk/lib/java/gen-java/thrift/test/ComparableUnion.java:251:
> method does not override a method from its superclass
> [javac] @Override
> [javac] ^
--
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