1 Reply Latest reply: Apr 29, 2010 10:39 AM by Ales Justin RSS

    Test Classes in main artifacts?

    Andrew Rubinger Master

      Hi guys:

       

      Came across this today in jboss-cl:

       

      [alr@localhost ~]$ jar -tvf ~/.m2/repository/org/jboss/cl/jboss-classloader/2.2.0.Alpha4/jboss-classloader-2.2.0.Alpha4.jar |grep test
           0 Fri Mar 12 08:47:08 GMT-05:00 2010 org/jboss/classloader/test/
           0 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/
        3019 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/IsolatedClassLoaderTest.class
         994 Fri Mar 12 08:47:08 GMT-05:00 2010 org/jboss/classloader/test/support/IsolatedClassLoaderTestHelper$1.class
       14268 Fri Mar 12 08:47:08 GMT-05:00 2010 org/jboss/classloader/test/support/IsolatedClassLoaderTestHelper.class
        1155 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$1.class
        1836 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$2.class
        1604 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$3.class
        1814 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$4.class
        1919 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$5.class
        1994 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$6.class
        1763 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$7.class
        1015 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper$8.class
        4854 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderHelper.class
        1192 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderPolicy$1.class
        9775 Fri Mar 12 08:47:10 GMT-05:00 2010 org/jboss/classloader/test/support/MockClassLoaderPolicy.class

       

      Similar stuff in kernel:

       

      [alr@localhost ~]$ jar -tvf /home/alr/.m2/repository/org/jboss/kernel/jboss-kernel/2.2.0.Alpha9/jboss-kernel-2.2.0.Alpha9.jar |grep test
           0 Fri Mar 12 08:14:10 GMT-05:00 2010 org/jboss/test/
           0 Fri Mar 12 08:14:10 GMT-05:00 2010 org/jboss/test/kernel/
           0 Fri Mar 12 08:14:10 GMT-05:00 2010 org/jboss/test/kernel/junit/
        8384 Fri Mar 12 08:14:10 GMT-05:00 2010 org/jboss/test/kernel/junit/MicrocontainerTest.class
        9717 Fri Mar 12 08:14:10 GMT-05:00 2010 org/jboss/test/kernel/junit/MicrocontainerTestDelegate.class

       

      These refer out to stuff in jboss-test (AbstractTestDelegate) and can lead to NCDFE when loaded.  I assume they shouldn't be part of these artifacts?

       

      S,

      ALR