Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Not able to compile 0.23 - may be HADOOP-6614


Copy link to this message
-
Re: Not able to compile 0.23 - may be HADOOP-6614
HADOOP-7843 <https://issues.apache.org/jira/browse/HADOOP-7843> is filed to
address the issue branch-0.23

On Mon, Nov 21, 2011 at 8:52 AM, Praveen Sripati
<[EMAIL PROTECTED]>wrote:

> Hi,
>
> I got the latest code from branch-0.23 and got the below error. Think this
> is related to HADOOP-6614.
>
> [ERROR]
>
> /home/praveensripati/Hadoop/0.23/source/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java:[171,31]
> local variable workDir is accessed from within inner class; needs to be
> declared final
>
> The error is around this block
>
>    Runtime.getRuntime().addShutdownHook(new Thread() {
>        public void run() {
>          FileUtil.fullyDelete(workDir);
>        }
>      });
>
>
> JLS says
>
> http://java.sun.com/docs/books/jls/third_edition/html/classes.html
>
> Any local variable, formal method parameter or exception handler parameter
> used but not declared in an inner class must be declared final. Any local
> variable, used but not declared in an inner class must be definitely
> assigned (§16) before the body of the inner class.
>
> Should workDir be declared as final?
>
> Thanks,
> Praveen
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB