r/programming • • May 10 '18

Java: Executing code in comments?!

http://programming.guide/java/executing-code-in-comments.html
260 Upvotes

84 comments sorted by

View all comments

-12

u/dethb0y May 10 '18

Unicode: The Mistake That Keeps On Giving

5

u/slavik262 May 11 '18

What should we use instead?

-2

u/dethb0y May 11 '18

Nothing? why is there a need for there to ever be unicode in source code files, and "so some guy who doesn't want to use ascii can type the weird characters in his native language" doesn't count as a valid reason to introduce this kind of vulnerability.

0

u/[deleted] May 11 '18

[deleted]

-3

u/dethb0y May 11 '18

if some russian API is spewing bad characters, then the solution's not to use the broken API, not to break everything else so it's as broken as the API.