mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-30 16:26:16 +02:00
![]() JVM target, since Java bytecode itself has no support for properties and hence exposing properties to external Java code can only be done through getters/setters. Use the new parameters to do so: -CTautogetterprefix=XXX -CTautosetterprefix=YYY The getter/setter will get the same visibility as the property. If a getter/setter with the same naming convention was already specified for a property and this getter/setter is declared in the same class as the property, then the visibility of this existing getter/setter is modified and no new routine is generated. Newly generated getters/setters are virtual methods, because that is the only way in Java bytecode to allow redefining these getters/setters in child classes. However, that also means that using these switches can change the behvaviour of code, since normally the used property definition is only determined by the declared type of its associated class instance, and not by the actual instance type. The compiler will therefore warn when such an automatically generated getter/setter is overridden by another automatically generated getter/setter in a child class. git-svn-id: trunk@22959 - |
||
---|---|---|
.. | ||
errorct.msg | ||
errord.msg | ||
errorda.msg | ||
errordu.msg | ||
errore.msg | ||
errores.msg | ||
errorf.msg | ||
errorfi.msg | ||
errorhe.msg | ||
errorheu.msg | ||
errorid.msg | ||
erroriu.msg | ||
errorn.msg | ||
errorpl.msg | ||
errorpli.msg | ||
errorpt.msg | ||
errorptu.msg | ||
errorr.msg | ||
errorru.msg | ||
errorues.msg |