Skip to content

Incorrect Java single quotes handling results in error when student submits correct java code #269

@PatTutor

Description

@PatTutor

Hi

We love your plugin!

We found the following issue: When a student submits the following java code, there is a Java error message despite the student submitting correct code:

package ch.zhaw.ads;

class KgvServer implements CommandExecutor {
    public int kgv(int a, int b) {
        return 0;
    }
    
    @Override
    public String execute(String command) {
        // char c = '{'
        return "Hello" + '{';
    }
}

We already have fixed this and will add a pull request.

Thanks!
Pat

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