libgcj/6301: gij -jar does not work
tromey@gcc.gnu.org
tromey@gcc.gnu.org
Tue Apr 30 13:25:00 GMT 2002
Synopsis: gij -jar does not work
State-Changed-From-To: open->analyzed
State-Changed-By: tromey
State-Changed-When: Tue Apr 30 12:36:19 2002
State-Changed-Why:
I looked at this a bit today. It is an obscure bug in BufferedReader.
What happens is that we read a line that ends in \r\n.
However our buffer ends just after the \r.
(There is a lot of code in BufferedReader to handle this case.)
However what follows is that Manifest calls mark(), read(), and finally reset() on the BufferedReader.
This causes the BufferedReader to lose track of the fact that it was between \r and \n.
Then our reading of the manifest gets off-kilter and from
there things progressively get worse.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6301
More information about the Gcc-bugs
mailing list