atteo / classindex

Index classes, do not scan them!
Apache License 2.0
263 stars 42 forks source link

Build crashes in a project using Java records #67

Closed sawickil closed 3 years ago

sawickil commented 3 years ago

Looks like there is a problem with the scanning process when Java record is used

javax.lang.model.element.UnknownElementException: Unknown element: "value" at java.compiler@16/javax.lang.model.util.AbstractElementVisitor6.visitUnknown(AbstractElementVisitor6.java:129) at java.compiler@16/javax.lang.model.element.ElementVisitor.visitRecordComponent(ElementVisitor.java:225) at java.compiler@16/javax.lang.model.util.AbstractElementVisitor6.visitRecordComponent(AbstractElementVisitor6.java:166) at jdk.compiler/com.sun.tools.javac.code.Symbol$RecordComponent.accept(Symbol.java:1836) at java.compiler@16/javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:153) at java.compiler@16/javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:140) at java.compiler@16/javax.lang.model.util.ElementScanner6.visitType(ElementScanner6.java:193) at org.atteo.classindex.processor.ClassIndexProcessor$1.visitType(ClassIndexProcessor.java:168) at org.atteo.classindex.processor.ClassIndexProcessor$1.visitType(ClassIndexProcessor.java:152) at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1564) at org.atteo.classindex.processor.ClassIndexProcessor.process(ClassIndexProcessor.java:152)

sentinelt commented 3 years ago

Version 3.11 contains the fix. Should appear in Maven Central in a few days.