nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2633) Fix deprecation warnings when building Nutch master branch under JDK 10.0.2+13
Date Thu, 09 Aug 2018 17:42:00 GMT

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

ASF GitHub Bot commented on NUTCH-2633:
---------------------------------------

lewismc opened a new pull request #374: NUTCH-2633 Fix deprecation warnings when building
Nutch master branch…
URL: https://github.com/apache/nutch/pull/374
 
 
   Suggested fix for https://issues.apache.org/jira/browse/NUTCH-2633
   
   Some persisting deprecation warnings
   ```
       [javac] /usr/local/nutch/src/java/org/apache/nutch/plugin/PluginRepository.java:307:
warning: [deprecation] finalize() in Object has been deprecated
       [javac]   public void finalize() throws Throwable {
       [javac]               ^
       [javac] /usr/local/nutch/src/java/org/apache/nutch/indexer/IndexWriters.java:209: warning:
[deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]       entry.getValue().getIndexWriter().open(conf, name);
       [javac]                                        ^
   
       [javac] /usr/local/nutch/src/plugin/index-geoip/src/java/org/apache/nutch/indexer/geoip/GeoIPDocumentCreator.java:116:
warning: [deprecation] isAnonymousProxy() in Traits has been deprecated
       [javac]     doc.add("isAnonProxy", traits.isAnonymousProxy());    [javac] 
   
   /usr/local/nutch/src/plugin/indexer-cloudsearch/src/java/org/apache/nutch/indexwriter/cloudsearch/CloudSearchIndexWriter.java:89:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-csv/src/java/org/apache/nutch/indexwriter/csv/CSVIndexWriter.java:217:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-dummy/src/java/org/apache/nutch/indexwriter/dummy/DummyIndexWriter.java:44:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java:78:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-elastic-rest/src/java/org/apache/nutch/indexwriter/elasticrest/ElasticRestIndexWriter.java:100:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-rabbit/src/java/org/apache/nutch/indexwriter/rabbit/RabbitIndexWriter.java:68:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) throws IOException {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrIndexWriter.java:71:
warning: [deprecation] open(Configuration,String) in IndexWriter has been deprecated
       [javac]   public void open(Configuration conf, String name) {
       [javac]               ^
       [javac] 2 warnings
   
       [javac] /usr/local/nutch/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java:34:
warning: [deprecation] LanguageIdentifier in org.apache.tika.language has been deprecated
       [javac] import org.apache.tika.language.LanguageIdentifier;
       [javac]                                ^
       [javac] /usr/local/nutch/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java:161:
warning: [deprecation] LanguageIdentifier in org.apache.tika.language has been deprecated
       [javac]     LanguageIdentifier identifier = new LanguageIdentifier(titleandcontent);
       [javac]     ^
       [javac] /usr/local/nutch/src/plugin/language-identifier/src/java/org/apache/nutch/analysis/lang/HTMLLanguageParser.java:161:
warning: [deprecation] LanguageIdentifier in org.apache.tika.language has been deprecated
       [javac]     LanguageIdentifier identifier = new LanguageIdentifier(titleandcontent);
   
       [javac] /usr/local/nutch/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Ftp.java:170:
warning: [deprecation] finalize() in Object has been deprecated
       [javac]   protected void finalize() {
       [javac]                  ^
   
   ```
   
   Also, I've gone ahead and implemented a code cleanup where I saw it necessary. Some error
handing needs to be checked. We can discuss that on the PR once submitted. 
   
   Also note that not all file permissions were identical... you will see this with the changes
from chmod 755 --> 644

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Fix deprecation warnings when building Nutch master branch under JDK 10.0.2+13
> ------------------------------------------------------------------------------
>
>                 Key: NUTCH-2633
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2633
>             Project: Nutch
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 1.16
>         Environment: java version "10.0.2" 2018-07-17
> Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
> Nutch master 01c5d6ea17d7b60d25d4e65462b2a654f10680c3 (Thu Jul 26 14:55:38 2018 +0200)
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>            Priority: Major
>             Fix For: 1.16
>
>
> I just got around to making a dev upgrade to >= JDK 10.
> When building master using environment JDK
> I get several compile time deprecations which are reflected in the attached build log.

> Additionally, I get some issues with Ivy... see below
> {code}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.ivy.util.url.IvyAuthenticator (file:/Users/lmcgibbn/.ant/lib/ivy-2.3.0.jar)
to field java.net.Authenticator.theAuthenticator
> WARNING: Please consider reporting this to the maintainers of org.apache.ivy.util.url.IvyAuthenticator
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access
operations
> WARNING: All illegal access operations will be denied in a future release
> [ivy:resolve] :: problems summary ::
> [ivy:resolve] :::: ERRORS
> [ivy:resolve] 	unknown resolver null
> [ivy:resolve] 	unknown resolver null
> [ivy:resolve] 	unknown resolver null
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message