Browse Source

* 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 -

Jonas Maebe 14 years ago
parent
commit
386136ba7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pjvm.pas

+ 1 - 1
compiler/pjvm.pas

@@ -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;