Closed bkushigian closed 3 years ago
Looking into Major, this stacktrace corresponds to the following code in MajorPluginTaskListener:
Enter enter = (Enter) ReflectionProvider.getField(javac, "enter");
Object typeEnvs = ReflectionProvider.getField(enter, "typeEnvs");
This looks up javac.enter.typeEnvs
which is needed to create the Env<AttrContext>
(which is what the Mutator needs to mutate stuff). For some reason, this is coming back null
.
This is an error with Major (reproduced without Gradle build)
Bug Inducing Input
I cloned the Spring Boot Project and hooked into the
spring-boot-project:spring-boot-actuator-autoconfigure
subproject with the following diffs:build.gradle:
settings.gradle:
spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle:
Building with
./gradlew :spring-boot-project:spring-boot-actuator-autoconfigure:build --stacktrace
fails with the following relevant stack trace:Result