rusty-jvm 0.5.0

An implementation of a Java Virtual Machine (JVM).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::vm::error::Result;
use crate::vm::system_native::string::get_utf8_string_by_ref;
use tracing::{enabled, trace};

pub(crate) fn find_builtin_lib_wrp(args: &[i32]) -> Result<Vec<i32>> {
    if enabled!(tracing::Level::TRACE) {
        let name_ref = args[0];
        let name = get_utf8_string_by_ref(name_ref)?;
        trace!("findBuiltinLib: {name}");
    }

    Ok(vec![0]) // we don't have static libraries, so we always return null
}