a) It is about the temporary classloader I need so that I can load the
class and use ObjectStreamClass.lookup(clazz).getSerialVersionUID() to
find the SUID that Java would generate. For this I need to know the
application classpath. I am assuming (and it is working in a client's
Swing application) that the classloader instance passed to the
Aj.preProcess(...) is URLClassLoader and I am calling getURLs() to get
all the paths to search. I am passing null as the parent of my
temporary classloader as the class should not be loaded before passing
to the AspectJ weaver. Is this going to break in a J2EE environment?
Is there a better way to find the classpaths to search? I couldn't
find any temporary classloader implementation in your samples.