Files
reverse-engineering-anything/tests/fixtures/nativeaot-producer/stubs/nativeaot/objectmodel/MethodTableManager.java
T
morluto 8c64eb511f fix(ghidra): stage NativeAOT report until recovery completes (#9611)
* fix(ghidra): stage nativeaot recovery report until complete

* test(ghidra): exercise nativeaot rollback reporting
2026-11-09 19:39:51 +08:00

22 lines
1.0 KiB
Java

package nativeaot.objectmodel;
import java.util.List;
import ghidra.program.model.address.Address;
import ghidra.program.model.data.DataType;
import ghidra.program.model.listing.Program;
import nativeaot.rtr.ReadyToRunDirectory;
public class MethodTableManager {
public static boolean failAudit,failTypes;
public static MethodTableManager createForDirectory(Program p,ReadyToRunDirectory d){return new MethodTableManager();}
public Object getObjectMT(){return this;}
public Object getStringMT(){return this;}
public int getMethodTableCount(){return 1;}
public Table getMethodTable(long n){if(failAudit) throw new IllegalStateException("audit failure");
return new Table();}
public List<Table> getMethodTables(){return List.of(new Table());}
public static class Table {
public Address getAddress(){return new Address(1);}
public DataType getMTType(){if(failTypes) throw new IllegalStateException("type failure");
return new DataType();}
public DataType getInstanceType(){return new DataType();}
} }