Skip to content

obermuhlner/MemoryClassLoader: remove deprecation warning about URL constructor - #8

Closed
dilyanpalauzov wants to merge 1 commit into
dalgwen:java223/mainfrom
dilyanpalauzov:j223_5_url_ctor_warning
Closed

obermuhlner/MemoryClassLoader: remove deprecation warning about URL constructor#8
dilyanpalauzov wants to merge 1 commit into
dalgwen:java223/mainfrom
dilyanpalauzov:j223_5_url_ctor_warning

Conversation

@dilyanpalauzov

Copy link
Copy Markdown

[WARNING] …/bundles/org.openhab.automation.java223/src/3rdparty/java/ch/obermuhlner/scriptengine/java/MemoryClassLoader.java:[43,27] The constructor java.net.URL(java.lang.String) is deprecated since version 20

This is the same as eobermuhlner/java-scriptengine#20.

@dalgwen

dalgwen commented Sep 17, 2025

Copy link
Copy Markdown
Owner

The reason I didn't get rid of this deprecation warning before is because I want to stick the 3rdparty/obermuhlner sources as clause to the original as possible (not completely possible, but nonetheless)
So, if your PR upstream is accepted, I will gladly merge this here.

Thanks,

@dilyanpalauzov

Copy link
Copy Markdown
Author

In the repository https://github.com/openhab/openhab-addons I find no place, where the constructor of URL is invoked.

@dalgwen

dalgwen commented Jul 12, 2026

Copy link
Copy Markdown
Owner

I finally decided to include this in the PR against the official repository, because it is stuck upstream.

@dalgwen dalgwen closed this Jul 12, 2026
@dilyanpalauzov
dilyanpalauzov deleted the j223_5_url_ctor_warning branch July 28, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants