Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Removed the old Java stub class generator and replaced it with the ik…
Browse files Browse the repository at this point in the history
…vmstub core.
  • Loading branch information
jfrijters committed Feb 21, 2013
1 parent a1ba4a2 commit 4bf1c0d
Show file tree
Hide file tree
Showing 15 changed files with 579 additions and 2,090 deletions.
5 changes: 3 additions & 2 deletions classpath/gnu/java/net/protocol/ikvmres/Handler.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static InputStream readResourceFromAssembly(String assembly, int port, String re
try
{
Class c = Class.forName(resource.substring(1, resource.length() - 6).replace('/', '.'), false, loader);
return new ByteArrayInputStream(ikvm.internal.stubgen.StubGenerator.generateStub(c));
return new ByteArrayInputStream(GenerateStub(c));
}
catch(ClassNotFoundException _)
{
Expand Down Expand Up @@ -152,7 +152,7 @@ public static InputStream readResourceFromAssembly(Assembly asm, String resource
Class c = LoadClassFromAssembly(asm, resource.substring(1, resource.length() - 6).replace('/', '.'));
if(c != null)
{
return new ByteArrayInputStream(ikvm.internal.stubgen.StubGenerator.generateStub(c));
return new ByteArrayInputStream(GenerateStub(c));
}
}
throw (FileNotFoundException)new FileNotFoundException().initCause(x);
Expand All @@ -163,6 +163,7 @@ public static InputStream readResourceFromAssembly(Assembly asm, String resource
}
}

private static native byte[] GenerateStub(Class c);
private static native cli.System.IO.Stream ReadResourceFromAssemblyImpl(Assembly asm, String resource);
private static native Class LoadClassFromAssembly(Assembly asm, String className);
private static native Assembly LoadAssembly(String name)
Expand Down
Loading

0 comments on commit 4bf1c0d

Please sign in to comment.