Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15403

camel-xmlsecurity - Some unit tests fails with Oracle JDK8 261

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.5.0, 3.4.4
    • Component/s: camel-xmlsecurity
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      It's caused by a newline "\n" isn't expected in the test payload for JDK 1.8_261.

      I noticed that we've already had code like

      if (TestSupport.getJavaMajorVersion() >= 9) {
                  includeNewLine = false;
              }
      

      to determine need this newline or not. And I believe the lastest JDK8(Oracle JDK8 261) surely take the same logic as JDK9+ now.
      We need also check the 1.8 minor version

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              ffang Freeman Yue Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: