-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P3
-
Affects Version/s: 10
-
Component/s: tools
-
Verified
New Class AST nodes with an enclosing instance that incorrectly return a null have been fixed. In some cases, the `getEnclosingExpression()` method of the NewClassTree AST node was returning null for code like:
```
<enclosing>.new <Class>(...) { ... }
```
This has been fixed, and getEnclosingExpression() now returns the enclosing expression.
```
<enclosing>.new <Class>(...) { ... }
```
This has been fixed, and getEnclosingExpression() now returns the enclosing expression.