Menu

Parsing: Definition issue

Developers
smaol
2010-04-02
2012-10-08
  • smaol

    smaol - 2010-04-02

    Hi all,

    is it possible that recoder (v0.94c) currently doesn't support (method)
    declarations like:

    231 public
    232 void assert(boolean assertion, String msg) {
    233 if(!assertion)
    234 this.error(msg);
    235 }

    always get an error like:

    Encountered " "void" "void "" at line 232, column 3.
    Was expecting one of:
    "@" ...
    "boolean" ...
    "byte" ...
    "char" ...
    ....

    void seems not to occur in the error list. So either I'm blind right now and
    the method definition is wrong for some reason or something else is wrong ;)

    Any comments are welcome - Thanks!
    Steffen

     
  • smaol

    smaol - 2010-04-05

    okay short update: seems that recoder works fine - guess it's just a missing
    blank after/before the public/void.

     
  • Tobias Gutzmann

    Tobias Gutzmann - 2010-04-07

    Good that the issue has resolved itself :-) I was going to say that you need
    to set Recoder to Java 1.3-compatibility mode, otherwise, "assert" is
    recognized as a keyword and thus is not a valid identifier. But you have
    obviously done that yourself already.

     

Log in to post a comment.

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.