This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141184 - Code Generation turns statements broken into multiple lines for readability into one massively long line.
Summary: Code Generation turns statements broken into multiple lines for readability i...
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 15:24 UTC by collettd101
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description collettd101 2008-07-22 15:24:11 UTC
Statements of java code intentionally broken into multiple lines by the Developer for readablity which are reverse 
engineered then code generated get converted into massively long lines.  The code merge needs to do a much better job 
of handling these statements.  Here's a sample:

Written by the developer:
     String veryLong = 
          "Part one" +  // This is part one.
          "Part two" +  // This is part two.
          "Part three";  // This is part three.

After reverse engineering/code generation:
     String veryLong = "Part one" + "Part two" + "Part three";

Not only is the formatting lost but also comments.  It's even uglier when you go look at a UML diagram that has this 
line of code in one of its classes.