From b353a2ff270b06a83c9c4d9778f15a10600fa1ae Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sun, 19 Aug 2012 13:47:50 +0000 Subject: [PATCH] * fixed writing jvm type for string constants after r22020 git-svn-id: trunk@22123 - --- compiler/jvm/jvmdef.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/jvm/jvmdef.pas b/compiler/jvm/jvmdef.pas index ae56941128..e028e6769b 100644 --- a/compiler/jvm/jvmdef.pas +++ b/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