Menu

#2 Got an exception - expecting EOF, found '}'

open
nobody
None
5
2007-04-03
2007-04-03
No

Hi,

I frequently get errors like: Got an exception - expecting EOF, found '}' or Got an exception - expecting EOF, found 'level' or Got an exception - expecting EOF, found 'assert'.

It is as if the file has some characters in it after the end of file marker and that is causing problems.

I have looked at the files in Notepad and other editors and there are no stray characters at the end of the class file.

I am using BlueJ version 2.2.0, Jave 1.5.0_11 and Windows XP 5.1 (x86).

Thanks,

Peter

PS After a bit of experimenting it appears to be caused by assertions. If I comment out all lines such as assert false; and assert level > 0; the problem goes away.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.