uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-3985) Incorrect use of @Override
Date Sun, 10 Aug 2014 20:14:12 GMT

    [ https://issues.apache.org/jira/browse/UIMA-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092187#comment-14092187

Richard Eckart de Castilho commented on UIMA-3985:

I thought we are on Java 6 now and @override for methods inherited from interface is valid



> Incorrect use of @Override
> --------------------------
>                 Key: UIMA-3985
>                 URL: https://issues.apache.org/jira/browse/UIMA-3985
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.6.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Trivial
>             Fix For: 2.6.1SDK
> There are 2 instance in AnalysisEngineDescription_implTest which have code which declares
an @Override on a method signature inherited from a superinterface (not a superclass). The
Java Language Spec ( http://docs.oracle.com/javase/specs/jls/se5.0/html/interfaces.html#
) says this will cause a compile-time error to do this.  For some reason, this hasn't been
observed as an error, until today, when Eclipse started flagging it as one.  The fix is simple
- remove the @Override.  

This message was sent by Atlassian JIRA

View raw message