* fixed fully qualified class names passed to JLClass.forName()

(components must be separated by '.', not '/')

git-svn-id: branches/jvmbackend@18761 -
This commit is contained in:
Jonas Maebe 2011-08-20 08:33:40 +00:00
parent dd32efa9ff
commit 687e9fb6dc

View File

@ -92,7 +92,7 @@ interface
implementation
uses
verbose,globals,globtype,constexp,
verbose,globals,globtype,constexp,cutils,
symbase,symconst,symdef,symsym,symtable,aasmbase,aasmdata,
defutil,defcmp,jvmdef,
cgbase,cgutils,pass_1,pass_2,
@ -413,6 +413,7 @@ implementation
encodedtype:=jvmencodetype(pvs.vardef,false);
if pushaddr then
encodedtype:='['+encodedtype;
replace(encodedtype,'/','.');
newpara:=ccallnode.createinternmethod(cloadvmtaddrnode.create(ctypenode.create(jlclass)),'FORNAME',
ccallparanode.create(cstringconstnode.createstr(encodedtype),nil));
end