jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 60771] New: testFindAllClassesInJar(org.apache.jorphan.reflect.TestClassFinder) can fail on Windows
Date Thu, 23 Feb 2017 14:51:06 GMT

            Bug ID: 60771
           Summary: testFindAllClassesInJar(org.apache.jorphan.reflect.Tes
                    tClassFinder) can fail on Windows
           Product: JMeter
           Version: 3.1
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
  Target Milestone: ---

The test testFindAllClassesInJar(org.apache.jorphan.reflect.TestClassFinder)
can fail on Windows.

This can occur if the classpath uses a lower case drive letter whereas the
target jar uses upper case. It seems the Jenkins Windows installation defines
the current working directory (user.dir) and the classpath with a lower-case
drive letter, whereas normally drive letters are upper-case.

A simple fix is to force the drive letters to upper case in the
ClassFinder.fixPathEntry(String path) method.

It would be better to use something like File.getCanonicalPath.
However this makes the name absolute which could cause problems with the
matching process as that uses String.endsWith rather than equals

You are receiving this mail because:
You are the assignee for the bug.
View raw message