Skip to content

Restore string literal symbol name escaping #513

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

Merged
merged 1 commit into from
Feb 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java_bytecode/java_bytecode_typecheck_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ void java_bytecode_typecheckt::typecheck_expr_java_string_literal(exprt &expr)
escape_non_alnum(escaped);
identifier_str << "java::java.lang.String.Literal." << escaped;
// Avoid naming clashes by virtue of escaping:
size_t unique_num=escaped_string_literal_count[identifier_str.str()];
unique_num++;
// NOTE this increments the count stored in the map.
size_t unique_num=++(escaped_string_literal_count[identifier_str.str()]);
if(unique_num!=1)
identifier_str << unique_num;

Expand Down