Skip to content

Small java_bytecode fixes #3247

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 2 commits into from
Oct 29, 2018
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion jbmc/src/java_bytecode/java_bytecode_parse_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ struct java_bytecode_parse_treet
struct methodt : public membert
{
irep_idt base_name;
bool is_native, is_abstract, is_synchronized, is_bridge, is_varargs;
bool is_native = false, is_abstract = false, is_synchronized = false,
is_bridge = false, is_varargs = false;
source_locationt source_location;

typedef std::vector<instructiont> instructionst;
Expand Down
4 changes: 2 additions & 2 deletions jbmc/src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Date: April 2017

/// \return tag of a struct prefixed by "java::" or symbolic tag
/// empty string if not symbol or struct
irep_idt get_tag(const typet &type)
static irep_idt get_tag(const typet &type)
{
/// \todo Use follow instead of assuming tag to symbol relationship.
if(type.id() == ID_symbol_type)
Expand Down Expand Up @@ -169,7 +169,7 @@ bool java_string_library_preprocesst::is_java_char_array_pointer_type(
}

/// \return the type of the length field in java Strings.
typet string_length_type()
static typet string_length_type()
{
return java_int_type();
}
Expand Down