MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / create_manifest_content

Function create_manifest_content

java-linker/src/main.rs:624–637  ·  view source on GitHub ↗
(main_class_name: Option<&str>)

Source from the content-addressed store, hash-verified

622 let constant_index = *class_file.interfaces.get(interface_index).ok_or_else(|| {
623 io::Error::new(
624 io::ErrorKind::InvalidData,
625 format!("missing interface at index {interface_index}"),
626 )
627 })?;
628 class_file
629 .constant_pool
630 .try_get_class(constant_index)
631 .map(ToOwned::to_owned)
632 .map_err(|error| io::Error::new(io::ErrorKind::InvalidData, error.to_string()))
633}
634
635fn merge_class_files(
636 base: &mut ClassFile<'static>,
637 incoming: &ClassFile<'static>,
638 target_constants: &mut HashMap<ConstantKey, u16>,
639) -> io::Result<bool> {
640 if base.class_name().ok() != incoming.class_name().ok() {

Callers 1

add_manifest_to_jarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected