Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Semi-colon breaks literals for strings & characters #305

Closed
discorddioxin opened this issue Aug 2, 2021 · 1 comment · Fixed by #314
Closed

[Java] Semi-colon breaks literals for strings & characters #305

discorddioxin opened this issue Aug 2, 2021 · 1 comment · Fixed by #314

Comments

@discorddioxin
Copy link

Reproduce

/run ```java
var s = ";";
```

Expected

No output

Actual

file0.code.java:2: error: unclosed string literal
var s = ";
^
file0.code.java:3: error: unclosed string literal
";
^
2 errors
error: compilation failed

Notes

Works in any situation where a string literal contains a semi-colon

/run ```java
System.out.print("test;");
```

Also affects character literals in the same way

/run ```java
var c = ';';
```

@dvargas46
Copy link
Contributor

This is an issue with the IRC bot's java template. Piston runs that code just fine (with proper boilerplate ofc).

Try reporting your issue over on the piston-bot project.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants