INRIA / INRIA/spoon

Error in importing some static constants in generated code

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

Description

I am facing an issue where the static imports are not getting generated as required in the output folder and hence creating a compilation error.

For ex-

Input Code -

import com.package.applicationConstant;

public class NewClass()
{

String constant = applicationConstant.address;

}

Output Code-

import applicationConstant.address;
import com.package.applicationConstant;

public class NewClass()
{

String constant = address;

}

Please if someone can help me with this issue,.

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.