Bug 284939 - [fiximprove]: Execution broken after refactoring (rename) class name
Summary: [fiximprove]: Execution broken after refactoring (rename) class name
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: MTJ projects (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 1.0.1   Edit
Assignee: David Marques CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2009-07-28 18:55 EDT by Max CLA
Modified: 2009-10-28 08:45 EDT (History)
4 users (show)

See Also:


Attachments
eclipse log file (180.51 KB, application/octet-stream)
2009-07-29 05:42 EDT, Max CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max CLA 2009-07-28 18:55:51 EDT
After refactoring a class name within a J2ME MIDlet project i always get a ClassNotFoundException. The renamed class could not be found but the file was renamed correct. If i rename the class back to the orignal name the execution works.

The problem is that the files will not exported correct. The jar file at .mtj.tmp folder does not contain the renamed class file. If i 'export' the renamed class manualy to the jar archive the execution runs perfectly.

Another 'workaround' is to move the renamed class to another package and back again.

If i rename the class name and references manually there are no problems.
Comment 1 Diego Madruga Sandin CLA 2009-07-28 19:43:25 EDT
Hi Max,

Which version of MTJ are you using? Do you have an error log you can attach so we can investigate this issue?

Thanks
Diego
Comment 2 Max CLA 2009-07-29 05:42:40 EDT
Created attachment 142866 [details]
eclipse log file
Comment 3 Max CLA 2009-07-29 05:45:38 EDT
I attached the log file and here is my MTJ version:

Mobile Tools for Java	1.0.0.v200906121354-7V7A7BFEx2XZqZ-lBoXfQ	org.eclipse.mtj.feature.group
Comment 4 David Marques CLA 2009-07-29 12:45:28 EDT
Hello Max,

It seems that the refactoring is not updating the build.properties file which by not including the renamed resource does not get it packaged into the application JAR file.

I will fix this soon!

Regards,

David Marques

(In reply to comment #3)
> I attached the log file and here is my MTJ version:
> 
> Mobile Tools for Java   1.0.0.v200906121354-7V7A7BFEx2XZqZ-lBoXfQ      
> org.eclipse.mtj.feature.group
> 

Comment 5 David Marques CLA 2009-07-30 12:45:38 EDT
Bug fixed and code committed.
Comment 6 Diego Madruga Sandin CLA 2009-10-28 08:45:28 EDT
Released