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
IfBuildProperty on classes with ServerRequestFilter causes build to fail #29115
Comments
Postremus
added
area/resteasy-reactive
and removed
env/windows
Impacts Windows machines
triage/needs-triage
labels
Nov 8, 2022
/cc @FroMage, @geoand, @stuartwdouglas |
Interesting as I never thought of this combination... Let me see what can be done |
#29118 takes care of the root cause. However there is still a problem if you use |
geoand
added a commit
that referenced
this issue
Nov 8, 2022
Take conditional annotations into account for Request and Response filters
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 10, 2022
…ters Fixes: quarkusio#29115 (cherry picked from commit 0b512a3)
pedroh-pereira
pushed a commit
to pedroh-pereira/quarkus
that referenced
this issue
Nov 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have a ServerRequestFilter, which I only need to be active sometimes.
I therefore wanted to deactivate it by default with
@IfBuildProperty
.However, this results in the exception from below.
Expected behavior
I can remove this bean with IfBuildProperty.
Actual behavior
How to Reproduce?
Download the reproducer:
filter-ifproperty.zip
mvn clean install
exception from above happens
When you now remove the IfBuildProperty annotation from the MagicFIlter class, and build the project again, it works.
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19044.2130]
Output of
java -version
openjdk 19 2022-09-20 OpenJDK Runtime Environment Temurin-19+36 (build 19+36) OpenJDK 64-Bit Server VM Temurin-19+36 (build 19+36, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.4.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 19, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\19 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: