RE: Compile failure in 2.9.1 Highlighter

2009-10-20 Thread Uwe Schindler
Lucene 2.9 is Java 1.4 only (in build script), so autoboxing does not work.
With trunk it works, but not with 2.9.

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -Original Message-
> From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik
> Seeley
> Sent: Tuesday, October 20, 2009 4:19 PM
> To: java-dev@lucene.apache.org
> Subject: Re: Compile failure in 2.9.1 Highlighter
> 
> Not sure... but could it just be that you are relying on autoboxing,
> which is a Java5 feature, and the core is still marked for Java1.4
> syntax?
> 
> -Yonik
> http://www.lucidimagination.com
> 
> 
> 
> On Tue, Oct 20, 2009 at 10:02 AM, Mark Miller 
> wrote:
> > Can someone help me figure this out. The Highlighter test runs and
> > passes for me in Eclipse. It obviously compiles too.
> >
> > But when I try and compile with the ant build scripts, I get:
> >
> >    [javac]
> >
> /home/mark/workspace/lucene_2_9/contrib/highlighter/src/test/org/apache/lu
> cene/search/highlight/HighlighterTest.java:266:
> > cannot find symbol
> >    [javac] symbol  : method
> > newIntRange(java.lang.String,int,int,boolean,boolean)
> >    [javac] location: class org.apache.lucene.search.NumericRangeQuery
> >    [javac]     query =
> > NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, 2, 6, true, true);
> >
> > But that method appears to exist - I'm momentarily at a loss - someone
> > see the issue?
> >
> > --
> > - Mark
> >
> > http://www.lucidimagination.com
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> > For additional commands, e-mail: java-dev-h...@lucene.apache.org
> >
> >
> 
> -
> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org



-
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



Re: Compile failure in 2.9.1 Highlighter

2009-10-20 Thread Mark Miller
Thank you, than you, thank you ... I could have run around that for years.

Yonik Seeley wrote:
> Not sure... but could it just be that you are relying on autoboxing,
> which is a Java5 feature, and the core is still marked for Java1.4
> syntax?
>
> -Yonik
> http://www.lucidimagination.com
>
>
>
> On Tue, Oct 20, 2009 at 10:02 AM, Mark Miller  wrote:
>   
>> Can someone help me figure this out. The Highlighter test runs and
>> passes for me in Eclipse. It obviously compiles too.
>>
>> But when I try and compile with the ant build scripts, I get:
>>
>>[javac]
>> /home/mark/workspace/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java:266:
>> cannot find symbol
>>[javac] symbol  : method
>> newIntRange(java.lang.String,int,int,boolean,boolean)
>>[javac] location: class org.apache.lucene.search.NumericRangeQuery
>>[javac] query =
>> NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, 2, 6, true, true);
>>
>> But that method appears to exist - I'm momentarily at a loss - someone
>> see the issue?
>>
>> --
>> - Mark
>>
>> http://www.lucidimagination.com
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-dev-h...@lucene.apache.org
>>
>>
>> 
>
> -
> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org
>
>   


-- 
- Mark

http://www.lucidimagination.com




-
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



Re: Compile failure in 2.9.1 Highlighter

2009-10-20 Thread Yonik Seeley
Not sure... but could it just be that you are relying on autoboxing,
which is a Java5 feature, and the core is still marked for Java1.4
syntax?

-Yonik
http://www.lucidimagination.com



On Tue, Oct 20, 2009 at 10:02 AM, Mark Miller  wrote:
> Can someone help me figure this out. The Highlighter test runs and
> passes for me in Eclipse. It obviously compiles too.
>
> But when I try and compile with the ant build scripts, I get:
>
>    [javac]
> /home/mark/workspace/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java:266:
> cannot find symbol
>    [javac] symbol  : method
> newIntRange(java.lang.String,int,int,boolean,boolean)
>    [javac] location: class org.apache.lucene.search.NumericRangeQuery
>    [javac]     query =
> NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, 2, 6, true, true);
>
> But that method appears to exist - I'm momentarily at a loss - someone
> see the issue?
>
> --
> - Mark
>
> http://www.lucidimagination.com
>
>
>
>
> -
> To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org
>
>

-
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



Compile failure in 2.9.1 Highlighter

2009-10-20 Thread Mark Miller
Can someone help me figure this out. The Highlighter test runs and
passes for me in Eclipse. It obviously compiles too.

But when I try and compile with the ant build scripts, I get:

[javac]
/home/mark/workspace/lucene_2_9/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java:266:
cannot find symbol
[javac] symbol  : method
newIntRange(java.lang.String,int,int,boolean,boolean)
[javac] location: class org.apache.lucene.search.NumericRangeQuery
[javac] query =
NumericRangeQuery.newIntRange(NUMERIC_FIELD_NAME, 2, 6, true, true);

But that method appears to exist - I'm momentarily at a loss - someone
see the issue?

-- 
- Mark

http://www.lucidimagination.com




-
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org