Bug 85502 [5.0][syntax coloring] Coloring of unboxing/boxing: Missing cases
20050216 The following cases seem to be missed by the boxing/unboxing syntax colorer: (enable compiler warning for (un)boxing to see where boxing occurs) public class A { private void foo1() { int a= 9; if (a == new Integer(9)) { } } private void foo2() { Integer x= 'c'; } private void foo3() { int si= true ? new Integer(0) : new Character('x'); } private void foo4() { Integer x= new Integer(9); x += 9; } private void foo5() { Integer[] a= {1, 2, 3}; int[] b= {a[0]}; } private void foo6() { Integer y= new Integer(9); switch (y) { } } private int foo7() { Integer y= new Integer(9); return y; } private Integer foo8() { int count= 9; return count; } }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightings.java
* method return types, if <code>child</code> is the method name of a
		 * method invocation.
		 *
		 * @param child the child node within <code>parent</code>
		 * @param parent the parent of <code>child</code>
		 * @return <code>true</code> if type of <code>child</code> is
		 *         relevant in the context of <code>parent</code>
		 */
		private boolean isPropagatingNode(ASTNode child, ASTNode parent) {
			if (parent == null)
				return false;
			StructuralPropertyDescriptor location= child.getLocationInParent();
			switch (parent.getNodeType()) {
				case ASTNode.INFIX_EXPRESSION:
					if (child instanceof Expression) {
						InfixExpression infix= (InfixExpression) parent;
						ITypeBinding binding= infix.resolveTypeBinding();
						ITypeBinding type= ((Expression) child).resolveTypeBinding();
						if (binding != null && type != null) {
							return binding.isAssignmentCompatible(type);
						}
					}
					break;
				case ASTNode.PREFIX_EXPRESSION:
				case ASTNode.CONDITIONAL_EXPRESSION:
				case ASTNode.PARENTHESIZED_EXPRESSION:
				case ASTNode.POSTFIX_EXPRESSION:
					return true;
				
				case ASTNode.ARRAY_ACCESS: