Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5050

BrokeredConnection could call setHoldability() without using reflection

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.8.1.2
    • Fix Version/s: 10.8.1.2
    • Component/s: JDBC
    • Labels:
      None

      Description

      BrokeredConnection uses reflection to call Connection.setHoldability() because that method wasn't available in Java 1.3. Since Derby doesn't support Java 1.3 anymore, we could call the method directly.

      1. d5050.diff
        1 kB
        Knut Anders Hatlen

        Activity

        Hide
        knutanders Knut Anders Hatlen added a comment -

        Committed revision 1071558.

        Show
        knutanders Knut Anders Hatlen added a comment - Committed revision 1071558.
        Hide
        knutanders Knut Anders Hatlen added a comment -

        Attached patch removes the reflection code and calls setHoldability() directly. Running regression tests...

        Show
        knutanders Knut Anders Hatlen added a comment - Attached patch removes the reflection code and calls setHoldability() directly. Running regression tests...

          People

          • Assignee:
            knutanders Knut Anders Hatlen
            Reporter:
            knutanders Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development