Browse Source

* use invokespecial for "strict private" (= Java "private") rather than for
plain "private" (~ Java "package") methods

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

Jonas Maebe 14 years ago
parent
commit
da5bd3b0bd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/jvm/hlcgcpu.pas

+ 2 - 2
compiler/jvm/hlcgcpu.pas

@@ -2063,7 +2063,7 @@ implementation
                 begin
                 begin
                   if (po_classmethod in pd.procoptions) then
                   if (po_classmethod in pd.procoptions) then
                     opc:=a_invokestatic
                     opc:=a_invokestatic
-                  else if (pd.visibility=vis_private) or
+                  else if (pd.visibility=vis_strictprivate) or
                      (pd.proctypeoption=potype_constructor) or
                      (pd.proctypeoption=potype_constructor) or
                      inheritedcall then
                      inheritedcall then
                     opc:=a_invokespecial
                     opc:=a_invokespecial
@@ -2081,7 +2081,7 @@ implementation
           begin
           begin
             if (po_staticmethod in pd.procoptions) then
             if (po_staticmethod in pd.procoptions) then
               opc:=a_invokestatic
               opc:=a_invokestatic
-            else if (pd.visibility=vis_private) or
+            else if (pd.visibility=vis_strictprivate) or
                (pd.proctypeoption=potype_constructor) or
                (pd.proctypeoption=potype_constructor) or
                inheritedcall then
                inheritedcall then
               opc:=a_invokespecial
               opc:=a_invokespecial