MCPcopy Index your code
hub / github.com/apache/tomcat / checkUnbalancedEndTag

Method checkUnbalancedEndTag

java/org/apache/jasper/compiler/Parser.java:1406–1426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1404 * Flag as error if an unbalanced end tag appears by itself.
1405 */
1406 private void checkUnbalancedEndTag() throws JasperException {
1407
1408 if (!reader.matches("</")) {
1409 return;
1410 }
1411
1412 // Check for unbalanced standard actions
1413 if (reader.matches("jsp:")) {
1414 err.jspError(start, "jsp.error.unbalanced.endtag", "jsp:");
1415 }
1416
1417 // Check for unbalanced custom actions
1418 String tagName = reader.parseToken(false);
1419 int i = tagName.indexOf(':');
1420 if (i == -1 || pageInfo.getURI(tagName.substring(0, i)) == null) {
1421 reader.reset(start);
1422 return;
1423 }
1424
1425 err.jspError(start, "jsp.error.unbalanced.endtag", tagName);
1426 }
1427
1428 /**
1429 * TagDependentBody :=

Callers 3

parseElementsMethod · 0.95

Calls 6

matchesMethod · 0.65
jspErrorMethod · 0.65
getURIMethod · 0.65
resetMethod · 0.65
parseTokenMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected