From d69455712ca0954b75c3c4f80f79c34a8a0b9493 Mon Sep 17 00:00:00 2001 From: Kyri Petrou Date: Sun, 22 Oct 2023 10:36:43 +1100 Subject: [PATCH 1/2] Add filter for `jdk.internal` annotations --- src/core/macro.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/macro.scala b/src/core/macro.scala index fa2d1c0c..2fad2edb 100644 --- a/src/core/macro.scala +++ b/src/core/macro.scala @@ -266,5 +266,6 @@ object Macro: private def filterAnnotation(a: Term): Boolean = a.tpe.typeSymbol.maybeOwner.isNoSymbol || - a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal" + a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal" || + a.tpe.typeSymbol.owner.fullName != "jdk.internal" } From 01614fcd29e7d5ea96a07e4073e3997e12c4fd60 Mon Sep 17 00:00:00 2001 From: Kyri Petrou Date: Mon, 23 Oct 2023 07:47:09 +1100 Subject: [PATCH 2/2] Fix filter expression --- src/core/macro.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/macro.scala b/src/core/macro.scala index 2fad2edb..4a6c2a12 100644 --- a/src/core/macro.scala +++ b/src/core/macro.scala @@ -266,6 +266,6 @@ object Macro: private def filterAnnotation(a: Term): Boolean = a.tpe.typeSymbol.maybeOwner.isNoSymbol || - a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal" || - a.tpe.typeSymbol.owner.fullName != "jdk.internal" + (a.tpe.typeSymbol.owner.fullName != "scala.annotation.internal" && + a.tpe.typeSymbol.owner.fullName != "jdk.internal") }