From 9b11e0d79b68f3cf68e2788bfa3c5403f628ab79 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 3 Oct 2024 17:11:42 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=E2=80=9CImprove=E2=80=9D=20the=20test=20fo?= =?UTF-8?q?r=20parameter=20type=20equality?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/saxonica/xmldoclet/scanners/XmlExecutableElement.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmldoclet/src/main/java/com/saxonica/xmldoclet/scanners/XmlExecutableElement.java b/xmldoclet/src/main/java/com/saxonica/xmldoclet/scanners/XmlExecutableElement.java index 1625a32..b19b268 100644 --- a/xmldoclet/src/main/java/com/saxonica/xmldoclet/scanners/XmlExecutableElement.java +++ b/xmldoclet/src/main/java/com/saxonica/xmldoclet/scanners/XmlExecutableElement.java @@ -242,7 +242,8 @@ private ExecutableElement findImplements(List ifaces) { } private boolean sameType(TypeMirror t1, TypeMirror t2) { - return t1.equals(t2); + // Cheap and cheerful test + return t1.toString().equals(t2.toString()); } } From bf6558956733337e30515a7bd2abfac805713ab3 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 3 Oct 2024 17:12:08 +0100 Subject: [PATCH 2/2] Update README.md and bump version --- README.md | 4 ++++ gradle.properties | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ccc5df..3db6d2a 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,10 @@ incomplete or incorrect, please [open an issue](https://github.com/Saxonica/xmld ## Change log +* **0.11.0** Improve type equality comparison when looking for overrides + + The solution here is a fairly awful hack. Will have to come back to this and try to do better. + * **0.10.0** Fix superclass interfaces; output information about type parameters Moved the interface information about a superclass into the superclass diff --git a/gradle.properties b/gradle.properties index 710fc47..43b3c89 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -docletVersion=0.10.0 -schemaVersion=0.10.0 +docletVersion=0.11.0 +schemaVersion=0.11.0 docletTitle=XmlDoclet docletName=xmldoclet