Ambiguous behavior for ClassNameGenerator::generateClassName #28517
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
ClassNameGenerator
has two variants for thegenerateClassName
feature. One that takes a targetClass<?>
and another that takes a targetString
. I'm a bit confused by the concept of a target here and I think we should explain that a bit more in the javadocs.These methods also have different behavior:
Even if the difference of behavior is intended, the name and docs are very similar. Also, a common use case for the
ClassNameGenerator
is about generating sources in a specific package to work around visibility issues. The second variant can make this case more difficult to achieve.As a side note, this class is also referring to the now defunct
@see GeneratedClassName
.cc @philwebb @snicoll
The text was updated successfully, but these errors were encountered: