uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hai-Son Nguyen (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-6054) JCasGen generating warnings by creating deprecated constructors
Date Sat, 08 Jun 2019 19:15:00 GMT

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

Hai-Son Nguyen commented on UIMA-6054:
--------------------------------------

Hi Marshall, 

I thought it over and I think it is better to mark the constructors as Deprecated. This patch
updates the javajet file to adds the Deprecated annotation if the class's default constructor
is deprecated.

I updated the Jg class to get the AnnotationBase type as this is the source of the deprecated
constructor (superclass to Annotation and DocumentAnnotation). And use it to check subsumption
to confirm the deprecated types.

> JCasGen generating warnings by creating deprecated constructors
> ---------------------------------------------------------------
>
>                 Key: UIMA-6054
>                 URL: https://issues.apache.org/jira/browse/UIMA-6054
>             Project: UIMA
>          Issue Type: Bug
>          Components: UIMA
>    Affects Versions: 3.0.2SDK
>            Reporter: Hai-Son Nguyen
>            Priority: Trivial
>         Attachments: patch-uima-6054v1.txt, patch-uima-6054v2.txt, patch-uima-6054v3.txt,
patch-uima-6054v4.txt
>
>
> The JCasGen process produces classes with a protected empty no parameter constructor.
> Base classes that have extended the Annotation class (org.apache.uima.jcas.tcas.Annotation)
are now getting warnings that the constructor Annotation() is deprecated.
> The constructor documentation states, "Never called. Disable default constructor" but
the presence of other constructors already serve this purpose. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message