# Clojure 1.12.0-alpha10

DevFeed: [Clojure 1.12.0-alpha10](<https://devfeed.tech/articles/clojure-1-12-0-alpha10-49676.md>)

Original publisher: [Read original article](<https://clojure.org/news/2024/04/28/clojure-1-12-alpha10>)

Published: 2024-04-28T00:00:00Z

Content type: release

Language: en

Sources: [Clojure News](<https://devfeed.tech/sources/clojure-news.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [Java](<https://devfeed.tech/topics/java.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [function](<https://devfeed.tech/topics/function.md>), [constructor](<https://devfeed.tech/topics/constructor.md>), [class](<https://devfeed.tech/topics/class.md>), [syntax](<https://devfeed.tech/topics/syntax.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [function](<https://devfeed.tech/tags/function.md>), [java](<https://devfeed.tech/tags/java.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [programming](<https://devfeed.tech/tags/programming.md>), [releases](<https://devfeed.tech/tags/releases.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

## AI overview

Clojure 1.12.0-alpha10 introduces qualified Java methods as ordinary function values. The compiler can generate wrapping functions and reflective calls for unresolved overloads, while :param-tags metadata can identify a desired method signature.

## Source excerpt

Clojure 1.12.0-alpha10 is now available! Find download and usage information on the Downloads page. Method values Clojure programmers often want to use Java methods in higher-order functions (e.g. passing a Java method to map). Until now, programmers have had to manually wrap methods in functions. This is verbose, and might require manual hinting for overload disambiguation, or incur incidental reflection or boxing. Programmers can now use Java qualified methods as ordinary functions in value contexts - the compiler will automatically generate the wrapping function. New in this release: the compiler will generate a reflective call when a qualified method does not resolve due to overloading. Developers can supply :param-tags metadata on qualified methods to specify the signature of a single desired method, 'resolving' it. New in this release: the compiler will generate a reflective call when param tags are not supplied on a qualified method that does not resolve due to overloading. See: CLJ-2793, CLJ-2844, CLJ-2835 Qualified methods - Class/method, Class/.method, and Class/new Java members inherently exist in a class. For methods as values we need a way to explicitly specify the class of an instance method because there is no possibility for inference. Qualified methods have value semantics when used in non-invocation positions: Classname/method - value is a Clojure function that invokes a static method Classname/.method - value is a Clojure function that invokes an instance method Classname/new - value is a Clojure function that invokes a constructor New in this release: developers must use Classname/method and Classname/.method syntax to differentiate between static and instance methods. Qualified method invocations with param-tags use only the tags to resolve the method. Without param-tags they behave like the equivalent dot syntax, except the qualifying class takes precedence over hints of the target object, and over its runtime type when invoked via reflection.