Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-698

Forge must try to box identifiers when they are primitives

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Final
    • 1.1.1.Final
    • Scaffold
    • None

      With TicketMonster (https://github.com/jboss-jdf/ticket-monster, tag 2.0.1.Final), when running the admin_layer.fsh script (without applying the patches), the class org.jboss.jdf.examples.view.SectionAllocationBean will contain the following uncompilable code

                return ejbProxy.findById(long.valueOf(value));
      

      (note the use of lowercase l in long)

      This is caused by the id field in the entity class being primitive rather than object. While this can be worked around easily (using a class is better than the primitive anyway), this still remains a bug.

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            marius.bogoevici Marius Bogoevici (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: