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.

7 April 2026 at 09:29 am
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 such values 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 this release is related to Java 21's addition of an overload to the Thread/sleep method in the 1-arity. When upgrading to Java 21, existing Clojure calls to Thread/sleep become reflective. Despite this change, the calls continue to function as expected. However, developers can still detect reflection using *warn-on-reflection* and address it by providing a type hint, such as ^long, to select the desired overload.

Prior to this release, passing a Short or Integer value to a reflective call like Thread/sleep that takes a long would not match, leading to potential issues. Clojure 1.11.3 resolves this problem, ensuring that such calls are now correctly handled.

This update underscores Clojure's commitment to maintaining strong compatibility with evolving Java versions while enhancing the language's reflective capabilities. As always, Clojure's design philosophy prioritizes simplicity, expressiveness, and robustness, making it a popular choice for developers seeking a powerful and flexible functional programming language.

For those already using Clojure, upgrading to version 1.11.3 is highly recommended to take advantage of these improvements. The enhancements not only address existing issues but also future-proof Clojure applications by ensuring compatibility with newer Java releases.

In summary, Clojure 1.11.3 introduces critical updates that improve reflective calls to Java methods, particularly those involving primitive long and double types. By addressing CLJ-2843 and adapting to Java 21's changes, this version offers enhanced stability and compatibility. As Clojure continues to evolve, its focus on seamless integration with Java remains a key strength, making it a reliable and versatile tool for developers.

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
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
Hong Kong ice hockey boss eyes next step as players take on some of world’s best
Hong Kong ice hockey boss eyes next step as players take on some of world’s best
Hong Kong’s ice hockey players have the talent to succeed but lack the platform to showcase their skills to the wider world, and that is something the sport’s top local official plans to change. Bringing three world championships to the city is just the start of that movement, with Sherman Chan Yan-wing, chairman of the Hong Kong, China Ice Hockey Association, also hoping to convince the government to put a comprehensive development plan for the sport in place. With the goal of having a...
7 Apr