Home SportsClojure 1.11.3...
Sports⭐ Featured

Clojure 1.11.3

Clojure 1.11.3 is now available. CLJ-2843 - Reflective calls to Java methods that take primitive long or double now work when passed a narrower boxed number at runtime (Integer, Short, Byte, Float). Previously, these methods were not matched during reflection and an error was thrown. Java 21 added an overload to the method Thread/sleep in the 1-arity. When upgrading to Java 21, existing Clojure calls to Thread/sleep become reflective, but continue to work. As usual, you can detect reflection with *warn-on-reflection* and address with a type hint (here, ^long ) to choose the desired overload. Previously, passing a Short or Integer value to a reflective call like Thread/sleep that takes a long would not match, that has been corrected.

6 April 2026 at 08:07 pm
1 views
Clojure 1.11.3

Clojure 1.11.3 has been released, bringing a significant improvement in how reflective calls to Java methods handle primitive long and double types. This version addresses the issue outlined in CLJ-2843, which previously caused errors when passing narrower boxed numbers like Integer, Short, Byte, or Float to methods expecting a primitive long or double during runtime.

In Clojure 1.11.3, reflective calls now correctly match and work with these narrower boxed numbers. This means that developers no longer encounter errors when using these types with Java methods that expect a primitive long or double. This enhancement ensures smoother interoperability between Clojure and Java, allowing for more flexible and efficient programming.

Another notable change in Clojure 1.11.3 is its compatibility with Java 21. Java 21 introduced an overload to the Thread/sleep method in its 1-arity, which means it now has multiple methods with the same name but different parameters. When upgrading to Java 21, existing Clojure calls to Thread/sleep automatically become reflective. Despite this change, these calls continue to function as expected, providing seamless integration with the updated Java version.

To help developers manage and understand reflective calls, Clojure provides the *warn-on-reflection* flag. This flag can be enabled to warn users when a reflective call is detected, allowing them to take appropriate action. If a specific overload is desired, developers can use a type hint, such as ^long, to explicitly choose the intended method.

The improvements in Clojure 1.11.3 not only resolve previous issues but also enhance the overall stability and compatibility of the language with newer Java versions. By addressing the CLJ-2843 bug and adapting to Java 21's changes, Clojure continues to evolve as a robust and reliable tool for functional programming.

For developers already using Clojure, upgrading to version 1.11.3 is highly recommended to take advantage of these enhancements. The updated version ensures smoother operation with Java methods and provides better support for newer Java releases. As always, Clojure's commitment to interoperability and reliability makes it an excellent choice for both new and experienced programmers.

In conclusion, Clojure 1.11.3 represents a significant step forward in addressing reflective call issues and ensuring compatibility with Java 21. With improved handling of primitive long and double types, as well as enhanced support for reflective calls, this version offers a more robust and efficient development experience. By resolving previous challenges and adapting to new Java features, Clojure continues to demonstrate its dedication to innovation and reliability in the functional programming community.

Source: Clojure News
📰 Related News
GTA 6 developer Rockstar Games hacked once again but insists only a "limited amount of non-material company information" was compromised
GTA 6 developer Rockstar Games hacked once again but insists only a "limited amount of non-material company information" was compromised
GTA 6 developer Rockstar has confirmed it's been hacked by a third party after a hacking group issued a ransom demand. Read more
12 Apr
`Cheap Irish Homes’ casting for new season
`Cheap Irish Homes’ casting for new season
The popular property show ‘Cheap Irish Homes’ is casting for its new season. The show follows property guru Maggie Molloy and architect Tadgh Casey as they help match buyers with properties. The show focuses on affordable homes across Ireland, guiding prospective buyers through the process of purchasing properties that often require some renovation. According to […] The post `Cheap Irish Homes’ casting for new season appeared first on Agriland.ie .
7 Apr
Bacon Waffles with Chives Recipe
Bacon Waffles with Chives Recipe
Every poached egg needs the right serving platform. These savory waffles with crispy bacon are a perfect match for the rich egg yolk. The post Bacon Waffles with Chives Recipe appeared first on Hobby Farms .
7 Apr
The most expensive game cost over $1B, and how AI will transform it
The most expensive game cost over $1B, and how AI will transform it
Grand Theft Auto 6 and the future of AI If you happened to miss it, a few weeks back, here is the game trailer for Grand Theft Auto 6. It’s worth watching, and is amazing on multiple levels. But GTA 6 might be the peak of the open world category, untouched by the next wave […]
7 Apr
Champions League: Kompanys Kane-Update vorm „schwierigsten Spiel in Europa“
Champions League: Kompanys Kane-Update vorm „schwierigsten Spiel in Europa“
Der FC Bayern ist mit Harry Kane nach Madrid gereist. Ein Einsatz des Torjägers gegen Real zeichnet sich ab - ist aber noch nicht fix. Trainer Vincent Kompany sagt, was für ihn das Wichtigste ist.
7 Apr
Will States Be Ready with Counter Drone Tech for the FIFA World Cup?
Will States Be Ready with Counter Drone Tech for the FIFA World Cup?
Funding snafu, other issues delay counter-UAS ramp-up in Maryland, elsewhere By DRONELIFE Features Editor Jim Magill (Editor’s note: This is part of a series of stories on efforts to establish new counter-UAS protocols in the U.S. to protect high-profile sporting events and critical infrastructure from the potential threats posed by drones flown by careless or […] The post Will States Be Ready with Counter Drone Tech for the FIFA World Cup? appeared first on DRONELIFE .
7 Apr
Clojure 1.11.3
Clojure 1.11.3
Clojure 1.11.3 is now available. CLJ-2843 - Reflective calls to Java methods that take primitive long or double now work when passed a narrower boxed number at runtime (Integer, Short, Byte, Float). Previously, these methods were not matched during reflection and an error was thrown. Java 21 added an overload to the method Thread/sleep in the 1-arity. When upgrading to Java 21, existing Clojure calls to Thread/sleep become reflective, but continue to work. As usual, you can detect reflection with *warn-on-reflection* and address with a type hint (here, ^long ) to choose the desired overload. Previously, passing a Short or Integer value to a reflective call like Thread/sleep that takes a long would not match, that has been corrected.
7 Apr
Basketball: Ex-NBA-Profi O'Neal gründet Liga fürs Dunken
Basketball: Ex-NBA-Profi O'Neal gründet Liga fürs Dunken
Dunks gehören zum Spektakulärsten, was der Basketball zu bieten hat. Shaquille O'Neal will nun den besten Dunker der Welt ausfindig machen – und lockt mit einem enormen Preisgeld.
7 Apr
FII event highlights global investment themes as Trump and Ronaldo appear on stage
FII event highlights global investment themes as Trump and Ronaldo appear on stage
FII Priority Miami concluded its three-day summit with a series of discussions on global investment trends, economic volatility, and emerging growth sectors, alongside appearances by former US President Donald J. Trump and football legend Ronaldo Luís Nazário de Lima. FII stands for Future Investment Initiative. It is a global nonprofit focused on “Impact on Humanity”, […]
7 Apr
Wang beats Lebrun, keeps China’s ITTF World Cup hopes alive
Wang beats Lebrun, keeps China’s ITTF World Cup hopes alive
Wang Chuqin kept alive China’s hopes of success in the men’s singles at the ITTF World Cup in Macau with a 4-2 victory over France’s Felix Lebrun on Friday. Wang dropped a tense opening game despite leading 9-6 and 10-9, as world No 6 Lebrun fought back to edge it 13-11. The Chinese left-hander again found himself in trouble in the second, trailing 2-7, but turned the game around with a series of aggressive rallies to win at 11-9. Lebrun regained the initiative in the third, moving ahead 6-2 and...
7 Apr