Consider this declaration:
typedef void (*Function)(int);
This generates a nested functional interface (Function) inside an enclosing class of the same name (Function). Which is not allowed by the Java language.
The name of the functional interface should be mangled.
typedef void (*Function)(int);
This generates a nested functional interface (Function) inside an enclosing class of the same name (Function). Which is not allowed by the Java language.
The name of the functional interface should be mangled.