incubator-yoko-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: [jira] Created: (YOKO-258) Bad reference to ClassLoader.classes in org.apache.yoko.rmi.util.ClassLoaderLocal static initializer
Date Mon, 25 Dec 2006 15:04:14 GMT
Guys,

I've reviewed the ClassLoaderLocal source and its usage in
PortableRemoteObjectExtImpl class (looks like it's the only place)...
It is not fully clear for me what ClassLocalMap is used for... But as
far as I understood it is used for RMIState objects storage connected
to the current thread.

Is that correct?

SY, Alexey

2006/12/24, Vasily Zakharov (JIRA) <jira@apache.org>:
> Bad reference to ClassLoader.classes in org.apache.yoko.rmi.util.ClassLoaderLocal static
initializer
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YOKO-258
>                 URL: http://issues.apache.org/jira/browse/YOKO-258
>             Project: Yoko - CORBA Server
>          Issue Type: Bug
>            Reporter: Vasily Zakharov
>
>
> org.apache.yoko.rmi.util.ClassLoaderLocal class contains the following line in its static
initializer:
>
>        classes_vector = ClassLoader.class.getDeclaredField("classes");
>
> This line references the 'classes' field in class java.lang.ClassLoader, and that field
is not documented by API JavaDoc and may be absent in particular Java VM/classlib implementations,
for example it's absent in Apache Harmony.
>
> As the result of this issue, the classes org.apache.yoko.rmi.util.ClassLoaderLocal and
org.apache.yoko.rmi.impl.PortableRemoteObjectExtImpl fail to load with NoSuchFieldException,
on those implementations.
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

Mime
View raw message