From f435ed9191a29f42bdcaf909c998ac8cd364c5f3 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 14 Dec 2023 11:07:00 +0100 Subject: [PATCH] Stabilize reflect flag `JavaAnnotation` Flag added in #16260 --- library/src/scala/quoted/Quotes.scala | 2 +- tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/library/src/scala/quoted/Quotes.scala b/library/src/scala/quoted/Quotes.scala index 3222391fefb8..7bf88b1e084a 100644 --- a/library/src/scala/quoted/Quotes.scala +++ b/library/src/scala/quoted/Quotes.scala @@ -4516,7 +4516,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching => def JavaStatic: Flags /** Is this an annotation defined in Java */ - @experimental def JavaAnnotation: Flags + def JavaAnnotation: Flags /** Is this symbol `lazy` */ def Lazy: Flags diff --git a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala index afa10ad6af6f..239882e099b1 100644 --- a/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala +++ b/tests/run-tasty-inspector/stdlibExperimentalDefinitions.scala @@ -72,7 +72,6 @@ val experimentalDefinitionInLibrary = Set( "scala.quoted.Quotes.reflectModule.SymbolMethods.paramVariance", // Can be stabilized in 3.4.0 (unsure) or later "scala.quoted.Quotes.reflectModule.CompilationInfoModule.XmacroSettings", - "scala.quoted.Quotes.reflectModule.FlagsModule.JavaAnnotation", // Cant be stabilized yet. // Need newClass variant that can add constructor parameters. // Need experimental annotation macros to check that design works.