-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
A clear and concise description of what the bug is.
Running codeanalyzer on Apache commons-logging at analysis level 1 results in this failure:
Caused by: java.lang.RuntimeException: Range not present on node {
}
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.storeInitialTextForOneNode(LexicalPreservingPrinter.java:494)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.access$300(LexicalPreservingPrinter.java:62)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter$2.process(LexicalPreservingPrinter.java:479)
at com.github.javaparser.ast.visitor.TreeVisitor.visitBreadthFirst(TreeVisitor.java:79)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.lambda$storeInitialText$3(LexicalPreservingPrinter.java:482)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.storeInitialText(LexicalPreservingPrinter.java:462)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.lambda$setup$0(LexicalPreservingPrinter.java:98)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.setup(LexicalPreservingPrinter.java:97)
at com.ibm.cldk.SymbolTable.extractAll(SymbolTable.java:1164)
at com.ibm.cldk.CodeAnalyzer.analyze(CodeAnalyzer.java:196)
at com.ibm.cldk.CodeAnalyzer.run(CodeAnalyzer.java:119)
... 7 more
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Logs
If applicable, add logs to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working