Skip to content

Commit f934ca3

Browse files
author
thk123
committed
String classes should be public
1 parent d41403f commit f934ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ typet string_length_type()
192192
void java_string_library_preprocesst::add_string_type(
193193
const irep_idt &class_name, symbol_tablet &symbol_table)
194194
{
195-
class_typet string_type;
195+
java_class_typet string_type;
196196
string_type.set_tag(class_name);
197197
string_type.components().resize(3);
198198
string_type.components()[0].set_name("@java.lang.Object");
@@ -204,6 +204,7 @@ void java_string_library_preprocesst::add_string_type(
204204
string_type.components()[2].set_name("data");
205205
string_type.components()[2].set_pretty_name("data");
206206
string_type.components()[2].type() = pointer_type(java_char_type());
207+
string_type.set_access(ID_public);
207208
string_type.add_base(symbol_typet("java::java.lang.Object"));
208209
if(class_name!="java.lang.CharSequence")
209210
{

0 commit comments

Comments
 (0)