Community
Participate
Working Groups
In CompilationUnitScope the buildTypeBindings method adds new types to a "nextType" filed of SourceTypeBinding if a binding of the same name has already been created. if (existingBinding!=null && typeDecl.isNamed() ) { if (existingBinding.nextType!=null) { existingBinding.addNextType(type); } else { if (!CharOperation.equals(type.fileName, existingBinding.fileName)) existingBinding.addNextType(type); } environment.defaultPackage.addType(existingBinding); fPackage.addType(existingBinding); } We don't want want to be adding duplicate next types because it hurts performance. Add some duplicate checking code in the addNextType() method.
Code checked in.