Closed hantsy closed 10 months ago
Same issue for us!
Observing the same in Spring Boot 3.2.0
Just met the same issue in Spring Boot 3.2.0. From the thrown error, making the following changes resolved the issue (tested against the main branch, 1.0.1-SNAPSHOT):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<parameters>true</parameters>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
</plugin>
Hope to release the 1.0.1 version soon!
For ick temporary workaround I copied single class io.leangen.graphql.spqr.spring.web.dto.GraphQLRequest.java into my project that is compiled with "-parameters"
Released v1.0.1 to address this. Thanks everyone!
Same issue in Sprint boot 3.3.1 as well,
Just met the same issue in Spring Boot 3.2.0. From the thrown error, making the following changes resolved the issue (tested against the main branch, 1.0.1-SNAPSHOT):
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <parameters>true</parameters> <forceJavacCompilerUse>true</forceJavacCompilerUse> </configuration> </plugin>
Hope to release the 1.0.1 version soon!
Same issue in Spring boot 3.3.1, suggested change is fixing it.
Same issue in Sprint boot 3.3.1 as well,
Just met the same issue in Spring Boot 3.2.0. From the thrown error, making the following changes resolved the issue (tested against the main branch, 1.0.1-SNAPSHOT):
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <parameters>true</parameters> <forceJavacCompilerUse>true</forceJavacCompilerUse> </configuration> </plugin>
Hope to release the 1.0.1 version soon!
Same issue in Spring boot 3.3.1, suggested change is fixing it.
So the actual fix is to have @ConstructorProperties annotation with GraphQLRequest (in this example), POM changes not required.
I tried to upgrade my example project to Spring Boot 3.2.0-RC2, all tests are failed with the following exceptions.
https://github.com/hantsy/spring-graphql-sample/tree/master/graphql-spqr