From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by sourceware.org (Postfix) with ESMTPS id 194053858C2C for ; Wed, 3 Jan 2024 23:33:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 194053858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 194053858C2C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704324838; cv=none; b=q15xclpob2Oqg5qV6cF0XqOGl1KbICNfvF2aOeNNVXkv3GF3tIGTnFU08CNxoUKXKdOctptBN5HGlICU5jM2BMJVjnbyhkJ+Wfk/SxVf3KrCnoWxYoAAPpFXspp8aOzjjOgdUA1KDbqpqtngxZzagQ8uD9yRiD1b/x661WxAjms= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704324838; c=relaxed/simple; bh=h0f/JXI5V5pMYkdgLIpAKtF32Zb9KJ2G/vDM/yQAcWY=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=J0FW1dMaaCMiD6Y/TpZ2Sbbt5RnjNqEN1mXkh872PxbMFAypnWKzlqD0voew3t7xa1/poOzYC63KrtrvXvKvx8pcg+GACroMt/e9bgaoNyN0GAh6xkmKdBIm55B2CuNzh6zwCoRprIAAzMYbnQW8huZ+iQGff0lv8gyAcuqE370= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-204e1203a22so3415858fac.1 for ; Wed, 03 Jan 2024 15:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704324835; x=1704929635; darn=sourceware.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=h0f/JXI5V5pMYkdgLIpAKtF32Zb9KJ2G/vDM/yQAcWY=; b=i0s/oPZXBcRn2BLY04ZiHfsxm3/KNl96QBXv6oC3EHdw9z4uJcp/e4rs3iN/cxoJMb ihzWFM965EB3IzGqS2VzPDUPbdqSRUP9tSuvzwGzxqyKJ5C72DJBstT/DZUnVG8lMEIU XQmB7wnV4rQFXl1B8OIhVKN0d4w2V8O7IWRgQxoI8It9T90FN62Lk2TSeBVKnNktO5Rs GscXXNKMFvEAc89PAQQ3u59SkyB1P/BeXQIC0nnk36k8gWBBkHB2dyiQQuXgdONZh1Jf awZokSTP9lep8n4mbHWpn6U2Hq6M3M8u7+8LNg33l65cBAp69dMEYCRrC3lmVq5CWcDX YvDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704324835; x=1704929635; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=h0f/JXI5V5pMYkdgLIpAKtF32Zb9KJ2G/vDM/yQAcWY=; b=tGdnH/EKPbddRaTFA8hPjx7J6YO9eq+5XX29tu1JcmQGJ16dPRKnGQwJX4YsjZVUyi eVMiPKKWUxa/wCbizAiCYyOapurg459Gz6PH+OaEHLHMWe3vyV7QeYVuNbaxhLD26up1 6AQ7M0UhM77z8RYanLFv4DKaWtCxOJIJ2P1uALuwwDGMdWpCtOlqnj1ImlbpZdz6Qm5P aSIvByY5bCqVVwdFrrtBv0Kcj23qro/+PpLAncPdsWu0pZTcaHHfIePk1zrCJptKTEpn rvlnSQtKH7u5Wke0viIS3XsKybYvqjjxY/xxj0osmuN554ZSymCsaBsh+ZvnDLIIxOrb LI2Q== X-Gm-Message-State: AOJu0YyFc+k534uPVE3M2KIw0mSiB/85Uc/3Fa8mOEcyA+JJo1qhoO7z n34uUPcPOvG9H+DUHOQgQ9Zi9oSF+HNC4/ZH2LPqWcKR X-Google-Smtp-Source: AGHT+IEWaO62fQKo3BtITQyWzkHj74UfxAQEJrpplZ5x7Egdvc5e7U6JhQZ94+aznkoWPind/wvhyuFuMAuOvNjLCYg= X-Received: by 2002:a05:6870:2254:b0:1fb:75b:999a with SMTP id j20-20020a056870225400b001fb075b999amr18508245oaf.73.1704324835187; Wed, 03 Jan 2024 15:33:55 -0800 (PST) MIME-Version: 1.0 From: Panicz Maciej Godek Date: Thu, 4 Jan 2024 00:33:43 +0100 Message-ID: Subject: Class does not implement the requested interface To: kawa Content-Type: multipart/alternative; boundary="000000000000621e89060e130c5f" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000621e89060e130c5f Content-Type: text/plain; charset="UTF-8" I have another weird bug. When I run a test suite for GRASP (by running Kawa directly, without precompiling), I get the following error: Exception in thread "main" java.lang.IncompatibleClassChangeError: Class editor.interfaces.NoEditor does not implement the requested interface editor.interfaces.WithCursor at ;editor.CharPainter.markEditorCursor$Ex(text-painter.scm:85) (stack trace continues) The thing is, that all the required methods from the interface WithCursor are implemented by NoEditor. When I analyze the compiled classes, I get this (sorry for the formatting): $ javap WithCursor.class Compiled from "painting.scm" public interface editor.interfaces.WithCursor { public abstract void markCursor$Ex(gnu.math.RealNum, gnu.math.RealNum); public abstract editor.interfaces.Position cursorPosition(); public abstract void setCursorColumn$Ex(gnu.math.RealNum); public abstract gnu.math.RealNum cursorColumn(); public abstract gnu.math.RealNum currentLineHeight(); public abstract gnu.math.RealNum previousLineHeight(); } $ javap Editor.class Compiled from "elements.scm" public interface editor.interfaces.Editor extends editor.interfaces.Embeddable,java.lang.Cloneable,editor.interfaces.WithCursor { public abstract void addPostDrawAction$Ex(gnu.mapping.Procedure); } $ javap NoEditor.class Compiled from "elements.scm" public class editor.interfaces.NoEditor extends editor.interfaces.NullPane implements editor.interfaces.Editor { public editor.interfaces.Position marked; public void addPostDrawAction$Ex(gnu.mapping.Procedure); public void markCursor$Ex(gnu.math.RealNum, gnu.math.RealNum); public gnu.math.RealNum currentLineHeight(); public gnu.math.RealNum previousLineHeight(); public editor.interfaces.Position cursorPosition(); public void setCursorColumn$Ex(gnu.math.RealNum); public gnu.math.RealNum cursorColumn(); public editor.interfaces.NoEditor(); } So it seems that all the requested methods of WithCursor (in particular mark-cursor!) are present in the compiled code NoEditor isn't used by the compiled code (it's a null-object that is substituted by the actual instance early in the program's life time), but I wanted to use it in the test suite to limit the dependencies of the test - so I'm not sure if the compiled code wouldn't break here as well. But I wonder why Kawa claims that the interface isn't implemented when clearly all the required methods are present. --000000000000621e89060e130c5f--