You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/md/articles/language/interop.md
+8
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,11 @@ a regular Clojure function:
158
158
159
159
## How to Invoke Java Methods
160
160
161
+
This guide does not cover type hints. See the official
162
+
[Java interop type hints](https://clojure.org/reference/java_interop#typehints)
163
+
and [param-tags reference](https://clojure.org/reference/java_interop#paramtags)
164
+
documentation for more details (since this area changed significantly in Clojure 1.12).
165
+
161
166
### Instance Methods
162
167
163
168
Instance methods are invoked using the `.` special form:
@@ -208,6 +213,8 @@ a regular Clojure function:
208
213
;;⇒ (true false false)
209
214
```
210
215
216
+
> Note: Clojure 1.11 introduced `parse-boolean` but it is somewhat stricter than `Boolean/valueOf` and will return `nil` for strings it does not recognize, including `"TRUE"` and `"FALSE"` (which `Boolean/valueOf` does recognize).
217
+
211
218
### Chained Calls With The Double Dot Form
212
219
213
220
It is possible to chain method calls using the `..` special form:
@@ -413,6 +420,7 @@ but prior to 1.12, you had to use `Class/forName` and the internal name of the a
0 commit comments