[
https://issues.apache.org/jira/browse/AVRO-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094081#comment-14094081
]
Jurriaan Mous commented on AVRO-1047:
-------------------------------------
Can this patch be added to the next release? I have an Avro schema builder in
my grade build chain and now I can't distinguish unchecked warnings from my own
code which I want to keep clean of warnings and the schema generation.
Many javac versions don't work with "all" but do with "unchecked".
Maybe to be entirely sure @SuppressWarnings("all","unchecked") can be used
> Generated Java classes for specific records contain unchecked casts
> -------------------------------------------------------------------
>
> Key: AVRO-1047
> URL: https://issues.apache.org/jira/browse/AVRO-1047
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.6.3
> Reporter: Garrett Wu
> Attachments: AVRO-1047.patch, suppress-warnings.tar.gz
>
>
> The generated Java classes for specific records cause compiler warnings using
> Oracle/Sun Java 1.6, since it doesn't support @SuppressWarnings("all").
> Instead could we change it to @SuppressWarnings("unchecked")? Only
> "unchecked" and "deprecation" are mentioned Java Language Specification --
> the rest are specific to compiler vendors.
--
This message was sent by Atlassian JIRA
(v6.2#6252)