Преглед на файлове

* 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 години
родител
ревизия
00df370d36
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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;