-java7 generates invalid code if used with Generics
Translates state machine into a target programming language.
Brought to you by:
cwrapp
The compiler option -java7 generates invalid code if parameter types are declared with generics.
I've attached a simple example state machine. It compiles correctly with "-java". But compiled with "-java7" it produces the following incorrect syntax:
private static final MethodType[] TRANSITION_TYPES =
{
NO_ARGS_TYPE,
MethodType.methodType(void.class, Deque<Integer>.class)
};
This fix requires me to modify user code, which I don't like to do but is necessary in this situation.
Correction released in SMC 6.6.0.