nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tejas Patil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-1274) Fix [cast] javac warnings
Date Sat, 12 Jan 2013 05:30:13 GMT

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

Tejas Patil commented on NUTCH-1274:
------------------------------------

Hi Lewis,
I took a fresh checkout of trunk and applied the patch to it. I could not see any of the [cast]
flags that you pointed out ([build log|http://pastebin.com/gxTJDXMj]). My guess is that our
java versions are different. Is this the right Java version:
{noformat}java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
{noformat}

This is the [latest|http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html]
Oracles' Java version currently available. From [Jenkins|https://builds.apache.org/job/Nutch-trunk/],
I gather that JDK 1.7 is used for nutch builds but not sure which bundle is used (OpenJdk
or Oracle). Please let me know the same so that I would continue ahead.
                
> Fix [cast] javac warnings
> -------------------------
>
>                 Key: NUTCH-1274
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1274
>             Project: Nutch
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: nutchgora, 1.5
>            Reporter: Lewis John McGibbney
>            Assignee: Tejas Patil
>            Priority: Minor
>             Fix For: 1.7
>
>         Attachments: NUTCH-1274-2.x.patch, NUTCH-1274-trunk.patch
>
>
> A typical example of this is
> {code}
> trunk/src/java/org/apache/nutch/crawl/CrawlDatum.java:460: warning: [cast] redundant
cast to int
>     [javac]         res ^= (int)(signature[i] << 24 + signature[i+1] << 16
+ 
> {code}
> these should all be fixed by replacing with the correct implementations.

--
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