[antlr-interest] ANTLR 3.0ea1 and ANTLRWorks 1.0ea1 released!

John D. Mitchell johnm-antlr at non.net
Thu Jun 2 12:44:48 PDT 2005


>>>>> "Jean" == Jean Bovet <antlr-list at arizona-software.ch> writes:
[...]

>> 3. As per my previous message, I get a lot of entries in the console
>> about it's inability to write to a grammar.stats file. The dir/folder
>> does exist but the file doesn't.

>> <error> [14:41:29] internal error: Exception
>> java.nio.channels.ClosedChannelException at sun.nio.ch.FileLockImpl.relea
>> se(Unk nown Source): can't write stats to C:\Documents and
>> Settings\MichealJ\antlrworks\grammar.stats </error>

> Yes, this is apparently a Java problem when using locks on file. It works
> smoothly on Mac OS and the Linux version I have used.  Will see with
> Terence what we can do about that (because it is used on both ANTLRWorks
> and ANTLR side).

Historically, file locks in Java have pretty much been completely worthless
from a portability perspective.  Lots of bug reports, etc.  I haven't
bothered to look to see if this is any better with Java v5.0.

Is there some reason that you really need to use them?

Thanks,
	John


More information about the antlr-interest mailing list