apache / apache/camel-quarkus

paho-mqtt5 potentially requires `opens java.base/java.net=ALL-UNNAMED`

Open
#5,511 0 comments 0 reactions 0 assignees View on GitHub
area/paho-mqtt5 housekeeping
Dominant language
Java
Stars
302
Forks
232
Avg merge
1d 20h
Merged PRs (30d)
114

Description

### Description

I stumbled across this by accident. I may have misconfigured something when I was testing, but there's a code path in `org.eclipse.paho.mqttv5.client.internal.NetworkModuleService` that performs field reflection on JDK class `java.net.URI`.

https://github.com/eclipse/paho.mqtt.java/blob/f4e0db802a4433645ef011e711646a09ec9fae89/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/NetworkModuleService.java#L148-L157

It'd be good to establish whether users could potentially hit this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with org.eclipse.paho.mqttv5.client.internal.NetworkModuleService.java at lines 148-157 and inspect the reflection against java.net.URI. Reproduce the relevant Java module-access behavior and determine whether Camel Quarkus users can reach this path without the suggested JVM option. Done means the impact and required follow-up are confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.