Browse Source

* make sure that wrapped methods for property accesses are added to the
symtable of the current structdef

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

Jonas Maebe 14 years ago
parent
commit
478a0376e3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/pjvm.pas

+ 2 - 0
compiler/pjvm.pas

@@ -598,6 +598,7 @@ implementation
             result:=pd;
             exit
           end;
+        symtablestack.push(obj.symtable);
         result:=tprocdef(pd.getcopy);
         result.visibility:=vis;
         visname:=visibilityName[vis];
@@ -612,6 +613,7 @@ implementation
         result.synthetickind:=tsk_callthrough;
         { so we know the name of the routine to call through to }
         result.skpara:=pd;
+        symtablestack.pop(obj.symtable);
       end;
 
 end.