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 147709 - [65cat] Missing newly creted java class files in Project view
Summary: [65cat] Missing newly creted java class files in Project view
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: t_h
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 13:00 UTC by _ theanuradha
Modified: 2008-12-22 13:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (30.02 KB, image/png)
2008-09-19 13:02 UTC, _ theanuradha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ theanuradha 2008-09-19 13:00:52 UTC
[ JDK VERSION : 1.6.0_07 ]

Steps to reproduce:
Step #1 Create a java project
     #2 Delete auto created 'Main.java' class 
     #3 Create New Java class in same package 

Ops Class is missing in Project view Check the Screen shot.
Comment 1 _ theanuradha 2008-09-19 13:02:10 UTC
Created attachment 70144 [details]
screen shot
Comment 2 _ theanuradha 2008-09-19 13:05:04 UTC
this is true with maven project types too so this is most probably Project view refresh issue 
Comment 3 Tomas Danek 2008-09-19 13:53:16 UTC
works for me fine in 

Product Version: NetBeans IDE Dev (Build 200809180201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud

what build are you using?
Comment 4 _ theanuradha 2008-09-19 14:28:10 UTC
Product Version: NetBeans IDE Dev (Build 080919)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: D:\java.ides\netbeans\config\dev

BTW did you folow steps you need to create project and Delete auto created 'Main.java' class to reproduce this 
Comment 5 Milos Kleint 2008-09-22 08:16:47 UTC
musilt2: can you try on windows as well?
It seems to work for me on macosx with today's (22/Sep) custom build.

closing as worksforme.

theanuradha: can you add more detailed steps to reproduce? I've tried with j2se project, I invoked both delete and new
class actions from the popup menu (main.java and package nodes)
Comment 6 Tomas Danek 2008-09-23 10:16:33 UTC
reproduced. also on Linux in 20080918. The thing that matters is that "View package as" has to be set in Tree mode.
Comment 7 Milos Kleint 2008-09-23 10:26:35 UTC
it could be related to issue http://www.netbeans.org/issues/show_bug.cgi?id=145892
however that one shall have been fixed in builds 200809130201+
Comment 8 _ theanuradha 2008-09-23 12:36:06 UTC
Well I'm on latest bits so ... may be http://www.netbeans.org/issues/show_bug.cgi?id=145892 not related ?
Comment 9 Tomas Danek 2008-09-23 12:44:55 UTC
FYI: i was able to reproduce 200809221401 on my XP.
Comment 10 Milos Kleint 2008-09-23 13:56:08 UTC
I'm able to reproduce as well. The issue seems to be somewhere in the Nodes IMHO.
The affected class in project is
org.netbeans.spi.java.project.support.ui.TreeRootNode
which constructs a rather elaborate filter node hierarchy, but I couldn't find anything bad there. The
datasystems/filesystem later works, as the Files view gets updated correctly and it actually works in the project view
all the time as well, unless one deletes the last child of a given folder. After that anything that gets created in that
folder is invisible. (but shows in files view anyway)
Comment 11 t_h 2008-09-25 13:02:15 UTC
ad23cebc2eb5
Comment 12 Quality Engineering 2008-09-27 05:34:30 UTC
Integrated into 'main-golden', will be available in build *200809270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ad23cebc2eb5
User: Tomas Holy <t_h@netbeans.org>
Log: #147709: Missing newly creted java class files in Project view