Browse Source

* fixed checking for missing "override" for Java code

git-svn-id: branches/jvmbackend@18438 -
Jonas Maebe 14 years ago
parent
commit
fc2d239f95
1 changed files with 1 additions and 2 deletions
  1. 1 2
      compiler/nobj.pas

+ 1 - 2
compiler/nobj.pas

@@ -284,9 +284,8 @@ implementation
                (is_objccategory(_class) and
                (is_objccategory(_class) and
                  not(po_reintroduce in pd.procoptions)) or
                  not(po_reintroduce in pd.procoptions)) or
                { new one does not have override in case of objpas/objc/java class/intf/proto }
                { new one does not have override in case of objpas/objc/java class/intf/proto }
-               ((is_class_or_interface_or_objc(_class) or is_objectpascal_helper(_class)) and
+               ((is_class_or_interface_or_objc_or_java(_class) or is_objectpascal_helper(_class)) and
                 not is_objccategory(_class) and
                 not is_objccategory(_class) and
-                not is_java_class_or_interface(_class) and
                 not(po_overridingmethod in pd.procoptions)
                 not(po_overridingmethod in pd.procoptions)
                )
                )
               )
               )