|Re: [equinox-dev] j9 class sharing and CL.getResource|
I have experienced similar issues, both with a shared classes adaptor and a jxe adaptor on j9. In both cases the issue can be worked around by doing different things with the BundleEntry#getBytes() and BundleEntry#getInputStream methods. The getBytes() method is only used by the classloader to get the byte to define the class. This is where the "magic bytes" with the identifier used by j9 class sharing should be returned. The getInputStream is used by the URLs CL.getResource. In your adaptor you can implement getInputStream to read the real bytes out of the content of the bundle instead of using the shared classes cache bytes. This should allow you to get the real bytes of the class file.
Martin Lippert ---03/03/2008 03:09:58 PM---Hi!
Martin Lippert <lippert@xxxxxxx>
Equinox Project <equinox-dev@xxxxxxxxxxx>
03/03/2008 03:09 PM
[equinox-dev] j9 class sharing and CL.getResource