commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCI-56) Incore Store read in EclipseJavaCompiler
Date Tue, 08 Oct 2013 12:08:44 GMT

     [ https://issues.apache.org/jira/browse/JCI-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Bourg updated JCI-56:
------------------------------

    Description: 
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}

  was:
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:

                final String resourceName = ClassUtils.convertClassToResourcePath(pClazzName);
                
                final byte[] clazzBytes = pStore.read(pClazzName);
                if (clazzBytes != null) {

I believe that should be pStore.read(resourceName);


> Incore 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)

Mime
View raw message