Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-154

Revert changes made in ControlBean.vm to accomodate IDEs that are not fully JDK5 compliant

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • V1Beta
    • v1m1
    • Build
    • None

    Description

      A change was made in ControlBean.vm to accomodate Eclipse 3.1 Mx that is not fully JDK5 compliant, specifically where their language processor doesn't support autoboxing. In this case, when a control method returns a primitive type, the generated control bean cannot be compiled by the IDE. A change was made to wrap an primitive types in their corresponding wrapper classes. This change should be reverted when Eclipse no long has this issue.

      When reverting this change look for the following comment in the code and following the instruction in the comment:

      ##Wrapping primitives with their corresponding wrapper class
      ##will not be necessary once Javelin and other IDEs become
      ##fully compliant with JDK5.
      ##In this case, we can replace the if statement below with:

        1. #if ($returnType == "void")
        2. Object rv = null;
        3. #else
        4. Object rv = retval;

      Attachments

        Activity

          People

            bryanche Bryan Che
            hoiflam Hoi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: