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 0CAAB200C55 for ; Thu, 13 Apr 2017 20:53:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 09680160B98; Thu, 13 Apr 2017 18:53:46 +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 5057A160B89 for ; Thu, 13 Apr 2017 20:53:45 +0200 (CEST) Received: (qmail 75444 invoked by uid 500); 13 Apr 2017 18:53:44 -0000 Mailing-List: contact notifications-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list notifications@ctakes.apache.org Received: (qmail 75435 invoked by uid 99); 13 Apr 2017 18:53:44 -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, 13 Apr 2017 18:53:44 +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 D3DD3C142D for ; Thu, 13 Apr 2017 18:53:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 Pcaol2r359Ub for ; Thu, 13 Apr 2017 18:53:43 +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 8F9CE5FAC9 for ; Thu, 13 Apr 2017 18:53:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D3B32E05A2 for ; Thu, 13 Apr 2017 18:53:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 89BAA24066 for ; Thu, 13 Apr 2017 18:53:41 +0000 (UTC) Date: Thu, 13 Apr 2017 18:53:41 +0000 (UTC) From: "Sean Finan (JIRA)" To: notifications@ctakes.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CTAKES-66) FileLocator.locateOnClasspath should take Class object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 13 Apr 2017 18:53:46 -0000 [ https://issues.apache.org/jira/browse/CTAKES-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Finan resolved CTAKES-66. ------------------------------ Resolution: Fixed Assignee: Sean Finan Fix Version/s: 4.0.0 Done while I was making another fix/improvement to the FileLocator > FileLocator.locateOnClasspath should take Class object > ------------------------------------------------------ > > Key: CTAKES-66 > URL: https://issues.apache.org/jira/browse/CTAKES-66 > Project: cTAKES > Issue Type: Bug > Components: ctakes-core > Affects Versions: 3.0-incubating > Reporter: Steven Bethard > Assignee: Sean Finan > Fix For: 4.0.0 > > > The method org.apache.ctakes.core.resource.FileLocator.locateOnClasspath uses the code: > ClassLoader cl = FileLocator.class.getClassLoader(); > URL indexUrl = cl.getResource(cpLocation); > But this means that the "cpLocation" path will be interpreted relative to FileLocator, rather than the class that is calling FileLocator.locateOnClasspath. Instead, this method should take a Class as a parameter and use that to get the resource. -- This message was sent by Atlassian JIRA (v6.3.15#6346)