Update AntClassLoader.java
Shouldn't usage of pathComponents be threadsafe here and in other places where code iterates over pathComponents?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
this is ok to test
Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/Ant%20Github-PR-Linux/147/
Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/Ant%20Github-PR-Windows/153/
The way AntClassLoader wants to be used (and is used inside of Ant's codebase) is a single-threaded setup phase followed by potentially multithreaded use of if where its setup is no longer changed.
Personally I'd rather document this than try to sprinkle in a few synchronizeds.