Aklakan commented on issue #2795: URL: https://github.com/apache/jena/issues/2795#issuecomment-2439739754
> @arne-bdt on second thought and considering the point about breaking a contract, I think this would be a better solution [...] I'd say computeIfAbsent is the right approach. The `uriToDT` and `classToDT` maps in TypeMapper are already ConcurrentHashMaps, so the issue with the double registration seems to be due to a race condition due to incorrect/sub-par use of the existing infrastructure, but there does not seem to be the need to require change to equals/hashCode of RDFDatatype. After all, the TypeMapper should ensure that later on reference equality works consistently. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
