Derby
  1. Derby
  2. DERBY-4619

PropertySetter fails due to an empty jre/lib directory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.6.1.0
    • Component/s: Build tools
    • Labels:
      None

      Description

      If a JDK directory with an empty jre/lib directory is chosen by the old algorithm for detecting JDKs on the build system, the build fails because the classpath is set to the empty string instead of the default (stubs and the higher level JDK classpath).

      The situation causing this problem can arise if a JDK with extension libs is uninstalled. Depending on the packaging system, this may leave the jre/lib/ext directory behind.

        Activity

        Gavin made changes -
        Workflow jira [ 12508685 ] Default workflow, editable Closed status [ 12799693 ]
        Kristian Waagan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Kristian Waagan made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Issue & fix info [Patch Available]
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Resolution Fixed [ 1 ]
        Hide
        Kristian Waagan added a comment -

        Committed patch 1a to trunk with revision 936954.

        I don't expect more work on this issue.

        Show
        Kristian Waagan added a comment - Committed patch 1a to trunk with revision 936954. I don't expect more work on this issue.
        Kristian Waagan made changes -
        Issue & fix info [Patch Available]
        Kristian Waagan made changes -
        Attachment derby-4619-1a-fix_for_empty_libdir.diff [ 12442109 ]
        Hide
        Kristian Waagan added a comment -

        Attaching patch 1a, which casues null to be returned instead of the empty string. This will result in the default classpath (typically stubs plus the higher version JDK classpath) being used if the JDK isn't found, if possible.
        I also added a debug method to print debug information, and added a few more debug statements.

        Patch ready for review.

        Show
        Kristian Waagan added a comment - Attaching patch 1a, which casues null to be returned instead of the empty string. This will result in the default classpath (typically stubs plus the higher version JDK classpath) being used if the JDK isn't found, if possible. I also added a debug method to print debug information, and added a few more debug statements. Patch ready for review.
        Kristian Waagan made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Kristian Waagan created issue -

          People

          • Assignee:
            Kristian Waagan
            Reporter:
            Kristian Waagan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development