Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-616

Literal classes missing in archive of PassivationIdTest

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.0.Final, 2.0.5.Final
    • 2.0.4.Final
    • None
    • None
    • Weld 3.0.3, Weblogic 12.3.1.0.0, Linux x64

    Description

      For case org.jboss.cdi.tck.tests.extensions.beanManager.PassivationIdTest, deployment failed as:
      >>>>>
      Caused By: java.lang.ClassNotFoundException: org.jboss.cdi.tck.literals.RetentionLiteral
      ...
      <<<<<
      I found two literal classes - TargetLiteral.class and RetentionLiteral.class are missing in generated archive. the relevant cdi-tck code is like:
      >>>>>>
      package org.jboss.cdi.tck.tests.extensions.beanManager;
      ...
      public class PassivationIdTest extends AbstractTest {

      @Deployment
      public static WebArchive createTestArchive()

      { return new WebArchiveBuilder().withTestClassPackage(PassivationIdTest.class) .withExtension(AfterBeanDiscoveryObserver.class).build(); }

      <<<<<<
      And if I do a little change as following, then it works well:
      >>>>>>
      public static WebArchive createTestArchive()

      { return new WebArchiveBuilder().withTestClassPackage(PassivationIdTest.class) + .withClasses(RetentionLiteral.class, TargetLiteral.class) .withExtension(AfterBeanDiscoveryObserver.class).build(); }

      <<<<<<
      So, could you help to add this for us?

      Thanks in advance.
      -X.O.

      Attachments

        Issue Links

          Activity

            People

              manovotn Matěj Novotný
              sunxiaoou sun xiaoou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty