I wondered if Avast! is intended to block bad Java applets, i.e. those which contain malicious code.
avast and all other antivirus block all malicious code that can harm your computer…
and remember, no security program have 100% detection
Look at the Java: entries in the VPS updates at http://www.avast.com/virus-update-history. Those are for malicious Java applets.