Property lookupIfMissing in LookupUnlessProperty has wrong documentation #31863
Labels
area/arc
Issue related to ARC (dependency injection)
area/documentation
kind/bug
Something isn't working
Milestone
Describe the bug
LookupUnlessProperty
instantiate a bean unless the given property has the given value. For example in the following caseThe bean
ProcessorService
is only created when we have declaredkahoot.gameplay.event.skip-dlq-events
in our properties to some other value thantrue
. Now if we didn't declare this property and we still want the bean to be created we can setlookupIfMissing = true
to extend the bean "creation range"However, the documentation of this attribute says
Determines if the bean should be suppressed when the property name specified by name has not been specified at all
which is the opposite behavior to what is ocurring
Expected behavior
The documentation should say
Determines if the bean should be looked up when the property name specified by name has not been specified at all
Actual behavior
The documentation should say
Determines if the bean should be suppressed when the property name specified by name has not been specified at all
How to Reproduce?
Create a bean with the following config
and don't provide property
skip-processor
and verify that the bean is created.Output of
uname -a
orver
inux desktop-df8dhmh.home 6.1.12-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 15 04:35:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.5" 2022-10-18 LTS
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.4.2
Additional information
I can provide a pull request to change it if you agree
The text was updated successfully, but these errors were encountered: