|
From: Bartek T. <ba...@ba...> - 2007-06-19 13:26:20
|
Hi, Indeed, we changed classloading method in 2.0.1. Mostly because we wanted to fix some core library incompapilities beetween Java ME and Java SE and we started to use ASM bytecode intrumentation software for that purpose. Your example is a side effect of that change. However we designed new classloader code to be compatible with MIDP packaging scheme (jad/jar). Your example doesn't fit into that standard. If you want to change that behaviour look into the following parts of MicroEmulator code: 1. microemu-javase/src/main/java/org/microemu/app/Common.java public static void openJadUrl(String urlString) public static void openJadUrl(String urlString, MIDletClassLoader midletClassLoader) protected void loadFromJad(String jadUrl, MIDletClassLoader midletClassLoader) 2. microemu-javase/src/main/java/org/microemu/app/classloader/MIDletClassLoader.java Bartek Teodorczyk 2007/6/18, Rushabh Doshi <ra...@pe...>: > > > > Hey folks, > > Did the classloading get changed in 2.0.1 onwards? Here is the symptom, I > haven't yet dug into exactly what is going on: > > I have Base.jar with namespace com.company which contains package private > class Package.class > > I have Dependent.jar with namespace com.company which contains class > App.class which reference Package.class. > > Note that this is perfectly valid (two jars with the same namespace > accessing package private classes). > > This works fine in micro-2.0.0 but fails with IllegalAccessError in 2.0.1 > and 2.0.2-SNAPSHOT. > > Does someone know off the top of their head what is going on? If not, I can > dig further into this issue. > > Thanks! > -Rushabh > > -- > > Rushabh Doshi > > http://keeda.stanford.edu/~radoshi > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Microemulator-users mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microemulator-users > > |