Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1295

Entity component doesnt ensure that the the identifier field is accessible.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0.GA, 1.2.1.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      The Entity component uses reflection to get the identifier of that @Entity it represents. If the identifier is a private/protected @Id annotated field Entity.getIdentifier will fail with an IllegalAccessException.

      The code should be updated to call setAccessible(true) for each member / method that could be private/protected that will be accessed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gavin.king Gavin King
                Reporter:
                cmrudd Chris Rudd
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: