bug: CodePro AnalytiX - "Fix Violation" corrupts file

CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis

Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew

bug: CodePro AnalytiX - "Fix Violation" corrupts file

Postby Francois Misiak » Thu Mar 03, 2011 12:51 pm

Suppose you have a file 'file.properties' with following contents:

other2=things
hello=world
hello=world
other=things

Launch an audit, and then try a "Fix Violation" on the duplicated property ("hello").
CodePro will propose to delete the property, go ahead with that choice.
As a result your properties file now contents:

other2=things
hello=world
ther=things

See how the property key "other" below "hello=.." has its value truncated ("ther" instead of "other").
Francois Misiak
 
Posts: 1
Joined: Thu Mar 03, 2011 12:41 pm

Re: bug: CodePro AnalytiX - "Fix Violation" corrupts file

Postby gnebling » Mon Apr 18, 2011 9:21 am

This looks like a bug. Will include it in our list of things to fix sometime in the future. Thanks for reporting this.
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test

Who is online

Users browsing this forum: No registered users and 1 guest

cron