Commons Email
  1. Commons Email
  2. EMAIL-112

DataSourceFileResolverTest fails under IBM JDK 1.4 and 1.6 running on Windows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Labels:
    • Environment:

      Windows 7x64,
      java version "1.7.0"
      Java(TM) SE Runtime Environment (build pwi3270-20110906_01)
      IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 x86-32 20110810_88604 (JIT enabled, AOT enabled)
      J9VM - R26_Java726_GA_20110810_1208_B88592

      Description

      assertNull(toByteArray(dataSourceResolver.resolve("/images/does-not-exist.gif")));
      fails because IBM JDK under Windows assumes "/xxx" NOT to be absolute.

      1. EMAIL-112.patch
        1 kB
        Peter Kofler

        Activity

        Hide
        Peter Kofler added a comment -

        change the name of the file, so it does not exist.

        Show
        Peter Kofler added a comment - change the name of the file, so it does not exist.
        Hide
        Peter Kofler added a comment -

        changed the name of the non existing test file. this is no fix of the problem? in IBM JDK, but the tests succeed now, so it's ok.

        Show
        Peter Kofler added a comment - changed the name of the non existing test file. this is no fix of the problem? in IBM JDK, but the tests succeed now, so it's ok.
        Hide
        Thomas Pummer added a comment -

        this issue isn't ibm JDK related - within my environment it failed too
        Environment:
        Windows XPx32
        java version "1.6.0_24"
        Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
        Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

        Show
        Thomas Pummer added a comment - this issue isn't ibm JDK related - within my environment it failed too Environment: Windows XPx32 java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
        Hide
        Siegfried Goeschl added a comment -

        Applied patch

        Show
        Siegfried Goeschl added a comment - Applied patch

          People

          • Assignee:
            Siegfried Goeschl
            Reporter:
            Peter Kofler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development