Commit 6b02082b authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

Read the exported class and its flags.

parent 7e8686da
......@@ -14,6 +14,9 @@ import java.io.DataInputStream;
import java.io.InputStream;
import java.io.IOException;
import net.multiphasicapps.squirreljme.executable.ExecutableClass;
import net.multiphasicapps.squirreljme.java.symbols.ClassNameSymbol;
import net.multiphasicapps.squirreljme.linkage.ClassExport;
import net.multiphasicapps.squirreljme.linkage.ClassFlags;
/**
* This is the part of the JIT which accepts a class file which is parsed and
......@@ -37,6 +40,9 @@ public final class JIT
protected final LinkTable linktable =
new LinkTable();
/** The export of this class. */
private volatile ClassExport _thisexport;
/**
* Initializes the JIT processor.
*
......@@ -88,6 +94,18 @@ public final class JIT
// Parse the constant pool
__Pool__ pool = new __Pool__(input);
// Read class flags and the name
ClassFlags flags = __FlagDecoder__.__class(
input.readUnsignedShort());
ClassNameSymbol thisname = pool.get(input.readUnsignedShort()).
<ClassNameSymbol>get(true, ClassNameSymbol.class);
// Create initial export
LinkTable linktable = this.linktable;
ClassExport thisexport;
linktable.export((thisexport = new ClassExport(thisname, flags)));
this._thisexport = thisexport;
throw new todo.TODO();
}
}
......
......@@ -12,7 +12,9 @@
strange and many other devices. That is, you would be able to have a Java
environment on a wide range of _Internet of Things_ devices, older computers
(such as the _Amiga_), embedded devices, and mobile devices from old to new.
It intends to be 99.9% compatible with Java ME 8 and older J2ME standards.
It intends to be 99.9% compatible with Java ME 8 and older J2ME standards. It
should be able to run a wide range of older J2ME software which would enable
this software to be used for archival purposes.
The source is written in pure Java and is designed to use small amounts of
memory, where simplicity increases operation speed without sacrificing
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment