[ 
https://issues.apache.org/jira/browse/LANG-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14171711#comment-14171711
 ] 

Joerg Schaible commented on LANG-1049:
--------------------------------------

It does not make sense to add Eclipse-specific entries to the manifest, sorry.

However, we actually should provide a deserialize method that take an 
additional ClassLoader argument which is used in a custom ObjectInputStream 
that overwrites resolveClass:
[http://docs.oracle.com/javase/7/docs/api/java/io/ObjectInputStream.html#resolveClass(java.io.ObjectStreamClass)]

> SerializationUtils.deserialize() can not be used within OSGi
> ------------------------------------------------------------
>
>                 Key: LANG-1049
>                 URL: https://issues.apache.org/jira/browse/LANG-1049
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.6
>         Environment: Equinox
>            Reporter: Marcus Klein
>            Priority: Blocker
>
> SerializationUtils.deserialize() throws a SerializationException if objects 
> should be deserialized that can not be resolved by OSGi classloader of 
> org.apache.commons.lang bundle.
> To solve this problem I suggest to allow buddy classloading within 
> commons.lang to allow other bundles to register their class loaders.
> Please add
> Eclipse-BuddyPolicy: registered
> to the MANIFEST.MF of commons.lang to solve this problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to