msama / testingemulator

Automatically exported from code.google.com/p/testingemulator
0 stars 0 forks source link

J2ME is not a proper subset of J2ME #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Unfortunately it is a widely held assumption that J2ME is a subset of J2SE.
While this may be true in terms of API, it is definitely not true in terms
of behavior.

For example, Hashtable.equals() is J2ME behaves that same as
Object.equals() but in J2SE it is defined in terms of the Collections
semantics (ie, hashtables are equal if they contain the same set of key
with the same values). Vector probably suffers from similar issues.

One way to solve this is to add a class loader for the application that
loads different versions of java.xxx classes as needed to hide the difference.

Original issue reported on code.google.com by david.be...@gmail.com on 10 Sep 2007 at 12:25

GoogleCodeExporter commented 9 years ago
*doh* J2ME is not a proper subset of J2SE

Original comment by david.be...@gmail.com on 10 Sep 2007 at 12:26