Skip to content

Fix detail formatter and logical structure support for same-package type references #1493

@eric-milles

Description

@eric-milles

When a detail formatter or logical structure snippet makes reference to a type in the same package as the target object, evaluation fails with "unable to resolve class ..." For example, a detail formatter for org.codehaus.groovy.ast.expr.PropertyExpression could be declared as:

getObjectExpression().getText() + (isSpreadSafe() ? "*" : "") + (isSafe() ? "?" : "") + "." + (getProperty() instanceof ConstantExpression ? "" : "(") + getProperty().getText() + (getProperty() instanceof ConstantExpression ? "" : ")")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions