yegor256 / cactoos

Object-Oriented Java primitives, as an alternative to Google Guava and Apache Commons
https://www.cactoos.org
MIT License
734 stars 162 forks source link

build failed on java 21+ #1690

Closed h1alexbel closed 4 months ago

h1alexbel commented 10 months ago

URL(java.lang.String) in java.net.URL has been deprecated

victornoel commented 10 months ago

Hi @h1alexbel, can you point me to the deprecation notice? I cannot find it

william7b7d commented 7 months ago

FWIW I am able to build with JDK 17 and don't see any indication in that version of the java.net.URL class that the URL(String) constructor is deprecated. It does however look like the constructors in that class are deprecated in JDK 21, so it might be worth moving away from regardless. I'm guessing your IDE was using a JDK newer than 17 with that particular build you attempted @h1alexbel

h1alexbel commented 7 months ago

@william7b7d Yes, you are right on this, issue updated