https://bz.apache.org/bugzilla/show_bug.cgi?id=60771
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
Assignee: [email protected]
Reporter: [email protected]
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.