I found the issue.
In case anyone else ever manages to come across this issue I hope this may help them
Basically it would seem that an anonymous class causes issues.
Example:
public void foo(){
class Bar{int start, end; public Q(int a, int b){start = a;end = b;}} //this is an anonymous class
//... more code
}
This thread can be closed/locked.