Hey,
Our plug-in is supposed to work with our simulator which is running in
j2me. For some reason, Eclipse can not execute _expression_ evaluation properly
on the project running on our simulator (we have a debugger running on the
simulator and it talks to the eclipse debugger). It seems the reason is
eclipse is
running in J2SDK environment and our simulator is running in J2ME
environment,
there is some problem in the communication.
I did some debug to find out the reason and have found that eclipse
debugger
has some problem when it tries to get the IJAvaType of an object, e.g.
java.lang.Class.
In the Eclipse's implementation of com.sun.jdi.ReferenceType class,
eclipse tries
to use the methodsByName() method to find the object type; the passed in selector
is “forName”, and the signature is
“(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;”.
The problem is that the signature of “forName” item in the
visible methods list of
ReferenceTypeImpl of eclipse is “()Ljava/lang/Class;”,
thus, eclipse throws an
exception that it can not find the class type.
It seems that J2ME does not support reflection but exlipse _expression_ evaluator
is
asking for that information. So, the question could be how does eclipse
do _expression_
evaluation with J2ME?
I tried to install the DSF-SDK and mtj-sdk, but the problem is still
there. Can anyone tell me what I should do?
Thanks.
Raymond
---------------------------------------------------------------------