-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Deprecate Constants
utility and stop using it internally
#30851
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Milestone
Comments
sbrannen
added
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
theme: aot
An issue related to Ahead-of-time processing
labels
Jul 10, 2023
sbrannen
changed the title
Avoid use of reflection via
Deprecate Jul 10, 2023
Constants
in MBeanExporter
Constants
and stop using it internally
sbrannen
added a commit
that referenced
this issue
Jul 10, 2023
Prior to this commit, MBeanExporter used org.springframework.core.Constants which used reflection to find constant fields in the MBeanExporter class. Consequently, one had to register reflection hints in order to use MBeanExporter in a GraalVM native image. This commit addresses this by replacing the use of the `Constants` class with a simple java.util.Map which maps constant names to constant values for the autodetect constants defined in MBeanExporter. See gh-30851 Closes gh-30846
See commit 679b668 for an example of how |
sbrannen
added a commit
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
to sbrannen/spring-framework
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
that referenced
this issue
Jul 16, 2023
sbrannen
changed the title
Deprecate
Deprecate Jul 16, 2023
Constants
and stop using it internallyConstants
utility and stop using it internally
sbrannen
added a commit
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
to sbrannen/spring-framework
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
that referenced
this issue
Jul 16, 2023
sbrannen
added a commit
that referenced
this issue
Jul 19, 2023
sbrannen
added a commit
that referenced
this issue
Jul 19, 2023
sbrannen
added a commit
that referenced
this issue
Jul 19, 2023
sbrannen
added a commit
that referenced
this issue
Jul 19, 2023
sbrannen
added a commit
that referenced
this issue
Jul 19, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
sbrannen
added a commit
that referenced
this issue
Jul 31, 2023
See #31328 - I wonder if a review of the changes above should be considered to see if a similar restriction was introduced. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Overview
As discussed in #30846 (comment), since
Constants
is an outdated utility that uses reflection (which is not native-friendly), we should deprecateConstants
and stop using it internally.Related Issues
MBeanExporter
in native image #30846TransactionDefinition
constants #30854Deliverables
Constants
.Constants
in the code base.spring-context
MBeanExporter
spring-aop
CustomizableTraceInterceptor
spring-beans
PropertyPlaceholderConfigurer
XmlBeanDefinitionReader
spring-context-support
CronTriggerFactoryBean
SimpleTriggerFactoryBean
spring-jdbc
IsolationLevelDataSourceAdapter
LazyConnectionDataSourceProxy
IsolationLevelDataSourceRouter
spring-jms
DefaultMessageListenerContainer
JmsActivationSpecConfig
JmsAccessor
spring-tx
AbstractPlatformTransactionManager
DefaultTransactionDefinition
The text was updated successfully, but these errors were encountered: