Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[miele] MulticastSocket deprecation warnings #14198

Closed
jlaur opened this issue Jan 9, 2023 · 0 comments · Fixed by #14199
Closed

[miele] MulticastSocket deprecation warnings #14198

jlaur opened this issue Jan 9, 2023 · 0 comments · Fixed by #14199
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@jlaur
Copy link
Contributor

jlaur commented Jan 9, 2023

With Java 17 some MulticastSocket methods used by the multicast implementation are deprecated:

[WARNING] bundles\org.openhab.binding.miele\src\main\java\org\openhab\binding\miele\internal\handler\MieleBridgeHandler.java:[331,38] The method setInterface(java.net.InetAddress) from the type java.net.MulticastSocket is deprecated since version 14
[WARNING] bundles\org.openhab.binding.miele\src\main\java\org\openhab\binding\miele\internal\handler\MieleBridgeHandler.java:[332,38] The method joinGroup(java.net.InetAddress) from the type java.net.MulticastSocket is deprecated since version 14       
[WARNING] bundles\org.openhab.binding.miele\src\main\java\org\openhab\binding\miele\internal\handler\MieleBridgeHandler.java:[333,38] The method joinGroup(java.net.InetAddress) from the type java.net.MulticastSocket is deprecated since version 14       
[WARNING] bundles\org.openhab.binding.miele\src\main\java\org\openhab\binding\miele\internal\handler\MieleBridgeHandler.java:[406,42] The method leaveGroup(java.net.InetAddress) from the type java.net.MulticastSocket is deprecated since version 14      
[WARNING] bundles\org.openhab.binding.miele\src\main\java\org\openhab\binding\miele\internal\handler\MieleBridgeHandler.java:[407,42] The method leaveGroup(java.net.InetAddress) from the type java.net.MulticastSocket is deprecated since version 14

The binding should be refactored to use current methods which are not deprecated:

@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Jan 9, 2023
@jlaur jlaur self-assigned this Jan 9, 2023
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 9, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 9, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 10, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 10, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 10, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
jlaur added a commit to jlaur/openhab-addons that referenced this issue Jan 10, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@jlaur jlaur changed the title [miele] Improve multicast implementation [miele] MulticastSocket deprecation warnings Jan 10, 2023
lolodomo pushed a commit that referenced this issue Jan 14, 2023
Fixes #14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this issue Feb 28, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
renescherer pushed a commit to renescherer/openhab-addons that referenced this issue Mar 23, 2023
Fixes openhab#14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
kaikreuzer pushed a commit that referenced this issue May 6, 2023
Fixes #14198

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant