Community
Participate
Working Groups
I created a META-INF/aop.xml file, but the definitions weren't getting picked up by the loadtime5 support. The following change in ClassLoaderWeavingAdaptor.java fixed the problem: private void registerDefinitions(final BcelWeaver weaver, final ClassLoader loader) { - Enumeration xmls = loader.getResources("/META-INF/aop.xml"); + Enumeration xmls = loader.getResources("META-INF/aop.xml"); i.e., removing the leading slash fixed the problem. I will also attach my version of the file that loads the default Xlint properties (I needed that to avoid a lot of warnings) and that adds a few comments & some error handling.
Created attachment 20647 [details] updated ClassLoaderWeavingAdaptor file
i believe this change is already in (see constant AOP_XML in ClassLoaderWeavingAdaptor).