Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6236 Remove references to old JVMs (pre-Java 6) from the user guides
  3. DERBY-6459

Remove Class.forName calls that load JDBC driver from Derby samples/demos

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.11.1.1
    • Fix Version/s: 10.11.1.1
    • Component/s: Demos/Scripts
    • Labels:
      None

      Description

      Several of the Derby samples and demos call Class.forName to load the JDBC driver, although this is not necessary at Java SE 6 and later. Since at 10.11 we won't support versions of the platform earlier than JDK 6, these calls should be removed from the samples (and any mention of them removed from the accompanying documentation).

      There are calls to Class.forName that load other objects besides the driver; I assume these are still needed, but if not, they could be replaced with something more current.

        Attachments

        1. DERBY-6459-3.diff
          0.7 kB
          Camilla Haase
        2. DERBY-6459-2.diff
          66 kB
          Camilla Haase
        3. DERBY-6459.stat
          1.0 kB
          Camilla Haase
        4. DERBY-6459.diff
          67 kB
          Camilla Haase

        Issue Links

          Activity

            People

            • Assignee:
              chaase3 Camilla Haase
              Reporter:
              chaase3 Camilla Haase

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment