Browse Source

* fixed writing jvm type for string constants after r22020

git-svn-id: trunk@22123 -
Jonas Maebe 13 năm trước cách đây
mục cha
commit
b353a2ff27
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      compiler/jvm/jvmdef.pas

+ 2 - 1
compiler/jvm/jvmdef.pas

@@ -929,7 +929,8 @@ implementation
             begin
               csym:=tconstsym(sym);
               { some constants can be untyped }
-              if assigned (csym.constdef) then
+              if assigned(csym.constdef) and
+                 not(csym.consttyp in [constwstring,conststring]) then
                 begin
                   result:=jvmencodetype(csym.constdef,false);
                   if withsignature and