fix javac @Delegate(types={...})

Here's my hack at fixing issue #359.