Explorar o código

* fixed writing jvm type for string constants after r22020

git-svn-id: trunk@22123 -
Jonas Maebe %!s(int64=13) %!d(string=hai) anos
pai
achega
b353a2ff27
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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