Skip to content

Commit 71a117c

Browse files
committed
Document AOT limitations related to Kotlin backticks
Closes gh-32487
1 parent bd27ddf commit 71a117c

File tree

1 file changed

+15
-0
lines changed
  • framework-docs/modules/ROOT/pages/core

1 file changed

+15
-0
lines changed

framework-docs/modules/ROOT/pages/core/aot.adoc

+15
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,23 @@ Java::
152152
153153
}
154154
----
155+
156+
Kotlin::
157+
+
158+
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
159+
----
160+
@Configuration(proxyBeanMethods = false)
161+
class DataSourceConfiguration {
162+
163+
@Bean
164+
fun dataSource() = SimpleDataSource()
165+
166+
}
167+
----
155168
======
156169

170+
WARNING: Kotlin class names with backticks using invalid Java identifiers (not starting by a letter, containing spaces, etc.) are not supported.
171+
157172
Since there isn't any particular condition on this class, `dataSourceConfiguration` and `dataSource` are identified as candidates.
158173
The AOT engine will convert the configuration class above to code similar to the following:
159174

0 commit comments

Comments
 (0)