Prepend existing prefix to new feature name prefix in GenerationContext.withName() #28974
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: superseded
An issue that has been superseded by another
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
As discussed in #28928 (comment), we should change the semantics of
GenerationContext.withName(String)
so that an existing "feature name prefix" is not lost.Specifically, we should prepend any existing prefix to a new provided prefix to ensure that there are no clashes with generated names.
This change may also be helpful in implementing #28204.
As mentioned by @snicoll, "the counter in
DefaultGenerationContext
[may no longer] need to be transmitted from one context to another."The text was updated successfully, but these errors were encountered: