Skip to content

Commit 3397b43

Browse files
committed
chore: update default java version to 25.0.0.36.2
1 parent f5bc522 commit 3397b43

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

ristretto_classloader/src/runtime/bootstrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use tracing::{debug, warn};
1111

1212
/// The default Java version used by the class loader. This is the version that will be used if no
1313
/// version is specified when creating a class loader.
14-
pub const DEFAULT_JAVA_VERSION: &str = "21.0.8.9.1";
14+
pub const DEFAULT_JAVA_VERSION: &str = "25.0.0.36.2";
1515

1616
/// The access flags for primitive classes in the Java runtime. These classes are public, final, and
1717
/// abstract, meaning they cannot be instantiated and do not have any methods or fields.

ristretto_jimage/src/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ mod tests {
249249

250250
#[tokio::test]
251251
async fn test_image_for_all_java_lts_versions() -> Result<()> {
252-
let versions = ["11.0.28.6.1", "17.0.16.8.1", "21.0.8.9.1", "25.0.0.36.1"];
252+
let versions = ["11.0.28.6.1", "17.0.16.8.1", "21.0.8.9.1", "25.0.0.36.2"];
253253
for version in &versions {
254254
let (java_home, _java_version, _class_loader) =
255255
version_class_loader(version).await.expect("java home");

ristretto_jimage/src/index.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ mod tests {
210210
#[tokio::test]
211211
async fn test_get_resource_offset_invalid() -> Result<()> {
212212
let image = get_test_image().await?;
213-
let result = Index::get_resource_offset::<byteorder::LittleEndian>(&image, "foo/42");
213+
let result =
214+
Index::get_resource_offset::<byteorder::LittleEndian>(&image, "not/a/valid/path.42");
214215
assert!(matches!(result, Err(InvalidIndex(_))));
215216
Ok(())
216217
}

ristretto_vm/src/intrinsic_methods/java/lang/class.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ mod tests {
11501150
let parameters = Parameters::new(vec![class_object]);
11511151
let result = get_class_file_version_0(thread, parameters).await?;
11521152
let version = result.expect("version").as_i32()?;
1153-
assert_eq!(version, i32::from(Version::Java21 { minor: 0 }.major()));
1153+
assert_eq!(version, i32::from(Version::Java25 { minor: 0 }.major()));
11541154
Ok(())
11551155
}
11561156

@@ -1312,9 +1312,7 @@ mod tests {
13121312
"public static final int java.lang.Integer.MIN_VALUE",
13131313
"public static final int java.lang.Integer.SIZE",
13141314
"public static final java.lang.Class java.lang.Integer.TYPE",
1315-
"static final byte[] java.lang.Integer.DigitOnes",
1316-
"static final byte[] java.lang.Integer.DigitTens",
1317-
"static final char[] java.lang.Integer.digits",
1315+
"static final byte[] java.lang.Integer.digits",
13181316
]
13191317
);
13201318
Ok(())

ristretto_vm/src/intrinsic_methods/java/lang/invoke/methodhandlenatives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ mod tests {
750750
member_name.set_value("name", value_string)?;
751751
parameters.push(Value::from(member_name));
752752
let result = object_field_offset(thread, parameters).await?;
753-
assert_eq!(Some(Value::Long(7)), result);
753+
assert_eq!(Some(Value::Long(5)), result);
754754
Ok(())
755755
}
756756

0 commit comments

Comments
 (0)