Menu

#86 Object class from CLDC stub is invalid

Target: 2.0.3
closed-fixed
5
2008-12-15
2008-07-22
No

The problem we are having is specifically with the Object classes from MicroEmu CLDC stubs.
We figured out that pyx4me is generating an invalid bytecode for this class.

The decompiled methods for all other classes are something like

public String aMethod() {
throw new Error("API Stub has been used");"
}

The methods of the Object when decompiled are like the following:
public Class getClass() {
}

This is an invalid Java code, as the method signature states that it returns a Class object, but the method body does not have a return, nor throws an Error/RuntimeException.

"CLDC RI preverifier" cannot load this invalid bytecode, generating a verifier error

Discussion

  • Vlad Skarzhevskyy

    • milestone: --> Target: 2.0.3
    • assigned_to: nobody --> vlads
    • labels: --> Java SE common
    • status: open --> pending-fixed
     
  • Vlad Skarzhevskyy

    Logged In: YES
    user_id=342182
    Originator: NO

    The jour code for Object creation was fixed. Now I see a valid Object class. from my point of view.
    Please verify that this solved you problem using build from svn of nightly build.

     
  • Diego Madruga

    Diego Madruga - 2008-07-23

    Logged In: YES
    user_id=1504763
    Originator: YES

    I've tested the nightly
    build and the problem was fixed.

    Thanks for the quick response.

    Diego

     
  • Diego Madruga

    Diego Madruga - 2008-07-23
    • status: pending-fixed --> closed-fixed
     
  • Vlad Skarzhevskyy

    • status: closed-fixed --> pending-fixed
     
  • Bartek Teodorczyk

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.