You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/11/12 22:55:18 UTC

[jira] [Commented] (THRIFT-2227) Thrift compiler generates spurious warnings with Xlint

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

Hudson commented on THRIFT-2227:
--------------------------------

SUCCESS: Integrated in Thrift #940 (See [https://builds.apache.org/job/Thrift/940/])
THRIFT-2227 Thrift compiler generates spurious warnings with Xlint (jensg: rev 4ccc24f6214f3041af5e564322382df1d84bf935)
* compiler/cpp/src/generate/t_java_generator.cc


> Thrift compiler generates spurious warnings with Xlint
> ------------------------------------------------------
>
>                 Key: THRIFT-2227
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2227
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.9
>            Reporter: Andrew Gaul
>            Priority: Minor
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2227.patch
>
>
> Sample warnings:
> {{noformat}}
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[45,44] found raw type: org.apache.thrift.scheme.IScheme
>   missing type arguments for generic class org.apache.thrift.scheme.IScheme<T>
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[45,107] found raw type: org.apache.thrift.scheme.IScheme
>   missing type arguments for generic class org.apache.thrift.scheme.IScheme<T>
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[281,37] unchecked cast
>   required: java.util.List<java.lang.Long>
>   found:    java.lang.Object
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[431,52] unchecked call to read(org.apache.thrift.protocol.TProtocol,T) as a member of the raw type org.apache.thrift.scheme.IScheme
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[435,53] unchecked call to write(org.apache.thrift.protocol.TProtocol,T) as a member of the raw type org.apache.thrift.scheme.IScheme
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[501,30] getScheme() in com.maginatics.raptor.metadata.thrift.Sid.SidStandardSchemeFactory implements <S>getScheme() in org.apache.thrift.scheme.SchemeFactory
>   return type requires unchecked conversion from com.maginatics.raptor.metadata.thrift.Sid.SidStandardScheme to S
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[597,27] getScheme() in com.maginatics.raptor.metadata.thrift.Sid.SidTupleSchemeFactory implements <S>getScheme() in org.apache.thrift.scheme.SchemeFactory
>   return type requires unchecked conversion from com.maginatics.raptor.metadata.thrift.Sid.SidTupleScheme to S
> [WARNING] /home/gaul/work/cloud/common-thrift/target/generated-sources/thrift/com/maginatics/raptor/metadata/thrift/Sid.java:[38,8] serializable class com.maginatics.raptor.metadata.thrift.Sid has no definition of serialVersionUID
> {{noformat}}



--
This message was sent by Atlassian JIRA
(v6.1#6144)