Improved error detection for Bundle Activator classes