The restrictions on the anonymous class.Its syntax must be correct otherwise the source of your code can not be compiled.