hg: jdk8/tl/langtools: 8013357: javac accepts erroneous binary comparison operations

eric.mccorkle at oracle.com eric.mccorkle at oracle.com
Thu Jun 27 14:46:51 PDT 2013


Changeset: 5c548a8542b8
Author:    emc
Date:      2013-06-27 17:45 -0400
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/5c548a8542b8

8013357: javac accepts erroneous binary comparison operations
Summary: javac does not report type errors on illegal Object == primitive comparisons
Reviewed-by: abuckley, mcimadamore

! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Attr.java
! test/tools/javac/lambda/LambdaConv01.java
! test/tools/javac/lambda/LambdaExpr15.java
! test/tools/javac/lambda/typeInference/InferenceTest2b.java
+ test/tools/javac/types/TestComparisons.java



More information about the security-dev mailing list