[antlr-interest] Strange bug in ANTLR under .Net

johnny_job at rambler.ru johnny_job at rambler.ru
Mon Oct 17 06:24:44 PDT 2005


Hello all!

            I have found strange problem with ANTLR for .Net. I have .Net
application that uses ANTLR (this application works under IIS, more exactly
- under Sharepoint Portal Server 2003). And sometimes ANTLR fails with the
following error message:

Unable to load AST Node Type: 'antlr.CommonAST'

  at antlr.ASTFactory.loadNodeTypeObject(String nodeTypeName) in
d:\temp\cvstemp\utils\src\antlr\src\antlr\astfactory.cs:line 582

            I found quick workaround for this problem - seems that sometimes
assembly antlr.runtime.dll doesn't belong to collection returned by
AppDomain.CurrentDomain.GetAssemblies() method. So my quickfix consist in
adding this assembly (AppDomain.Current.GetExecutingAssembly()) to this
collection.

But I changed source code of ANTLR (method loadNodeTypeObject() in the
ASTFactory class), so I want to know: is it a bug of ANTLR or not? If it is,
ANTLR should be changed to implement fix for this bug.

 

Ivan A. Gusev

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20051017/dbd3fab9/attachment.html


More information about the antlr-interest mailing list