mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +02:00
* use invokespecial for "strict private" (= Java "private") rather than for
plain "private" (~ Java "package") methods git-svn-id: branches/jvmbackend@18750 -
This commit is contained in:
parent
7f22a2f223
commit
da5bd3b0bd
@ -2063,7 +2063,7 @@ implementation
|
||||
begin
|
||||
if (po_classmethod in pd.procoptions) then
|
||||
opc:=a_invokestatic
|
||||
else if (pd.visibility=vis_private) or
|
||||
else if (pd.visibility=vis_strictprivate) or
|
||||
(pd.proctypeoption=potype_constructor) or
|
||||
inheritedcall then
|
||||
opc:=a_invokespecial
|
||||
@ -2081,7 +2081,7 @@ implementation
|
||||
begin
|
||||
if (po_staticmethod in pd.procoptions) then
|
||||
opc:=a_invokestatic
|
||||
else if (pd.visibility=vis_private) or
|
||||
else if (pd.visibility=vis_strictprivate) or
|
||||
(pd.proctypeoption=potype_constructor) or
|
||||
inheritedcall then
|
||||
opc:=a_invokespecial
|
||||
|
Loading…
Reference in New Issue
Block a user