Bug 100818 [quick fix] Wrong label for nested enum LinkedCorrectionProposal.LinkedModeProposal
3.1-RC2 test pass - have the cu below -> compile error since the return value in the switch statement is not compatible with the declared return type - use quick fix to change the declared return type - note the label of the proposed return type is wrong - there is no separator between the type name and the qualifier -------- P.java ---------- package pr100795; class P { enum E {ONE, TWO, THREE} int m(int i) { switch (i) { case 0: return E.ONE; } } } --------------------------
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/BindingLabelProvider.java
buffer.append(Messages.format(JavaUIMessages.JavaElementLabels_anonym_type, anonymBaseType.toString()));
					} else {
						buffer.append(JavaUIMessages.JavaElementLabels_anonym);
					}
				} else {
					buffer.append("UNKNOWN"); 
				}
			} else {
				buffer.append(name);
			}
			
			if ((flags & JavaElementLabels.T_TYPE_PARAMETERS) != 0) {
				if (binding.isGenericType()) {
					getTypeParametersLabel(binding.getTypeParameters(), flags, buffer);
				} else if (binding.isParameterizedType()) {
					getTypeArgumentsLabel(binding.getTypeArguments(), flags, buffer);
				}
			}
		}
		if ((flags & JavaElementLabels.T_POST_QUALIFIED) != 0) {
			final IMethodBinding declaringMethod= binding.getDeclaringMethod();
			final ITypeBinding declaringType= binding.getDeclaringClass();
			if (declaringMethod != null) {
				buffer.append(JavaElementLabels.CONCAT_STRING);
				getMethodLabel(declaringMethod, JavaElementLabels.T_FULLY_QUALIFIED | (flags & JavaElementLabels.P_COMPRESSED), buffer);
			} else if (declaringType != null) {
				getTypeLabel(declaringType, JavaElementLabels.T_FULLY_QUALIFIED | (flags & JavaElementLabels.P_COMPRESSED), buffer);
			} else {
				final IPackageBinding pack= binding.getPackage();
				if (pack != null && !pack.isUnnamed()) {