Commit f7aa6645 authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

make SpringClassNotFoundException convert to NoClassDefFoundError; Allow...

make SpringClassNotFoundException convert to NoClassDefFoundError; Allow direct image access for PencilGraphics.drawRegion().
parent 818f1951
Pipeline #89540 passed with stages
in 6 minutes and 14 seconds
......@@ -9,6 +9,8 @@
package cc.squirreljme.vm.springcoat.exceptions;
import cc.squirreljme.runtime.cldc.debug.Debugging;
import cc.squirreljme.vm.springcoat.SpringConvertableThrowable;
import cc.squirreljme.vm.springcoat.SpringException;
import net.multiphasicapps.classfile.ClassName;
......@@ -19,6 +21,7 @@ import net.multiphasicapps.classfile.ClassName;
*/
public class SpringClassNotFoundException
extends SpringException
implements SpringConvertableThrowable
{
/** The name of the class. */
protected final ClassName name;
......@@ -108,5 +111,15 @@ public class SpringClassNotFoundException
{
return this.name;
}
/**
* {@inheritDoc}
* @since 2022/02/15
*/
@Override
public String targetClass()
{
return "java/lang/NoClassDefFoundError";
}
}
......@@ -357,7 +357,7 @@ public final class PencilGraphics
int[] buf;
int offset;
int scanLen;
if (false && __src.squirreljmeIsDirect())
if (__src.squirreljmeIsDirect())
{
buf = __src.squirreljmeDirectRGBInt();
offset = __src.squirreljmeDirectOffset();
......
......@@ -18,7 +18,19 @@ squirreljme
definedProfiles += new JavaMEProfile("MEEP-8")
tags += "meep"
// Some commonly used standard APIs
// Parts that may exist as of this profile
optionalDependencies += project(":modules:media-api")
optionalDependencies += project(":modules:meep-cellular")
optionalDependencies += project(":modules:meep-concurrency")
optionalDependencies += project(":modules:meep-event")
optionalDependencies += project(":modules:meep-key")
optionalDependencies += project(":modules:meep-liblets")
optionalDependencies += project(":modules:meep-lui")
optionalDependencies += project(":modules:meep-power")
optionalDependencies += project(":modules:meep-provisioning")
optionalDependencies += project(":modules:meep-securityframework")
// Some commonly used extra APIs
optionalDependencies += project(":modules:bluetooth")
optionalDependencies += project(":modules:m3g")
optionalDependencies += project(":modules:opengles")
......@@ -33,21 +45,10 @@ squirreljme
dependencies
{
api project(":modules:cldc-compact")
api project(":modules:bluetooth")
api project(":modules:gcf")
api project(":modules:media-api")
api project(":modules:meep-cellular")
api project(":modules:meep-concurrency")
api project(":modules:meep-event")
api project(":modules:meep-key")
api project(":modules:meep-liblets")
api project(":modules:meep-lui")
api project(":modules:meep-midlet")
api project(":modules:meep-power")
api project(":modules:meep-provisioning")
api project(":modules:meep-rms")
api project(":modules:meep-securityframework")
api project(":modules:meep-swm")
api project(":modules:midp-lcdui")
}
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