harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5755) [weblogic][suncompat] Stubs for RI-specific classes needed for WebLogic enabling
Date Thu, 17 Apr 2008 12:41:21 GMT

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

Mikhail Markov updated HARMONY-5755:
------------------------------------

    Attachment: H-5755.patch

Here is the patch with the RI-specific differences including stubs for new classes.
1) sun.reflect.ReflectionFactory class was obtained after getting: java.lang.NoClassDefFoundError:
sun/reflect/ReflectionFactory$GetReflectionFactoryAction - just this empty method was implemented
but this was enough to move forward.
2) getField()/getSignature package-private methods in java.io.ObjectStreamField class were
obtained when get a: java.lang.NullPointerException at weblogic.utils.io.ObjectStreamClass.getField(...)/getSignature(...).
Had to implement getSignature returning non-null value (derived from the name of the method)
because just returning null led to another exception.
3) com.sun.corba.se.impl.javax.rmi.CORBA.UtilDelegate class was added after: java.lang.RuntimeException:
could not find or instantiate any UtilDelegate. It was written as a class simply delegating
to public javax.rmi.CORBA.Util one.
4) com.sun.mirror package was implemented after first getting: java.lang.NoClassDefFoundError:
com/sun/mirror/declaration/PackageDeclaration - i've found a publicly available API documentation
about Annotation Processing Tool (APT)  at http://java.sun.com/j2se/1.5.0/docs/guide/apt/.
Similar stacktraces appeared after adding PackageDeclaration interface requiring other classes
from com.sun.mirror package, so finally 36 interfaces, 1 class and 1 enum were added according
to the doc.
5) sun.misc.BASE64Decoder was added after: javax.ejb.EJBException: EJB encountered System
Exception: : java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder/Decoder at ...
6) After similar exception i had to add BASE64Encoder - i've noticed that there is Base64Encoder
already in svn, but the exception shows that 'base' word should be written in capital letter
(i've tried on Linux only), so I've created BASE64Encoder, but as long as for Windows Base64Encoder
and BASE64Encoder are similar names, i've just added 2 new methods to the existing Base64Encoder
- probably it should be renaimed to BASE64Encoder but i don't know the original reason why
it was added before so i didn't do this in the attached patch.


> [weblogic][suncompat] Stubs for RI-specific classes needed for WebLogic enabling
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-5755
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5755
>             Project: Harmony
>          Issue Type: Improvement
>          Components: App-Oriented Bug Reports, Classlib
>         Environment: All platforms.
>            Reporter: Mikhail Markov
>            Priority: Minor
>         Attachments: H-5755.patch
>
>
> I've spent some time trying to enable SPECjAppServer2004 on WebLogic with Harmony and
got a list of RI-specific classes needed by WebLogic. This is not Harmony bugs, but WebLogic
ones as it should not use non-public API bugs, nevertheless i'd like to share the stubs so
those who want to try WebLogic could easily do this.
> All the stubs were obtained in clean-room without looking into RI or WebLogic sources
- i've tried to run WebLogic, got an exception clarifying the situation and prepared stubs
according to the details fo exception thrown.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message