You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Yoav Shapira <yo...@apache.org> on 2006/01/27 14:06:35 UTC
Fwd: eclipse compiler bug?
Hi,
Forwarding a message from the solr-dev list, one of my new hangouts,
that is relevant to Tomcat.
Yoav
---------- Forwarded message ----------
From: Yonik Seeley <ys...@gmail.com>
Date: Jan 26, 2006 4:48 PM
Subject: eclipse compiler bug?
To: solr-dev@lucene.apache.org
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
yoavs@computer.org / www.yoavshapira.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: eclipse compiler bug?
Posted by Yoav Shapira <yo...@apache.org>.
Cool, thanks.
Yoav
On 1/27/06, Peter Rossbach <pr...@objektpark.de> wrote:
> I fix this issue for 5.5.16.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38389
>
> Regards
> Peter
>
>
> Am 27.01.2006 um 14:06 schrieb Yoav Shapira:
>
> > Hi,
> > Forwarding a message from the solr-dev list, one of my new hangouts,
> > that is relevant to Tomcat.
> >
> > Yoav
> >
> > ---------- Forwarded message ----------
> > From: Yonik Seeley <ys...@gmail.com>
> > Date: Jan 26, 2006 4:48 PM
> > Subject: eclipse compiler bug?
> > To: solr-dev@lucene.apache.org
> >
> >
> > 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
> > yoavs@computer.org / www.yoavshapira.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: dev-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
--
Yoav Shapira
System Design and Management Fellow
MIT Sloan School of Management
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: eclipse compiler bug?
Posted by Peter Rossbach <pr...@objektpark.de>.
I fix this issue for 5.5.16.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38389
Regards
Peter
Am 27.01.2006 um 14:06 schrieb Yoav Shapira:
> Hi,
> Forwarding a message from the solr-dev list, one of my new hangouts,
> that is relevant to Tomcat.
>
> Yoav
>
> ---------- Forwarded message ----------
> From: Yonik Seeley <ys...@gmail.com>
> Date: Jan 26, 2006 4:48 PM
> Subject: eclipse compiler bug?
> To: solr-dev@lucene.apache.org
>
>
> 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
> yoavs@computer.org / www.yoavshapira.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org