| Summary: | [fiximprove][SDK]: Device importing. WTK 3.0.0 devices have incorrect Configuration and Profile values upon import. | ||
|---|---|---|---|
| Product: | [Tools] MTJ | Reporter: | Jon Dearden <jdearden> |
| Component: | SDK Management | Assignee: | Diego Madruga Sandin <wds057> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | dsdp.mtj-inbox, jdearden, MathsMadness, mr, wds057, wgp010 |
| Version: | 1.0 | ||
| Target Milestone: | 1.0.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Jon Dearden
I will investigate this issue. It seems that the problem is in the AbstractMIDPDevice#getLibraryWithType(MIDPAPIType type) method. This method implementation returns the first occurrence of an API with the given type. Since WTK 3.0 has more then one profile/configuration jar in the classpath, the call of methods AbstractMIDPDevice#getMIDPAPI() and AbstractMIDPDevice#getCLDCAPI() always return the lowest version of the profile/configuration. Hi Jon, I've fixed this issue and it's now available on N20090728 NB in case you want to test it. http://download.eclipse.org/dsdp/mtj/downloads/drops/N-N20090728-200907282027/index.html Fixed and committed to svn. Released The bug still exists in my Vista eclipse 3.5.1 MTJ 1.0.1 Java_ME_platform_SDK_3.0 environment. Workaround: Removing the CLCD 1.0 library and restart eclipse did help Window -> Preferences -> Java ME -> Device Management -> DefaultCldcPhone2 -> Edit -> Libraries -> cldc_1.0.jar: Remove -> Restart eclipse The bug also still exists in my Windows XP SP 3 Eclipse 3.5.2 MTJ 1.0.1 Java_ME_platform_SDK_3.0 environment. The workaround proposed by Marcel RUff (see Comment 6) does not work either in my environment. (In reply to comment #7) > The bug also still exists in my > Windows XP SP 3 > Eclipse 3.5.2 > MTJ 1.0.1 > Java_ME_platform_SDK_3.0 > environment. > > The workaround proposed by Marcel RUff (see Comment 6) does not work either in > my environment. Update: deleting the "Application Descriptor" created when creating a new MIDlet Project does the trick, even when keeping the default libraries for the Java ME platform SDK 3.0 devices. But then, changing the Microedit Configuration in the Application Descriptor does not have any effect. Even when choosing CLDC 1.0, there are no compiler errors, although several methods are used which were introduced in CLDC 1.1. |