Skip to content

Commit

Permalink
add array classes to Java interop class access
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Dec 14, 2023
1 parent 4f35f50 commit 0732c24
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/reference/java_interop.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ toc::[]
== Class access

[%hardbreaks]
**Classname**
**Classname$NestedClassName**
**Classname** (imported or fully-qualified)
**Classname$NestedClassName** (inner classes)
**Classname\*** (array classes, `*` count indicates dimension)

Symbols representing class names are resolved to the Class instance. Inner or nested classes are separated from their outer class with a `$`. Fully-qualified class names are always valid. If a class is `import`ed in the namespace, it may be used without qualification. All classes in java.lang are automatically imported to every namespace.
Symbols representing class names are resolved to the Class instance. Inner or nested classes are separated from their outer class with a `$`. Fully-qualified class names are always valid. If a class is imported in the namespace, it may be used without qualification. Array classes end in 1 or more `\*`'s. Array classes may also have primitive components, e.g. `long\*`.

All classes in java.lang are automatically imported to every namespace.

[source,clojure-repl]
----
Expand Down

0 comments on commit 0732c24

Please sign in to comment.