Browse Source

* encode java_jlstring instead of using a hardcoded string constant for
the type encoding of unicodestring

git-svn-id: branches/jvmbackend@18571 -

Jonas Maebe 14 years ago
parent
commit
71cd31159c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/jvmdef.pas

+ 1 - 1
compiler/jvmdef.pas

@@ -194,7 +194,7 @@ implementation
                 { translated into java.lang.String }
                 st_widestring,
                 st_unicodestring:
-                  encodedstr:=encodedstr+'Ljava/lang/String;';
+                  result:=jvmaddencodedtype(java_jlstring,false,encodedstr,forcesignature,founderror);
                 st_ansistring:
                   result:=jvmaddencodedtype(java_ansistring,false,encodedstr,forcesignature,founderror);
                 st_shortstring: