3 Replies Latest reply on Mar 21, 2006 2:05 PM by Adrian Brock

    aopc doesn't allow duplicate classes in classpath?

    ryan.campbell Expert

      The AOP compiler doesn't allow a class being woven to exist in the classpath more than once.

      On line 340 of org.jboss.aop.standalone.Compiler

      if (!classUrlFile.equals(infoFile))
       {
       System.out.println("[warning] Trying to compile " + info.getFile() + " and found it also within " + classUrl.getFile() + " will not proceed. ");
       return;
       }


      So if I have an org/jboss/Foo in my src, and org/jboss/Foo also happens to be in a jar in my classpath, it will be skipped. Why is this?