hg: jdk8/tl/langtools: 7181320: javac NullPointerException for switch labels with cast to String expressions

sundararajan.athijegannathan at oracle.com sundararajan.athijegannathan at oracle.com
Mon Aug 20 08:52:11 PDT 2012


Changeset: 464f52f59f7d
Author:    sundar
Date:      2012-08-20 21:24 +0530
URL:       http://hg.openjdk.java.net/jdk8/tl/langtools/rev/464f52f59f7d

7181320: javac NullPointerException for switch labels with cast to String expressions
Reviewed-by: mcimadamore

! src/share/classes/com/sun/tools/javac/code/Types.java
! src/share/classes/com/sun/tools/javac/comp/Lower.java
+ test/tools/javac/StringsInSwitch/7181320/BinOpInCaseLabel.java
+ test/tools/javac/StringsInSwitch/7181320/CastInCaseLabel.java
+ test/tools/javac/StringsInSwitch/7181320/CondExprInCaseLabel.java
+ test/tools/javac/StringsInSwitch/7181320/CondExprInCaseLabel1.java
+ test/tools/javac/StringsInSwitch/7181320/CondExprInCaseLabel2.java



More information about the serviceability-dev mailing list