Der Fehler: < /p>
Code: Select all
java: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x3b67ef9b) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x3b67ef9b
Nachdem ich online gesucht habe, stellte ich fest, dass dieser Fehler mit einem Problem in openjdk 15 zusammenhängt, aber ich verwende derzeit openjdk 16 , daher ist ich verwirrt, dass ich immer noch zu einem Fehler ist. https://github.com/rzwitserloot/lombok/ ... -748616687 Aber nach dem Implementieren des Plugins scheint es keinen Unterschied zu machen, und ich erhalte immer noch den Fehler. /> Klasse mit @Data (Lombok): < /h3>
Code: Select all
import lombok.Data;
@Data
public class Ingredient {
private final String id;
private final String name;
private final Type type;
public enum Type {
WRAP, PROTEIN, VEGGIES, CHEESE, SAUCE
}
}
< /code>
Meine POM -Datei: < /h3>
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.4.4
sia
taco-cloud
0.0.1-SNAPSHOT
taco-cloud
Taco Cloud Project
16
org.springframework.boot
spring-boot-starter-thymeleaf
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-devtools
runtime
true
org.springframework.boot
spring-boot-starter-test
test
org.projectlombok
lombok
org.springframework.boot
spring-boot-maven-plugin