Skip to content

Failure on commons-logging: Range not present on node #140

Closed

Description

@sinha108

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions