Petals BC EJB

Primitive types are not supported by the component

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.2.1
  • Fix Version/s: 1.3.1, 1.4.0
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    I have created an EJB 3.0.
    One of its method have a primitive type as a parameter.
    When I deploy the SU for this EJB, I am told the EJB is not compatible with the data-binding class.

    In fact, the component compares types at deployment.
    It tests an equality on Java types using "parameter.getClass()".
    This test fails with a primitive type.

    A mapping array should be used to bypass this error.
    As an example, transform "int" into" java.lang.Integer" for the test.
    Such a transformation is only required to make the test successful. It not required at runtime.

    Show
    I have created an EJB 3.0. One of its method have a primitive type as a parameter. When I deploy the SU for this EJB, I am told the EJB is not compatible with the data-binding class. In fact, the component compares types at deployment. It tests an equality on Java types using "parameter.getClass()". This test fails with a primitive type. A mapping array should be used to bypass this error. As an example, transform "int" into" java.lang.Integer" for the test. Such a transformation is only required to make the test successful. It not required at runtime.
  • Environment:
    All.

Activity

People

Dates

  • Created:
    Mon, 26 Jul 2010 - 16:10:48 +0200
    Updated:
    Thu, 26 Apr 2012 - 13:34:35 +0200
    Resolved:
    Mon, 11 Jul 2011 - 10:53:53 +0200