Hi Marcin,

just found another extension wiht a problem:

javax.swing.JEditorPane

> public static void registerEditorKitForContentType(String type, String 
> classname, ClassLoader
loader) {
>       getKitTypeRegistry().put(type, classname);
>       getKitLoaderRegistry().put(type, loader);
>       getKitRegisty().remove(type);
> }

argument classloader is null too ...
so i am pretty sure this is a bug, and it will break a lot of existing java 
extensions ...

btw: i will add your comments to the issue.

Oliver

Am 03.06.2009 19:58 schrieb Marcin Miłkowski:
> Oliver Brinzing pisze:
>> Hi Marcin,
>>
>>> Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
>>>
>>
>> yes this seems to help, classloader was indeed null ...
>>
>> may i add your solution to issue
>> http://www.openoffice.org/issues/show_bug.cgi?id=102164 ?
> 
> Go ahead, but I wouldn't call this a solution, this is almost a hack.
> One more thing: first check if the classloader is null, because if it
> isn't, you will get into trouble (as we did).
> 
> BTW, you mentioned 1.6 u14 but the issue lists u13, you might want to
> add it. And make sure it works under Java 1.5, otherwise Apple fans will
> be disappointed.
> 
> Regards
>  Marcin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


-- 
Oliver Brinzing         fon   +49 7181 481401   fax +49 7181 475635
Ludwigstrasse 14    mobil +49 174 3015743
73614 Schorndorf    mailto:[email protected]

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to