ctubbsii commented on PR #48:
URL: 
https://github.com/apache/accumulo-classloaders/pull/48#issuecomment-3774194408

   > I think this could be resolved by not using the ServiceLoader and instead 
constructing URL objects using the constructor [URL(String context, String 
spec, URLStreamHandler 
hander)](https://github.com/openjdk/jdk/blob/jdk-17%2B35/src/java.base/share/classes/java/net/URL.java#L594).
 Looking at the 
[constructor](https://github.com/openjdk/jdk/blob/jdk-17%2B35/src/java.base/share/classes/java/net/URL.java#L515)
 that just takes a String for the URL, we would pass `null` for the context 
parameter.
   
   I like this suggestion, but it means we'd have to register a custom type 
adapter for GSON, which is frustrating.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to