Sebastian Nagel created NUTCH-3181:
--------------------------------------

             Summary: Java 20 deprecates all constructors of the class 
java.net.URL
                 Key: NUTCH-3181
                 URL: https://issues.apache.org/jira/browse/NUTCH-3181
             Project: Nutch
          Issue Type: Improvement
    Affects Versions: 1.23
            Reporter: Sebastian Nagel
             Fix For: 1.23


Java 20 deprecates all constructors of the class java.net.URL, see:
 * 
[https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/URL.html#constructor-deprecation]
 * [https://bugs.openjdk.org/browse/JDK-8294241]

For now, it's a deprecation without deadline. Java 26 ([URL| 
https://docs.oracle.com/en/java/javase/26/docs/api/java.base/java/net/URL.html) 
still supports the deprecated constructors.

There are subtle differences between the URL and URI classes, especially how 
relative URLs are resolved. Nutch should make use of migrations done in
- 
[crawler-commons#522|https://github.com/crawler-commons/crawler-commons/issues/522]
- [stormcrawler#1597|https://github.com/apache/stormcrawler/issues/1597]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to