While working on #29847, I noticed that the SpEL Indexer omits support for compiling an expression that indexes into a primitive boolean array.

For example, the following test fails at the assertCanCompile() line.

@Test
void indexIntoPrimitiveBooleanArray() {
    boolean[] booleans = { true, false, true };

    expression = parser.parseExpression("[1]");

    assertThat(expression.getValue(booleans)).isEqualTo(false);
    assertCanCompile(expression);
    assertThat(expression.getValue(booleans)).isEqualTo(false);
    assertThat(getAst().getExitDescriptor()).isEqualTo("Z");
}