Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF5EB10B4F for ; Mon, 14 Oct 2013 13:48:10 +0000 (UTC) Received: (qmail 65507 invoked by uid 500); 14 Oct 2013 13:47:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65194 invoked by uid 500); 14 Oct 2013 13:47:43 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65134 invoked by uid 99); 14 Oct 2013 13:47:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 13:47:42 +0000 Date: Mon, 14 Oct 2013 13:47:42 +0000 (UTC) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (JCI-56) Incorrect Store read in EclipseJavaCompiler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCI-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Bourg closed JCI-56. ----------------------------- > Incorrect Store read in EclipseJavaCompiler > ------------------------------------------- > > Key: JCI-56 > URL: https://issues.apache.org/jira/browse/JCI-56 > Project: Commons JCI > Issue Type: Bug > Components: compiler eclipse > Reporter: Mark Proctor > Assignee: Torsten Curdt > Fix For: 1.1 > > > A while back the store was changed to store the resource name instead of the class name - i.e. {{org.drools.Test}} is now stored as {{org/drools/Test.class}}. In EclipseJavaCompiler you are reading via a classname, rather than the converted resourceName: > {code} > final String resourceName = ClassUtils.convertClassToResourcePath(pClazzName); > > final byte[] clazzBytes = pStore.read(pClazzName); > if (clazzBytes != null) { > {code} > I believe that should be: > {code}pStore.read(resourceName);{code} -- This message was sent by Atlassian JIRA (v6.1#6144)