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

session beans missing public

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.2.CR3
    • 1.0.1.CR1
    • Tests
    • None

      The following classes (Session beans) are missing public in their declarations, which causes 25 additional tests to fail (all in org.jboss.jsr299.tck.tests:
      context/passivating/broken/enterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptor/Espoo_Broken.java
      context/passivating/broken/enterpriseBeanWithNonPassivatingConstructorFieldInDecorator/Espoo_Broken.java
      context/passivating/broken/enterpriseBeanWithNonPassivatingInitializerInDecorator/Espoo_Broken.java
      context/passivating/broken/enterpriseBeanWithNonPassivatingInitializerParameterInInterceptor/Espoo_Broken.java
      context/passivating/broken/enterpriseBeanWithNonPassivatingInjectedFieldInDecorator/Espoo_Broken.java
      context/passivating/broken/enterpriseBeanWithNonSerializableIntializerMethod/Espoo_Broken.java
      context/passivating/broken/unserializableSimpleInjectedIntoPassivatingEnterpriseBean/Espoo_Broken.java
      context/passivating/Turku.java
      definition/qualifier/enterprise/EnglishBorderCollie.java
      definition/qualifier/enterprise/FamousCat.java
      definition/qualifier/enterprise/SkinnyHairlessCat.java
      definition/qualifier/enterprise/TameSkinnyHairlessCat.java
      event/broken/observer/notBusinessMethod/TibetanTerrier_Broken.java
      implementation/enterprise/broken/singletonWithRequestScope/Greyhound_Broken.java
      implementation/enterprise/broken/singletonWithSessionScope/IrishTerrier_Broken.java
      implementation/enterprise/broken/statelessWithApplicationScope/Dachshund_Broken.java
      implementation/enterprise/broken/statelessWithConversationScope/Boxer_Broken.java
      implementation/enterprise/broken/statelessWithRequestScope/Beagle_Broken.java
      implementation/enterprise/broken/statelessWithSessionScope/Bullmastiff_Broken.java
      implementation/enterprise/definition/Ape.java
      implementation/enterprise/definition/Giraffe.java
      implementation/enterprise/definition/Lion.java
      implementation/enterprise/definition/Monkey.java
      implementation/enterprise/definition/Pitbull.java
      implementation/enterprise/definition/PolarBear.java
      implementation/enterprise/newBean/GoldenRetriever.java
      implementation/enterprise/newBean/Lion.java
      implementation/enterprise/newBean/Order.java
      implementation/enterprise/newBean/WrappedEnterpriseBean.java
      inheritance/specialization/enterprise/broken/directlyExtendsSimpleBean/Tractor_Broken.java
      inheritance/specialization/simple/broken/extendejb/FarmEquipment.java
      policy/enterprise/EnabledEjb.java
      policy/enterprise/NotEnabledEjb.java

      Specification version & section:
      The EJB 3.1 Spec states the following in section "4.9.2 Session Bean Class" (and Ejb 3.0 Spec 4.6.2):

      The class must be defined as public, must not be final, and must not be abstract. The class must be a top level class.

      This clearly violates that rule. These classes are not public.

      Tests Affected (25):
      testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces
      testBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK
      testForEachEnterpriseBeanANewBeanExists
      testInjectionOfDependentPrimitiveProductIntoNormalBean
      testInjectionOfDependentSerializableProductIntoNormalBean
      testManagedBeanWithSerializableDecoratorOK
      testManagedBeanWithSerializableImplementationClassOK
      testManagedBeanWithSerializableInterceptorClassOK
      testNewBeanHasNoBeanELName
      testNewBeanHasNoObservers
      testNewBeanHasNoStereotypes
      testNewBeanIsDependentScoped
      testNewBeanIsHasOnlyNewBinding
      testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException
      testPassivatingScopeProducerMethodReturnsUnserializableObjectNotOk
      testPassivationCapableProducerFieldIsOK
      testPassivationCapableProducerMethodIsOK
      testPassivationOccurs
      testRemoteInterfacesAreNotInAPITypes
      testSingletonWithRequestScopeFails
      testSingletonWithSessionScopeFails
      testSpecializingClassDirectlyExtendsEnterpriseBean
      testSpecializingClassDirectlyExtendsSimpleBean
      testStatelessWithRequestScopeFails
      testStatelessWithSessionScopeFails

              Unassigned Unassigned
              lancea_jira Lance Andersen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: