Please refer below example.
==== before ====
---- A.java ---
var userAccounts = userService.getUserAccounts();
--- B.java
class UserService {
public OldUserAccounts getUserAccounts();
}
==== after ====
---- A.java ---
var userAccounts = userService.getUserAccounts();
--- B.java
class UserService {
public NewUserAccounts getUserAccounts();
}
There is no change in the B.java source file although A.java changed. the B.class file's information has the 'userAccounts' variable type is 'OldUserAccounts' Aren't you? if i apply modified source files to the real server. 'var' will spawn a bug ?
Note : I know its a bad practice, even without var changes can be bytecode-incompatible. the idea of rebuilding the entire project is not good in my case. cost is too much
Any ides or workarounds ??