Tag: non-final local variable

Cannot refer to the non-final local variable productname defined in an enclosing scope

Eclipse Java Compiler

Probably you are using java 8 and the other computer is using java 7. Java requires references to variables from inner classes to be final variables. Java 8 will make them effectively final if you don’t reassign. Probably you are using java 8 and the other computer is using java 7. Java requires references to […]