For the full story please go and read Class.forName caches defined class in the initiating class loader (and folow the links !).
So, these posts caused me to try and look how we behave in Apache Sling ... and of course hoped we would be clean.
Well, hmm, turns out we are not ... I found nine classes using Class.forName.
So we probably have to clean this up. Maybe or maybe not, these uses may be the cause for some strange failures we had over time. I cannot really tell. But I cannot exclude this possibility either.
BTW, this is what I did to find the classes:
$ find . -name "*.java" -exec fgrep -l Class.forName {} \;
No comments:
Post a Comment
If you have any doubts or questions, please let us know.