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.
[Pilsen-010202_02] jdk1.3.1-b14 sun rh70 =================== Today I've found creazy behavior of Editor. It mixed up ("randomly") opened files-their content with their names. So, I absolutly have noidea wich file I was editing!!! It happend under CVS FS. I also made a snapshot for you. It'll tell you much more then in words. But,I tried to describe this. Situation: =========== I had 2 files (as you can see). They named C1.java, C2.java I edited them simultionasly, so I had them opened in Editor window at the same time. When I switched from one file to another by clicking on tabs in editor. The title of editor didn't correspond to the label of tab. So I became very, very confused. I closed one of them, second leaving opened and unsaved. Probably I thing it was file named C1.java (from content of editor you can recognize it). But in the editor Title there was writen: C2 When I tried to close the editor(and file), question arraised: "File C1 is .... Save it?" Better will be to see a picture[jpeg]
Created attachment 562 [details] Crazy Editor?!?
I'm just want you to know about this problem. Probably you won't be successful with the reproduction. I'm not able too. But it happend to me 2 times:-( If it happens again, thread dump will help, won't be? or what will help to prevent such this editor confusing?
Today it happend with new [Build-010203] Possible steps to reproduce: ============================= 1) create project in [Build-010201_1CE] I had opened 3 files in editor, in Editing WS. (You can do it exactly as it's on picture, but it doesn't matter) 2) close this section and 3) install new [Build-010203CE] 4) import project from previous one using immport cmd-line utility 5) start new ide 6) open MemoryView (from Defaultly mounted FS) -------- Editor is confused it realy doesn't know which file is which one. it thinks that newly opened file is Memory view but as you can see it displays content of file C1. Switching files to C2, C1 doesn't help. It still thinks that it offers to you MemoryView and display wrong content. After switching to the firstly opened file (in my case readme.txt) it starts behave correctly. new [png] picture is attached.
Created attachment 568 [details] Confused Editor!
So all what is wrong is window title, right? Editor knows perfectly what is editing (its Document, it doesn't care for names/files). It is the responsibility of the windowing system to adjust window titles.
Sorry, overlooked the tab title in the editor window is confuced too. Wasn't it repaint problem?
Sorry for late response, but you've answered yourself:-) No reproduction for now, Will help any FullThreadDump? I don't know if it was repaint problem. Maybe...? (What's the definition?) But it seems more to me that it doesn't load anything in "InputStream", maybe forgot it. Editor has knew that some file should be opened, but forgot load it and instead of it offer it the previous one. If I tell you that the Editor window blinked as it usualy does when you open a file, does it help you?
[NBdev-120] today it happend again. 2 opened files in editor...Editing WS attempt to open MemoryView leaded that editor was still displaying previously edited file in the newly added TAB"MemoryV..." The title was corresponding to the tabs. a NullPointerException was thrown so I'm attaching my ide.log
Created attachment 591 [details] NPE is the last record
Huh, this is mixture of several bugs (#9321, #9521). There were two bugs in window system causing window title not to be updated. For user, it might look like editor don't know which file is editing. But now, all bugs related to title updating were fixed, so this shouldn't happen anymore. I'm marking it as duplicate. However, very last exception is totally different case and different bug. Please, create new bug with reproduction steps (I need reproduction, because exception ends deep in Swing code and without reproduction I'm lost). Thankx alot, Dafe *** This bug has been marked as a duplicate of 9321 ***
I'm glad you solved it! Probably it seems that it is fixed and no reproduction was appeard. So that is I can't give you exact steps to reproduce it. (only what I've written in this bag already)
I don't think it is fixed and I think it is not clear duplicate of any of 9321 and 9521. See bug #9833.
*** Issue 9833 has been marked as a duplicate of this issue. ***
Jan Lahoda, please do not reopen this bug anymore, reproductions don't work, exceptions are not thrown, it's fixed!!! Issue 9833 is similar as for what user sees, but caused by something else, probably also under different circumstances. Please, think twice next time.
I haven't any more again troubles with the Editor. So I believe that it's been fixed. Verified on NB32, NBdev-191
Resolved for 3.4.x or earlier, no new info since then -> closing.