ソースを参照

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