mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:39:25 +02:00
* declare enumclass "values" method as "static" (necessary so that the JVM
recognises the class as a proper enum class) git-svn-id: branches/jvmbackend@18650 -
This commit is contained in:
parent
112d17af84
commit
386136ba7c
@ -294,7 +294,7 @@ implementation
|
||||
{ insert "public static values: array of enumclass" that returns $VALUES.clone()
|
||||
(rather than a dynamic array and using clone --which we don't support yet for arrays--
|
||||
simply use a fixed length array and copy it) }
|
||||
if not str_parse_method_dec('function values: __FPC_TEnumValues;',potype_function,true,enumclass,pd) then
|
||||
if not str_parse_method_dec('function values: __FPC_TEnumValues;static;',potype_function,true,enumclass,pd) then
|
||||
internalerror(2011062301);
|
||||
include(pd.procoptions,po_staticmethod);
|
||||
pd.synthetickind:=tsk_jvm_enum_values;
|
||||
|
Loading…
Reference in New Issue
Block a user