harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou" <zhoukevi...@gmail.com>
Subject Re: [jira] Assigned: (HARMONY-5866) [classlib][beans] java.beans.XMLDecoder(4) always use Thread.currentThread().getContextClassLoader()
Date Fri, 06 Jun 2008 09:46:06 GMT
Ok, thanks!

On Fri, Jun 6, 2008 at 5:30 PM, Sean Qiu (JIRA) <jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/HARMONY-5866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Sean Qiu reassigned HARMONY-5866:
> ---------------------------------
>
>    Assignee: Sean Qiu
>
> > [classlib][beans] java.beans.XMLDecoder(4) always use
> Thread.currentThread().getContextClassLoader()
> >
> ----------------------------------------------------------------------------------------------------
> >
> >                 Key: HARMONY-5866
> >                 URL: https://issues.apache.org/jira/browse/HARMONY-5866
> >             Project: Harmony
> >          Issue Type: Bug
> >          Components: Classlib
> >    Affects Versions: 5.0M6
> >            Reporter: Kevin Zhou
> >            Assignee: Sean Qiu
> >             Fix For: 5.0M6
> >
> >         Attachments: HARMONY-5866.diff
> >
> >   Original Estimate: 24h
> >  Remaining Estimate: 24h
> >
> > I read java.beans.XMLDecoder code and find that XMLDecoder(4) as follows:
> > public XMLDecoder(InputStream inputStream, Object owner,
> ExceptionListener listener, ClassLoader cl) {
> >         this(inputStream, owner, listener);
> >         defaultClassLoader = cl;
> > }
> > This constructor will first call XMLDecoder(3) which always use
> Thread.currentThread().getContextClassLoader() regardless of user's
> ClassLoader.
> > I think the solution is to set the deafultClassLoader first before use
> SAXParser to parse xml.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message