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 120600 - a little bug of editor
Summary: a little bug of editor
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 121950
  Show dependency tree
 
Reported: 2007-10-31 12:25 UTC by hadeslee
Modified: 2008-04-18 09:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the project of ChessClient2 which will appear red excalmatory mark (101.29 KB, application/octet-stream)
2007-11-01 07:50 UTC, hadeslee
Details
the project that ChessClient2 will use (16.44 KB, application/octet-stream)
2007-11-01 07:51 UTC, hadeslee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hadeslee 2007-10-31 12:27:00 UTC
1, when a project has a error or a file in a project has a error,there is a red excalmatory mark,but when my project has
not any error(my project can compile success),it sometimes also show the red excalmatory mark in the project .
2,the editor formatter is worse than netbeans5.5,because when I write following code:
...
//the age of Person
private int age;
//the name of person
prvate String name;
...
after formatted,the code is :
...
//the age of Person

private int age;
//the name of person

prvate String name;
...
the comment is separated by a line ,this looks funny.
Comment 1 Jiri Prox 2007-10-31 13:06:36 UTC
Please provide more info for the first problem. Reliable steps to reproduce are welcome.

The second problem is not reproducible for me in the latest daily build. Which build do you use? Did you change any
formatting settings? (Options->Java Code->Formatting)
Comment 2 hadeslee 2007-11-01 02:28:04 UTC
sorry,the first problem is hardly to reproduce,when I restart Netbeans,the error may be disappeared.

the second,the build I use is netbeans beta2(build 200710212201),and I do not change any formatting settings.
Comment 3 hadeslee 2007-11-01 07:50:22 UTC
Created attachment 52214 [details]
the project of ChessClient2 which will appear red excalmatory mark
Comment 4 hadeslee 2007-11-01 07:51:45 UTC
Created attachment 52215 [details]
the project that ChessClient2 will use
Comment 5 hadeslee 2007-11-01 07:53:51 UTC
when you open the two projectes,you will find that the will be a red excalmatory mark in the project ChessClient2 even
the ChessClient2 can be build.
Comment 6 Jiri Prox 2007-11-05 09:36:59 UTC
I've opened your project but I cannot see any error badges. Can you provide more info about the errors? Are there any
errors in the source file or it's only the error badges in project view?
Does the error goes away when you open the related file.

I can see the formating problem. Please use javadoc if you want to comment fields. For inline comments ('//') it is not
clear with which element they are connected.
Comment 7 pribyl 2008-04-18 09:11:34 UTC
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

I cannot reproduce this either.
When I import this project, everything seems to bee allright, no error badges at all.

I hope libinfeng has the same experience now :) Otherwise please provide more info about the errors you are obtaining
and reopen the issue.
Thanks.