INRIA / INRIA/spoon

[Bug] Issue when a variable from a custom namespace has been used as an argument in the constructor.

Open
#4,643 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

The getExecutable() method from CtConstructorCall is returning "java.lang.Object()" when we use a variable from a custom namespace as an argument inside a constructor. The issue occurs even when the variable is initialized within the same class and used as an argument inside the constructor.

Input:
```
new com.ibm.ws.webservices.engine.description.ParameterDesc("Input",com.ibm.ws.webservices.engine.description.ParameterDesc.IN)
```
Actual:
```
java.lang.Object();
```
Expected:
```
com.ibm.ws.webservices.engine.description.ParameterDesc(java.lang.String,*argument type*)
```
Note:
We are using snipper pretty printer from spoon.

* OS: Windows 10
* JDK: 11
* Spoon version: 10.0.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.