Browse Source

Document that SpEL expressions using array construction cannot be compiled

Closes gh-32401
pull/32403/head
Sam Brannen 2 years ago
parent
commit
528029a0ba
  1. 1
      framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc
  2. 14
      framework-docs/modules/ROOT/pages/core/expressions/language-ref/array-construction.adoc

1
framework-docs/modules/ROOT/pages/core/expressions/evaluation.adoc

@ -518,6 +518,7 @@ following kinds of expressions cannot be compiled. @@ -518,6 +518,7 @@ following kinds of expressions cannot be compiled.
* Expressions relying on the conversion service
* Expressions using custom resolvers or accessors
* Expressions using overloaded operators
* Expressions using array construction syntax
* Expressions using selection or projection
Compilation of additional kinds of expressions may be supported in the future.

14
framework-docs/modules/ROOT/pages/core/expressions/language-ref/array-construction.adoc

@ -33,7 +33,15 @@ Kotlin:: @@ -33,7 +33,15 @@ Kotlin::
----
======
[NOTE]
====
You cannot currently supply an initializer when you construct a multi-dimensional array.
====
[CAUTION]
====
Any expression that constructs an array – for example, via `new int[4]` or
`new int[] {1, 2, 3}` – cannot be compiled. See
xref:core/expressions/evaluation.adoc#expressions-compiler-limitations[Compiler Limitations]
for details.
====

Loading…
Cancel
Save