Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » classloading error after defining package prefixes
classloading error after defining package prefixes [message #145790] Fri, 17 October 2003 14:24 Go to next message
Christian Sell is currently offline Christian SellFriend
Messages: 77
Registered: July 2009
Member
Hello,


I began adding

<packages prefixes="my.package.prefix"/>

elements to certain libraries in my plugin.xml. after doing this,
classes from those libraries that did *not* have these elememts declared
could not be loaded any longer.

is this a bug or a feature, or am I missing something?

thanks,
Christian
Re: classloading error after defining package prefixes [message #146210 is a reply to message #145790] Sat, 18 October 2003 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Christian Sell wrote:

> Hello,
>
>
> I began adding
>
> <packages prefixes="my.package.prefix"/>
>
> elements to certain libraries in my plugin.xml. after doing this,
> classes from those libraries that did *not* have these elememts
> declared could not be loaded any longer.
>
> is this a bug or a feature, or am I missing something?

A feature to improve class loading: you have to list all package
prefixes of the library. Those not being declared are not found.

Dani

>
> thanks,
> Christian
>
Re: classloading error after defining package prefixes [message #146364 is a reply to message #146210] Sun, 19 October 2003 18:35 Go to previous messageGo to next message
Christian Sell is currently offline Christian SellFriend
Messages: 77
Registered: July 2009
Member
Daniel Megert wrote:
> Christian Sell wrote:
>
>> Hello,
>>
>>
>> I began adding
>>
>> <packages prefixes="my.package.prefix"/>
>>
>> elements to certain libraries in my plugin.xml. after doing this,
>> classes from those libraries that did *not* have these elememts
>> declared could not be loaded any longer.
>>
>> is this a bug or a feature, or am I missing something?
>
>
> A feature to improve class loading: you have to list all package
> prefixes of the library. Those not being declared are not found.
>
> Dani

did you get what I meant? Let me give an example

<library file="bla.jar"/>
<library file="another.jar">
<packages prefixes="com.mycomp.dada"/>
</library>


after declaring the prefixes for library "another.jar", the classes from
library "bla.jar" were no longer found. Feature?


thanks,
Christian

>
>>
>> thanks,
>> Christian
>>
>
Re: classloading error after defining package prefixes [message #146416 is a reply to message #146364] Mon, 20 October 2003 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Christian Sell wrote:

> Daniel Megert wrote:
>
>> Christian Sell wrote:
>>
>>> Hello,
>>>
>>>
>>> I began adding
>>>
>>> <packages prefixes="my.package.prefix"/>
>>>
>>> elements to certain libraries in my plugin.xml. after doing this,
>>> classes from those libraries that did *not* have these elememts
>>> declared could not be loaded any longer.
>>>
>>> is this a bug or a feature, or am I missing something?
>>
>>
>>
>> A feature to improve class loading: you have to list all package
>> prefixes of the library. Those not being declared are not found.
>>
>> Dani
>
>
> did you get what I meant? Let me give an example

From your original post it was not clear (at least to me) whether the
*not* belongs to the classes or library. It would have been clearer with
the example attached along with the first posting ;-).

>
> <library file="bla.jar"/>
> <library file="another.jar">
> <packages prefixes="com.mycomp.dada"/>
> </library>
>
>
> after declaring the prefixes for library "another.jar", the classes
> from library "bla.jar" were no longer found. Feature?

No, this would clearly be a bug. Looks like the class loader uses
prefixes for all libs if prefixes are given for one lib. Please file a
bug report against Platform Core.

>
>
> thanks,
> Christian
>
>>
>>>
>>> thanks,
>>> Christian
>>>
>>
>
Re: classloading error after defining package prefixes [message #148692 is a reply to message #146364] Thu, 23 October 2003 18:24 Go to previous message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

It's a known problem:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=37480
--

Christian Sell wrote:
>>> is this a bug or a feature, or am I missing something?
Previous Topic:swt: how to add to a TableViewer
Next Topic:How to make IPath for file on other system
Goto Forum:
  


Current Time: Thu Jun 27 20:59:35 GMT 2024

Powered by FUDForum. Page generated in 0.03492 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top