Skip to content

Methods without brackets should be detected by Java Decaf  #9

@sergutsan

Description

@sergutsan

Methods without brackets (e.g. as in Groovy) should be detected by Java Decaf and not by Java, because they result in confusing errors, e.g. the ubersimple code:

int i = 10;
while (i < 5){
i++;
println i;
}

results in the cryptic errors

Error on line 4 in file:/tmp/error2.jdc
Problem: cannot find symbol
  symbol:   class out
  location: class java.lang.System
Error on line 4 in file:/tmp/error2.jdc
Problem: variable i is already defined in method main(java.lang.String[])

intead of something more useful like:

JavaDecaf Error: call to println() without brackets
file:/tmp/error1.jdc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions