james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Bug in ContentTypeParser.jj?
Date Mon, 17 Mar 2008 23:43:08 GMT

The ContentTypeParser does not like boundary strings that only contain digits. 
My .jj is not so hot, but I debugged the parser and it is returning 20 as the 
token.kind, whereas it seems to want 19 (QUOTEDSTRING) or 21 (ATOKEN).

I guess 20 is 'DIGITS' and the definition of digits is before ATOKEN, so it is 
satisfied before ATOKEN.

Should the fix be either

String value() :
{Token t;}
(	t=<ATOKEN>
|	t=<DIGITS>
	{ return t.image; }

or the ATOKEN definition be defined before DIGITS?


To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message