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 44468 - Cannot open java file from Files and Favorites
Summary: Cannot open java file from Files and Favorites
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
: 44626 44777 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-07 17:45 UTC by Jiri Skrivanek
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (8.27 KB, text/plain)
2004-06-07 17:45 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2004-06-07 17:45:32 UTC
It is impossible to open a java file from Files
and Favorites views. It is probably something
wrong with refactoring. Other file types like xml
or properties files are OK. To reproduce:

- run IDE and open Favorites (Window|Favorites)
- browse to a java file and try to open it
- nothing but empty editor tab is opened and
exception is thrown

Tested in build 20040607-1357, JDK1.4.2_04, WindowsXP.
Comment 1 Jiri Skrivanek 2004-06-07 17:45:56 UTC
Created attachment 15533 [details]
Stack trace
Comment 2 Martin Roskanin 2004-06-08 08:56:09 UTC
Yes, I have reproduced it. The same problem will occur if you will
open a java file via File/Open File...
In these situations getResource() returns null...
Comment 3 Martin Roskanin 2004-06-08 14:49:50 UTC
Petr F., it seems that problem is not in java module. I am reassigning
the issue back to editor.
Comment 4 Martin Roskanin 2004-06-08 14:57:47 UTC
fixed in [maintrunk]

/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java,v
 <--  NbJavaJMISyntaxSupport.java
new revision: 1.6; previous revision: 1.5
Comment 5 pfelenda 2004-06-09 10:02:47 UTC
I am sorry, I did it in a hurry.
Comment 6 Jiri Skrivanek 2004-06-09 13:45:32 UTC
Verified in build 20040609-0731.
Comment 7 Dusan Balek 2004-07-19 09:00:31 UTC
*** Issue 44626 has been marked as a duplicate of this issue. ***
Comment 8 Dusan Balek 2004-07-19 09:01:12 UTC
*** Issue 44777 has been marked as a duplicate of this issue. ***