Skip to content

Commit d269159

Browse files
committed
Fix 64bit addressing issues
1 parent 1f343ab commit d269159

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# <img src="./static/j4rs-small.png" alt="j4rs">
22

33
[![crates.io](https://img.shields.io/crates/v/j4rs.svg)](https://crates.io/crates/j4rs)
4-
[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.23.0-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
4+
[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.23.1-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
55
![Build](https://github.com/astonbitecode/j4rs/actions/workflows/ci-workflow.yml/badge.svg)
66

77
j4rs stands for __'Java for Rust'__ and allows effortless calls to Java code from Rust and vice-versa.
@@ -482,7 +482,7 @@ The jar for `j4rs` is available in the Maven Central. It may be used by adding t
482482
<dependency>
483483
<groupId>io.github.astonbitecode</groupId>
484484
<artifactId>j4rs</artifactId>
485-
<version>0.23.0</version>
485+
<version>0.23.1</version>
486486
<scope>provided</scope>
487487
</dependency>
488488
```

java-fx/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.astonbitecode</groupId>
55
<artifactId>j4rs-javafx</artifactId>
6-
<version>0.23.0</version>
6+
<version>0.23.1</version>
77
<name>j4rs-javafx</name>
88
<description>Java for Rust - JavaFX support</description>
99
<url>https://github.com/astonbitecode/j4rs</url>

java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.astonbitecode</groupId>
55
<artifactId>j4rs</artifactId>
6-
<version>0.23.0</version>
6+
<version>0.23.1</version>
77
<name>j4rs</name>
88
<description>Java for Rust</description>
99
<url>https://github.com/astonbitecode/j4rs</url>

rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "j4rs"
3-
version = "0.23.0"
3+
version = "0.23.1"
44
authors = ["aston <[email protected]>"]
55
description = "j4rs stands for 'Java for Rust' and allows effortless calls to Java code, from Rust"
66
keywords = ["java", "jni"]

rust/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# <img src="../static/j4rs-small.png" alt="j4rs">
22

33
[![crates.io](https://img.shields.io/crates/v/j4rs.svg)](https://crates.io/crates/j4rs)
4-
[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.22.0-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
4+
[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.23.1-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
55
![Build](https://github.com/astonbitecode/j4rs/actions/workflows/ci-workflow.yml/badge.svg)
66

77
j4rs stands for __'Java for Rust'__ and allows effortless calls to Java code from Rust and vice-versa.
@@ -484,7 +484,7 @@ The jar for `j4rs` is available in the Maven Central. It may be used by adding t
484484
<dependency>
485485
<groupId>io.github.astonbitecode</groupId>
486486
<artifactId>j4rs</artifactId>
487-
<version>0.23.0</version>
487+
<version>0.23.1</version>
488488
<scope>provided</scope>
489489
</dependency>
490490
```

rust/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::{env, fs};
2020
use fs_extra::dir::CopyOptions;
2121

2222
// This is the version of the jar that should be used
23-
const VERSION: &str = "0.23.0";
23+
const VERSION: &str = "0.23.1";
2424
const JAVA_FX_VERSION: &str = "21.0.2";
2525

2626
fn main() -> Result<(), J4rsBuildError> {

rust/src/async_api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl Jvm {
8787
let raw_ptr = Box::into_raw(tx);
8888
// Find the address of tx
8989
let address_string = format!("{:p}", raw_ptr);
90-
let address = i64::from_str_radix(&address_string[2..], 16).unwrap();
90+
let address = u64::from_str_radix(&address_string[2..], 16).unwrap();
9191

9292
// Second argument: create a jstring to pass as argument for the method_name
9393
let method_name_jstring: jstring =

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! # j4rs
1616
//!
1717
//![![crates.io](https://img.shields.io/crates/v/j4rs.svg)](https://crates.io/crates/j4rs)
18-
//![![Maven Central](https://img.shields.io/badge/Maven%20Central-0.23.0-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
18+
//![![Maven Central](https://img.shields.io/badge/Maven%20Central-0.23.1-blue.svg)](https://central.sonatype.com/artifact/io.github.astonbitecode/j4rs/)
1919
//!![Build](https://github.com/astonbitecode/j4rs/actions/workflows/ci-workflow.yml/badge.svg)
2020
//!
2121
//!j4rs stands for __'Java for Rust'__ and allows effortless calls to Java code from Rust and vice-versa.

test-resources/java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.astonbitecode</groupId>
55
<artifactId>j4rs-testing</artifactId>
6-
<version>0.23.0</version>
6+
<version>0.23.1</version>
77
<name>j4rs-testing</name>
88
<description>Testing resources for j4rs</description>
99
<url>https://github.com/astonbitecode/j4rs</url>

0 commit comments

Comments
 (0)