fix Swing and Kevoree compiler after refactoring in Java compiler