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 43658 - Unable to open java file org.openide.src.SourceException
Summary: Unable to open java file org.openide.src.SourceException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 44015 46004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-21 09:30 UTC by phuey
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log File (147.42 KB, text/plain)
2004-05-21 09:32 UTC, phuey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phuey 2004-05-21 09:30:29 UTC
org.openide.src.SourceException
Error on open or Java File. The file opens ok but 
reports the above error. If double clicking on 
the file again no error is reported (if active 
file).
Comment 1 phuey 2004-05-21 09:32:29 UTC
Created attachment 15049 [details]
IDE Log File
Comment 2 Milan Kubec 2004-05-24 08:09:45 UTC
Reassigning for evaluation.
Comment 3 psuk 2004-07-19 17:17:53 UTC
There is a nice description in Issue 44015 :
-----------------------------------------------
I created a class dshadow.RoundGradientPaint.  Then I select-
all/copied the content of the java file from another file, where it 
was declared in the default package.  So I pasted in code with 
the right class name, but no package declaration.

When I added "package dshadow" at the top of the file, the 
following exception popped up (and continued popping up):


Correction - I also pasted the wrong sources into the file.  So I had
sources for "RoundGradientPaint" in a file called
"RoundGradientContext" which I was changing the package statement for.
-----------------------------------------------
Comment 4 psuk 2004-07-19 17:19:59 UTC
*** Issue 44015 has been marked as a duplicate of this issue. ***
Comment 5 psuk 2004-07-22 17:22:21 UTC
*** Issue 46004 has been marked as a duplicate of this issue. ***
Comment 6 Martin Matula 2004-07-22 17:37:53 UTC
org.netbeans.modules.java.model package has been replaced by the new
javacore module and o.n.m.j.bridge. This issue is no longer valid.