summaryrefslogtreecommitdiff
path: root/compiler/jvm
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-06-14 10:35:25 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-06-14 10:35:25 +0000
commit19cb8640c136ce8b256fd25c5ce1ac3efd3f2a3b (patch)
tree85458397bd056a16ead5d1b4e8f1aeefcc751df7 /compiler/jvm
parent30debc05dad2deaf7b0a067d06392108c717f959 (diff)
downloadfpc-19cb8640c136ce8b256fd25c5ce1ac3efd3f2a3b.tar.gz
* don't generate a getter/setter if no explicit prefix has been specified
and the visibility of the specified getter/setter is >= the visibility of the property git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@27952 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/jvm')
-rw-r--r--compiler/jvm/symcpu.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/jvm/symcpu.pas b/compiler/jvm/symcpu.pas
index c563b00b60..8da9056cae 100644
--- a/compiler/jvm/symcpu.pas
+++ b/compiler/jvm/symcpu.pas
@@ -520,7 +520,8 @@ implementation
we can call it from all contexts in which the
property is visible }
if wrongvisibility or
- (sym.RealName<>pprefix^+RealName) then
+ ((pprefix^<>'') and
+ (sym.RealName<>pprefix^+RealName)) then
newaccesspd:=create_getter_or_setter_for_property(orgaccesspd,getset=palt_read)
end;
fieldvarsym: