Skip to content

Deprecate reflect Flags.Static #16568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/scala/quoted/runtime/impl/QuotesImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2794,7 +2794,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
def Scala2x: Flags = dotc.core.Flags.Scala2x
def Sealed: Flags = dotc.core.Flags.Sealed
def StableRealizable: Flags = dotc.core.Flags.StableRealizable
def Static: Flags = dotc.core.Flags.JavaStatic
@deprecated("Use JavaStatic instead", "3.3.0") def Static: Flags = dotc.core.Flags.JavaStatic
def Synthetic: Flags = dotc.core.Flags.Synthetic
def Trait: Flags = dotc.core.Flags.Trait
def Transparent: Flags = dotc.core.Flags.Transparent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ object Extractors {
if (flags.is(Flags.Scala2x)) flagList += "Flags.Scala2x"
if (flags.is(Flags.Sealed)) flagList += "Flags.Sealed"
if (flags.is(Flags.StableRealizable)) flagList += "Flags.StableRealizable"
if (flags.is(Flags.Static)) flagList += "Flags.javaStatic"
if (flags.is(Flags.Synthetic)) flagList += "Flags.Synthetic"
if (flags.is(Flags.Trait)) flagList += "Flags.Trait"
if (flags.is(Flags.Transparent)) flagList += "Flags.Transparent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ object SourceCode {
if (flags.is(Flags.Scala2x)) flagList += "scala2x"
if (flags.is(Flags.Sealed)) flagList += "sealed"
if (flags.is(Flags.StableRealizable)) flagList += "stableRealizable"
if (flags.is(Flags.Static)) flagList += "javaStatic"
if (flags.is(Flags.Synthetic)) flagList += "synthetic"
if (flags.is(Flags.Trait)) flagList += "trait"
if (flags.is(Flags.Transparent)) flagList += "transparent"
Expand Down
2 changes: 1 addition & 1 deletion library/src/scala/quoted/Quotes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4355,7 +4355,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
def StableRealizable: Flags

/** Is this symbol marked as static. Mapped to static Java member */
def Static: Flags
@deprecated("Use JavaStatic instead", "3.3.0") def Static: Flags

/** Is this symbol to be tagged Java Synthetic */
def Synthetic: Flags
Expand Down