Hi everyone, I've been working with the URLConnection class for some time now and have noticed several interesting things.
1. Unsafe publication of java.net.URLConnection.factory static field (it looks very similar to [1]) 2. Benign race condition in java.net.URLConnection.getContentHandler on java.net.URLConnection.handlers static field 3. Handlers produced by factory are not cached in the handlers field (I don't know whether it was done deliberately or not, but I couldn't find any explanation on it in the javadoc. Moreover the behaviour of the factory in the URL class is different. It caches whatever is produced by the factory there). So which of these do you think are real issues worth fixing? ------------------------------------------------------------ [1] The same thing was noticed by Peter Levart here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-July/027534.html -Pavel