View | Details | Raw Unified | Return to bug 239305 | Differences between
and this patch

Collapse All | Expand All

(-)buildnotes_jdt-core.html (-1 / +3 lines)
Lines 51-57 Link Here
51
</ul>
51
</ul>
52
52
53
<h3>Problem Reports Fixed</h3>
53
<h3>Problem Reports Fixed</h3>
54
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=232565">232565</a>
54
<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=239305">239305</a>
55
[compiler] VerifyError caused by casting long to long to int
56
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=232565">232565</a>
55
[1.5][compiler] wrong autoboxing code generation leads to VerifyError at runtime
57
[1.5][compiler] wrong autoboxing code generation leads to VerifyError at runtime
56
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=238484">238484</a>
58
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=238484">238484</a>
57
[1.5][compiler] Eclipse generates bad code (major regression)
59
[1.5][compiler] Eclipse generates bad code (major regression)
(-)compiler/org/eclipse/jdt/internal/compiler/ast/CastExpression.java (-4 / +2 lines)
Lines 81-90 Link Here
81
	// check if could cast directly to enclosing cast type, without intermediate type cast
81
	// check if could cast directly to enclosing cast type, without intermediate type cast
82
	CastExpression alternateCast = new CastExpression(null, enclosingCast.type);
82
	CastExpression alternateCast = new CastExpression(null, enclosingCast.type);
83
	alternateCast.resolvedType = enclosingCast.resolvedType;
83
	alternateCast.resolvedType = enclosingCast.resolvedType;
84
	if (!alternateCast.checkCastTypesCompatibility(scope, enclosingCast.resolvedType, nestedCast.expression.resolvedType, nestedCast.expression)) {
84
	if (!alternateCast.checkCastTypesCompatibility(scope, enclosingCast.resolvedType, nestedCast.expression.resolvedType, null /* no expr to avoid side-effects*/)) return;
85
		return;
85
	scope.problemReporter().unnecessaryCast(nestedCast);
86
	}
87
	scope.problemReporter().unnecessaryCast(nestedCast); 
88
}
86
}
89
87
90
88

Return to bug 239305