INRIA / INRIA/spoon

[Bug] Issue when the class from a custom namespace has been declared as an array type.

Open
#4,642 2 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 namespace from the original source code is getting replaced with some invalid namespace when we declare the class as an array type.

Input:
```com.ibm.ws.webservices.engine.description.ParameterDesc[] _params0 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {};```

Actual:
```_class_pkgname_ _params0 = new org.jboss.axis.description.ParameterDesc[] {};```

Expected:
```com.ibm.ws.webservices.engine.description.ParameterDesc[] _params0 = new org.jboss.axis.description.ParameterDesc[] {};```

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.