Simply commenting code makes the whole application fail from a non affected class

It appears you have a syntax error. Make sure you are not missing any curly braces { }.