glassfish
  1. glassfish
  2. GLASSFISH-121

new assertion: getTransaction() must not be called for JTA entity manager

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.0pe
    • Fix Version/s: not determined
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      121

      Description

      Secion 3.1.1 of Java Persistence API 1.0 PFD says the following:

      /**

      • Return the resource-level transaction object.
      • The EntityTransaction instance may be used serially to
      • begin and commit multiple transactions.
      • @return EntityTransaction instance
      • @throws IllegalStateException if invoked on a JTA
      • EntityManager or an EntityManager that has been closed.
        */
        public EntityTransaction getTransaction();

      Verifier should report error if a program uses getTransaction() on a JTA entity
      manager.

        Activity

        Sanjeeb Sahoo created issue -
        Hide
        Sanjeeb Sahoo added a comment -

        Difficult to do without doing call flow analysis. This should be implemented
        inside NB environment. Marking it as an RFE.
        – Sahoo

        Show
        Sanjeeb Sahoo added a comment - Difficult to do without doing call flow analysis. This should be implemented inside NB environment. Marking it as an RFE. – Sahoo
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 121 31725
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.
        Tom Mueller made changes -
        Fix Version/s not determined [ 11149 ]
        Fix Version/s 9.0pe [ 10971 ]

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Sanjeeb Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: