(main_class_name: Option<&str>)
| 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 | |
| 635 | fn 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() { |
no outgoing calls
no test coverage detected