mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 09:59:08 +02:00
* mark unit-level routines as "final", since they can't be overridden
git-svn-id: branches/jvmbackend@18434 -
This commit is contained in:
parent
3f436deb16
commit
20e55cd54e
@ -677,7 +677,8 @@ implementation
|
||||
result:=result+'static ';
|
||||
if is_javainterface(tdef(pd.owner.defowner)) then
|
||||
result:=result+'abstract ';
|
||||
if po_finalmethod in pd.procoptions then
|
||||
if (pd.procsym.owner.symtabletype in [globalsymtable,staticsymtable,localsymtable]) or
|
||||
(po_finalmethod in pd.procoptions) then
|
||||
result:=result+'final ';
|
||||
result:=result+pd.jvmmangledbasename;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user