Has anyone ever needed to do it? Is it even possible?
To accurately emulate the CLDC api inside a J2SE VM,
one approach I have come up with will require me to have 2 Classes with the same Class name loaded concurrently.
The class loader will then determine which should be used, depending on the accessing Class.
I know the bootclasspath can be overriden, so I presume the bootstrap loader can too - however, I bet the bootstrap loader has all manner of ‘magic’ private methods that the native side of the VM interacts with.
Anyone have any useful thoughts?
I do have a second approach, but it is a ‘less perfect’ solution, so won’t pollute your minds with it yet 