Fix #1371992: Error with switch when last case block omits break or return
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / Parser.java
index ded438e..2d17647 100644 (file)
@@ -1726,7 +1726,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                                if (token == TokenNameCOLON || token == TokenNameSEMICOLON) {
                                        getNextToken();
                                        if (token == TokenNameRBRACE) {
-                                               // empty case; assumes that the '}' token belongs to the wrapping switch statement
+                                               // empty case; assumes that the '}' token belongs to the wrapping switch statement - #1371992
                                                break;
                                        }
                                        if (token == TokenNamecase || token == TokenNamedefault) {
@@ -1756,7 +1756,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
                                if (token == TokenNameCOLON || token == TokenNameSEMICOLON) {
                                        getNextToken();
                                        if (token == TokenNameRBRACE) {
-                                               // empty default case; ; assumes that the '}' token belongs to the wrapping switch statement
+                                               // empty default case; ; assumes that the '}' token belongs to the wrapping switch statement - #1371992
                                                break;
                                        }
                                        if (token != TokenNamecase) {