File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ typet string_length_type()
192
192
void java_string_library_preprocesst::add_string_type (
193
193
const irep_idt &class_name, symbol_tablet &symbol_table)
194
194
{
195
- class_typet string_type;
195
+ java_class_typet string_type;
196
196
string_type.set_tag (class_name);
197
197
string_type.components ().resize (3 );
198
198
string_type.components ()[0 ].set_name (" @java.lang.Object" );
@@ -204,6 +204,7 @@ void java_string_library_preprocesst::add_string_type(
204
204
string_type.components ()[2 ].set_name (" data" );
205
205
string_type.components ()[2 ].set_pretty_name (" data" );
206
206
string_type.components ()[2 ].type () = pointer_type (java_char_type ());
207
+ string_type.set_access (ID_public);
207
208
string_type.add_base (symbol_typet (" java::java.lang.Object" ));
208
209
if (class_name!=" java.lang.CharSequence" )
209
210
{
You can’t perform that action at this time.
0 commit comments