From: SourceForge.net <no...@so...> - 2004-01-06 21:40:37
|
Bugs item #592227, was opened at 2002-08-07 20:31 Message generated for change (Settings changed) made by fgiust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=592227&group_id=13153 Category: None Group: None Status: Open Resolution: None >Priority: 9 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in Lexer.java Initial Comment: Hi developers, today i found a bug in the Lexer.java class. The method public short entityCode( String name ) in the class EntityTable returns a 0 (zero) on error. This fact is not honored in Lexer.java in the method : public void parseEntity(short mode) ... /* deal with unrecognized entities */ if (ch <= 0) If you are working with entities > 0x7FFF (which e.g. imode/chtml uses) the condition is true, cause the value of ch is negative. I think, the condition should read: if (ch == 0) -Michael ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=592227&group_id=13153 |