scons
scons copied to clipboard
SCons doesn't properly process anonymous inner class
- Link to SCons Users thread discussing your issue. https://pairlist4.pair.net/pipermail/scons-users/2019-May/007788.html
- Version of SCons 3.0.5
- Version of Python 3.7.0
- Version of JDK 1.8.0_144
- Which python distribution if applicable python.org
- How you installed SCons python setup.py install
- What Platform are you on? Windows 7
- How to reproduce your issue?
SConstruct
print([str(cls) for cls in Java('.','.')])
Example_demo.java
package bag;
import bag.MyInterface;
import java.util.*;
public class Example_demo{
public static void pppp() {
MyInterface<List<String>> obj = null;
obj = new MyInterface<List<String>>() {
@Override
public String getName() {
return "MyInterface";
}
public String value() {
return "ABC";
}
};
}
}
MyInterface.java
package bag;
interface MyInterface<T> {
public String getName();
}
- How you invoke scons (The command line you're using "scons --flags some_arguments") scons
scons output --------------------> ['bag\Example_demo.class', 'bag\MyInterface.class']
This generates three class files: ['bag\Example_demo$1.class', 'bag\Example_demo.class', 'bag\MyInterface.class'] but scons does not know about the first one, so it is not included in the jar.
It seems you did not read this "Please bring your issue to the SCons users mailing list before filing an issue here". Please bring your issue to the users mailing list.
Most likely this is a known issue as there are several known issues with java scanning/emitting.