hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-161) Yarn Common has multiple compiler warnings for unchecked operations
Date Tue, 16 Oct 2012 16:29:03 GMT

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

Chris Nauroth commented on YARN-161:
------------------------------------

Here are the warnings:

{code}
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[229,15]
[unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11]
[unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[228,11]
[unchecked] unchecked conversion
found   : org.apache.hadoop.yarn.state.StateMachineFactory
required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[253,9]
[unchecked] unchecked call to ApplicableSingleOrMultipleTransition(STATE,EVENTTYPE,org.apache.hadoop.yarn.state.StateMachineFactory.Transition<OPERAND,STATE,EVENTTYPE,EVENT>)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableSingleOrMultipleTransition
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11]
[unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[251,11]
[unchecked] unchecked conversion
found   : org.apache.hadoop.yarn.state.StateMachineFactory
required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11]
[unchecked] unchecked call to StateMachineFactory(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>,boolean)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[276,11]
[unchecked] unchecked conversion
found   : org.apache.hadoop.yarn.state.StateMachineFactory
required: org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[331,23]
[unchecked] unchecked call to apply(org.apache.hadoop.yarn.state.StateMachineFactory<OPERAND,STATE,EVENTTYPE,EVENT>)
as a member of the raw type org.apache.hadoop.yarn.state.StateMachineFactory.ApplicableTransition
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/state/StateMachineFactory.java:[472,60]
[unchecked] unchecked conversion
found   : java.util.Iterator
required: java.util.Iterator<STATE>
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RpcFactoryProvider.java:[77,37]
[unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a
member of the raw type java.lang.Class
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/YarnRemoteExceptionFactoryProvider.java:[55,37]
[unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a
member of the raw type java.lang.Class
[WARNING] /Users/chris/git/hadoop-common/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/factory/providers/RecordFactoryProvider.java:[62,37]
[unchecked] unchecked call to getMethod(java.lang.String,java.lang.Class<?>...) as a
member of the raw type java.lang.Class
{code}

On OpenJDK 1.6.0_24, these are treated as compilation errors, so they fail the build.

{code}
cnauroth@ubuntu:pts/1] ~                                                                 
                         
> uname -a
Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64
GNU/Linux
[cnauroth@ubuntu:pts/1] ~                                                                
                          
> javac -version
javac 1.6.0_24
[cnauroth@ubuntu:pts/1] ~                                                                
                          
> java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
{code}

                
> Yarn Common has multiple compiler warnings for unchecked operations
> -------------------------------------------------------------------
>
>                 Key: YARN-161
>                 URL: https://issues.apache.org/jira/browse/YARN-161
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>
> The warnings are in classes StateMachineFactory, RecordFactoryProvider, RpcFactoryProvider,
and YarnRemoteExceptionFactoryProvider.  OpenJDK 1.6.0_24 actually treats these as compilation
errors, causing the build to fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message