Browse Source

* don't give an internalerror when adding a constructor to a Java
class (by default it will never be called either though)

git-svn-id: branches/jvmbackend@18465 -

Jonas Maebe 14 năm trước cách đây
mục cha
commit
00df370d36
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      compiler/psub.pas

+ 4 - 0
compiler/psub.pas

@@ -492,6 +492,10 @@ implementation
                       addstatement(newstatement,
                           ccallnode.createintern('fpc_help_destructor',para));
                     end
+                else if is_javaclass(current_structdef) then
+                  begin
+                    { nothing to do }
+                  end
                 else
                   internalerror(200305105);
               end;