You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Granroth, Neal V." <ne...@thermofisher.com> on 2011/04/27 17:06:02 UTC

[Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Digy,

Am I correct that your trial code changes make this version of Lucene.NET incompatible and un-buildable with any version of .NET prior to 4.0?

- Neal


RE: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Posted by Digy <di...@gmail.com>.
Yes, we can use these classes after the work is finished. It will be easy
since I use a wrapper in SupportClass for Set and Dictionary.

DIGY

-----Original Message-----
From: Robert Jordan [mailto:robertj@gmx.net] 
Sent: Wednesday, April 27, 2011 7:46 PM
To: lucene-net-dev@incubator.apache.org
Subject: Re: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

On 27.04.2011 17:40, Amanuel Workneh wrote:
>> Am I correct that your trial code changes make this version of Lucene.NET
incompatible and un-buildable with any version of .NET prior to 4.0?
>
> As I understand it, 2.9.4g only replaces non-generic collections with
> generic ones. Generics was introduced in .NET Framework 2.0.
>
> Oh, sorry, I took a look at the code just to make sure. It does use
> SortedSet, a .NET 4 feature. It also uses HashSet, introduced in .NET
> 3.5.

We could get a copy of these classes from the Mono project:

4.0 collection classes:

https://github.com/mono/mono/tree/master/mcs/class/System/System.Collections
.Generic

3.5 collection classes:

https://github.com/mono/mono/tree/master/mcs/class/System.Core/System.Collec
tions.Generic

They are licensed under the MIT/X11 license, which should
be compatible with ASF's policy.

Robert


Re: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Posted by Robert Jordan <ro...@gmx.net>.
On 27.04.2011 17:40, Amanuel Workneh wrote:
>> Am I correct that your trial code changes make this version of Lucene.NET incompatible and un-buildable with any version of .NET prior to 4.0?
>
> As I understand it, 2.9.4g only replaces non-generic collections with
> generic ones. Generics was introduced in .NET Framework 2.0.
>
> Oh, sorry, I took a look at the code just to make sure. It does use
> SortedSet, a .NET 4 feature. It also uses HashSet, introduced in .NET
> 3.5.

We could get a copy of these classes from the Mono project:

4.0 collection classes:

https://github.com/mono/mono/tree/master/mcs/class/System/System.Collections.Generic

3.5 collection classes:

https://github.com/mono/mono/tree/master/mcs/class/System.Core/System.Collections.Generic

They are licensed under the MIT/X11 license, which should
be compatible with ASF's policy.

Robert


Re: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Posted by Amanuel Workneh <ma...@rotselleri.com>.
> Am I correct that your trial code changes make this version of Lucene.NET incompatible and un-buildable with any version of .NET prior to 4.0?

As I understand it, 2.9.4g only replaces non-generic collections with
generic ones. Generics was introduced in .NET Framework 2.0.

Oh, sorry, I took a look at the code just to make sure. It does use
SortedSet, a .NET 4 feature. It also uses HashSet, introduced in .NET
3.5.


Kind regards,
Amanuel

RE: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Posted by Digy <di...@gmail.com>.
Sorry, for now, only 4.0.
DIGY

-----Original Message-----
From: Granroth, Neal V. [mailto:neal.granroth@thermofisher.com] 
Sent: Wednesday, April 27, 2011 6:06 PM
To: lucene-net-dev@lucene.apache.org
Subject: [Lucene.Net] Lucene.NET 2.9.4g -- only usable with .NET 4.0 ?

Digy,

Am I correct that your trial code changes make this version of Lucene.NET
incompatible and un-buildable with any version of .NET prior to 4.0?

- Neal