One of the local changes I had to make to Tomcat in order to build with gcj is
in JspReader.java...
char[] getChars(Mark start, Mark stop) throws ParseException {
Mark oldstart = mark();
reset(start);
CharArrayWriter caw = new CharArrayWriter();
while (!stop.equals(mark()))
caw.write(nextChar());
caw.close();
reset(oldstart);
return caw.toCharArray();
}
Our implementation of CharArrayWriter.write() can throw an IOException, as per
the JDK1.3 docs - resulting in...
upstream/jasper/src/share/org/apache/jasper/compiler/JspReader.java:397:
Exception `java.io.IOException' must be caught, or it must be declared in the
`throws' clause of `getChars'.
caw.write(nextChar());
^
1 error
What's going on here?
Thanks!
AG