codetools: jvm: has no iinterface

git-svn-id: branches/fixes_1_4@48330 -
This commit is contained in:
mattias 2015-03-13 00:27:56 +00:00
parent 11fd274c95
commit 3b17cceb51

View File

@ -4543,6 +4543,8 @@ begin
// default interface is IDispatch
BaseClassName:='IDispatch';
end else if ClassNode.Desc in AllClassInterfaces then begin
if Scanner.Values.IsDefined('CPUJVM') then
exit; // JVM has no default interface
// Delphi has as default interface IInterface
// FPC has as default interface IUnknown and an alias IInterface = IUnknown
if CompareSrcIdentifiers(ClassIdentNode.StartPos,'IUnknown') then exit;