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.
I found when i open my project or i changed Project Configuration, the project windows will show some class is error, but i sure that are right, when i open the class and close again, the project windows will not show error. From 6.0 beta1 to build 200710310000 all have this this.
Please evaluate, probably wrong error badging.
Sorry, but we will need more exact steps to reproduce. Also, I did some fixes in related areas yesterday, so feel free to test newer build.
I attached some code, maybe there can help you. Because the code is for commerce, so i confuse it, but the grammar is still right, and there can build too. You can import this project, and you will found some error tip in project window, if you open some "error" class and close again, the error will disappear. If you want see it again, you can change the project configuration to "Debug", they will show again. Also, i tested it in build 200711021200, it is same.
Created attachment 52437 [details] code for "project windows error"
NetBeans IDE 6.0 Build 200711050000 is also have this. Please correct it.
?????? 6.0 Build 200711081200 is too !!!!!!!!!
Sorry, but I still cannot reproduce: -I have downloaded the attached project and unpacked it -opened it in the IDE - the platform was not found, so the project is marked with red badges - this is OK, IMO -I set a platform to the project, and all the error badges went away -no error badges appeared for me after configuration change -I have restarted the IDE and tried to switch the configurations - sorry - still no error badges
Honza, please look at this again. There is a MIDP project attached. Unfortunately I was not able to reproduce the problem even after changing Project Configuration.
I tried with mobility distribution Product Version: NetBeans IDE Dev (Build 200711070000). All classes in the project seem fine without error badges. When I introduce a error into a class then the class node is marked with the error badge. The error badge disappears when I fix the error in the class source code. Sometimes it takes a little bit of time before the badge is updated...
I wrote every step that what i do today. 1. install vista 2. install j2se 6 update 3 3. install netbeans 6.0-200711081200 with "Base IDE, Java SE, Web && Java EE, Mobility" this four component 4. download the attached, and decompression it, now the project directory is "D:\netbeans\workspace\J2me\CrazyTank_sc\CrazyTank_prototype" 5. use netbeans to open the project, ok, it's fine now 6. change the project configuration to "Debug", oh ye, it is show error badge in project window PS, the error badge is have no relation with "time", it will be disappear only when i open it and close.
Reporter, I will add a patch, could you please test whether it helps? Place the attached jar into ${netbeans_install}/java1/modules/patches/org-netbeans-modules-java-source (${netbeans_install}/java1/modules should already exist, patches/org-netbeans-modules-java-source need to be created) and restart the IDE and try to reproduce the problem. The patch will not heal already broken caches, so please do it with a clear userdir. Thanks.
Created attachment 52848 [details] Binary patch.
Cool, it works good this time. Thanks for you patch. But, i found another "issue", when i input some bad grammar in class, the error badge isn't immediate show on project windows, it will show only when i save the class, maybe the "issue" is for design, but i think it is not good to user.
Thanks for the test. It seems that the problem is caused by incorrect use of encoding: the project uses UTF-8, but the parser uses the default (system) encoding. I have put a provisional fix (that was used to produce the binary patch) to the trunk - see log below. It is not a full patch, as the caches are not corrected when project encoding changes. If the encoding changes and the caches need to be updated, please restart the IDE and change the project classpath - this should force rebuild of caches. I have created issue #121727 for the fact that the caches do not update automatically. I would like to ask for review for inclusion of the provisional fix into NB6.0. The patch should be low risk. I think that "full" patch (which would listen on the encoding change) would be too risky for NB6.0. Checking in FolderArchive.java; /cvs/java/source/src/org/netbeans/modules/java/source/parsing/FolderArchive.java,v <-- FolderArchive.java new revision: 1.8; previous revision: 1.7 done
Created attachment 52877 [details] Patch proposed for release60.
The patch is OK, feel free to integrate.
verified by QE, the patch can go to 6.0
Fixed merged into release60 branch: Checking in src/org/netbeans/modules/java/source/parsing/FolderArchive.java; /cvs/java/source/src/org/netbeans/modules/java/source/parsing/FolderArchive.java,v <-- FolderArchive.java new revision: 1.7.4.1; previous revision: 1.7 done
verified in RC1