Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 85A36200C24 for ; Thu, 23 Feb 2017 15:51:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 844B9160B62; Thu, 23 Feb 2017 14:51:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BD031160B50 for ; Thu, 23 Feb 2017 15:51:10 +0100 (CET) Received: (qmail 20326 invoked by uid 500); 23 Feb 2017 14:51:09 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 20315 invoked by uid 99); 23 Feb 2017 14:51:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 14:51:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 75FB0C1976 for ; Thu, 23 Feb 2017 14:51:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id q_VHsI2y9-HP for ; Thu, 23 Feb 2017 14:51:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3098E5F1C2 for ; Thu, 23 Feb 2017 14:51:08 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 691BDE043B for ; Thu, 23 Feb 2017 14:51:07 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id EA21060EE3; Thu, 23 Feb 2017 14:51:06 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 60771] New: testFindAllClassesInJar(org.apache.jorphan.reflect.TestClassFinder) can fail on Windows Date: Thu, 23 Feb 2017 14:51:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: Main X-Bugzilla-Version: 3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sebb@apache.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Thu, 23 Feb 2017 14:51:11 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60771 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: issues@jmeter.apache.org Reporter: sebb@apache.org 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 defin= es 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 --=20 You are receiving this mail because: You are the assignee for the bug.=