Normally, SourceElementNotifier.notifySourceElementRequestor() is invoked with a freshly parsed CUD,
however, when invoked from InternalExtendedCompletionContext.computeEnclosingJavaElements() the CUD
has been partly translated including role splitting and generating many methods.
Feeding this declaration unfiltered into the SourceElementNotifier can cause various bugs like
InternalCompilerError("Role has no class-part") (from CopyInheritance.loadRoFiFromType) etc.
Fixed by filtering generated types and methods and stripping off the __OT__ prefix if present.
1 file changed