[ https://issues.apache.org/jira/browse/ARIES-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated ARIES-1704: ----------------------------------- Description: The ObjectFactoryHelper.getObjectInstance method does not follow the specification. Jarek Gawor reported and fixed a similar bug in ARIES-311. The fixed code in that bug report is as follow: {code} public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?, ?> environment, final Attributes attrs) throws Exception { return Utils.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws Exception { return doGetObjectInstance(obj, name, nameCtx, environment, attrs); } }); } private Object doGetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) throws Exception { {code} I believe that similar fixes work for this bug report. was: The ObjectFactoryHelper.getObjectInstance method does not follow the specification. Jarek Gawor reported and fixed a similar bug in ARIES-311. The fixed code in that bug report is as follow: public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?, ?> environment, final Attributes attrs) throws Exception { return Utils.doPrivileged(new PrivilegedExceptionAction<Object>() { public Object run() throws Exception { return doGetObjectInstance(obj, name, nameCtx, environment, attrs); } }); } private Object doGetObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment, Attributes attrs) throws Exception { I believe that similar fixes work for this bug report. > JNDI implementation does not follow the specification > ----------------------------------------------------- > > Key: ARIES-1704 > URL: https://issues.apache.org/jira/browse/ARIES-1704 > Project: Aries > Issue Type: Bug > Components: JNDI > Affects Versions: jndi-url-1.1.0 > Reporter: Hao Zhong > Priority: Major > Attachments: aries.patch > > > The ObjectFactoryHelper.getObjectInstance method does not follow the > specification. Jarek Gawor reported and fixed a similar bug in ARIES-311. > The fixed code in that bug report is as follow: > {code} > public Object getObjectInstance(final Object obj, > final Name name, > final Context nameCtx, > final Hashtable<?, ?> environment, > final Attributes attrs) throws Exception { > return Utils.doPrivileged(new PrivilegedExceptionAction<Object>() { > public Object run() throws Exception { > return doGetObjectInstance(obj, name, nameCtx, environment, > attrs); > } > }); > } > > private Object doGetObjectInstance(Object obj, > Name name, > Context nameCtx, > Hashtable<?, ?> environment, > Attributes attrs) throws Exception { > {code} > I believe that similar fixes work for this bug report. -- This message was sent by Atlassian JIRA (v7.6.3#76005)