Hi,
Hmm, thanks for letting us (and me specifically) know. You're right
that I'm interested. I was under the impression that we had been good
about keeping up with the latest Eclipse compiler: I'll make sure
that's the case indeed. Also as a sidenote, you can switch Tomcat
from using the Eclipse JDT to using traditional Sun/javac. If you're
interested in that path, let me know offline.
Yoav
On 1/26/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
> Yoav, you might be interested in this one...
>
> I had to comment out some generics stuff to get the JSP to work on
> Tomcat 5.5.12. I didn't have time to look into it but my guess is
> that the eclipse compiler got the signature incorrect for the generic
> comparator. So if there is a newer version of the compiler, you might
> want to upgrade.
>
> Here is the modification I made to get it to work:
>
> /***
> // This generics version works fine with Resin, but fails with Tomcat 5.5
> // with java.lang.AbstractMethodError
> // at java.util.Arrays.mergeSort(Arrays.java:1284)
> // at java.util.Arrays.sort(Arrays.java:1223)
> Arrays.sort(arr, new Comparator<List<Tok>>() {
> public int compare(List<Tok> toks, List<Tok> toks1) {
> return toks.get(0).pos - toks1.get(0).pos;
> }
> }
> ***/
> Arrays.sort(arr, new Comparator() {
> public int compare(Object a, Object b) {
> List<Tok> toks = (List<Tok>)a;
> List<Tok> toks1 = (List<Tok>)b;
> return toks.get(0).pos - toks1.get(0).pos;
> }
> }
>
> );
>
>
> https://svn.apache.org/repos/asf/incubator/solr/trunk/src/webapp/resources/admin/analysis.jsp
> search down for Tomcat
>
> -Yonik
>
--
Yoav Shapira
System Design and Management Fellow
MIT Sloan School of Management
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com