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 9456 - Break indentation after using MethodElement::setBody
Summary: Break indentation after using MethodElement::setBody
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-06 21:13 UTC by Karel Gardas
Modified: 2007-09-26 09:14 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 Karel Gardas 2001-02-06 21:13:51 UTC
I've discovered $subject bug while I have been trying to set body into method in
java class on filesystem.
Comment 1 Svata Dedic 2001-02-12 06:52:59 UTC
Can you, please, attach an example of the string passed to method.setBody() and
the (wrongly indented) output ? I am only aware of bad indentation of comments
right now.
Comment 2 Svata Dedic 2001-02-21 18:07:52 UTC
I'm marking it as WORKSFORME - as it considers java code generator, things are OK. They may be a bug in Editor's indentation engine, or in interaction of code generator and that engine.
Please provide an example and reopen the bug, if you want pursue the issue further.
Comment 3 Karel Gardas 2001-05-14 11:33:48 UTC
  It doesn't work for me in ''complicated'' example. Please use test from bug
11003 (in attachment). Run it with using internal execution, then comment out
line 41 and run it again. It will finish with bad indented body of method ''added''.
Comment 4 Tomas Hurka 2001-05-18 10:50:29 UTC
Fixed in main trunk. Setting as 3.2.1 candidate.
Comment 5 Tomas Hurka 2001-05-18 12:47:37 UTC
Checking in Method.java;
/cvs/java/src/org/netbeans/modules/java/codegen/Method.java,v  <--  Method.java
new revision: 1.8; previous revision: 1.7
done

Checking in ElementBinding.java;
/cvs/java/src/org/netbeans/modules/java/codegen/ElementBinding.java,v  <-- 
ElementBinding.java
new revision: 1.20; previous revision: 1.19
done

Comment 6 Jan Becicka 2001-06-18 13:43:22 UTC
[010616] Verified
Comment 7 Quality Engineering 2003-07-01 13:14:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.