maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Demakov" <>
Subject ANTLR 2.7.1 and System.exit(0)
Date Fri, 20 Dec 2002 18:32:13 GMT
When ANTLR run from maven build system, maven's NoExitSecurityManager
catches System.exit(code) calls and throws java.lang.SecurityException with
code in message to prevent JVM finish.

It works fine with System.exit(0) at the end of antlr.Tool.main(). But there
is another System.exit(0) call - at the end of antlr.Tool.doEverything().
main() catches exception produced by NoExitSecurityManager and prints
message about internal error!

ANTLR generates files anyway but error message is annoying.

Because doEverything() is protected it is possible to subclass antlr.Tool
and call doEverything()
with right error handling :)

May be I will implement it later. May be in the next year :)

Merry Xmas and happy New Year to all maven users! :)

Best regards,

View raw message