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 years ago
parent
commit
00df370d36
1 changed files with 4 additions and 0 deletions
  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;