[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: javacc help needed



Hello,


On Mon, Nov 05, 2007 at 10:49:29AM +0900, Sanghyeon Seo wrote:
> Upstream modified ParseException.java after it was generated. Even the
> generated file says you can! ("You can modify this class to customize
> your error reporting...")
> 
> In the original modifed file, ParseException extends CSSException
> which extends RuntimeException, so it is an unchecked exception. But
> unmodifed ParseException extends Exception by default, which makes it
> a checked exception, but methods throwing ParseException doesn't
> declare to throw it, resulting in compile error.
> 
> So you can regenerate files, and then modify ParseException.java as
> upstream did. import org.w3c.css.sac.CSSException; and replace the
> class ParseException is extending.

Thats close to the worst things library developers can do...

This makes me really scared about this. Depending on such a library in a
distro is like depending on dynamite to not explode.


Cheers,
Michael



Reply to: