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 8083 - Empty implements or extends clause causes problems
Summary: Empty implements or extends clause causes problems
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 major (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-30 17:33 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-10-30 17:33:58 UTC
[1133] JDK 1.3.0-C

Steps to reproduce:
1. Create class with empty extends:
 class Foo extends{
 }
2. Save this class
3. Using PropertySheet set this class to extends e.g. Object
4. Invalid changes in code are made!

The same problem with implements
Comment 1 Svata Dedic 2000-11-03 15:57:59 UTC
The bug occurs only when the parsed hierarchy is intentionally updated with
incomplete or bad data. The parser itself recovers at the end of the file and
reports incorrect positions in the file; the fix would require tweaking in the
parser engine and error recovery mechanics which is not a thing I would do near
either FCS or NetBeans beta release.
Comment 2 Jan Becicka 2002-01-11 08:39:49 UTC
This is a serious bug.
Comment 3 Svata Dedic 2002-01-11 09:08:22 UTC
Won't fix with the current implementation of the parser. Since the
parser reports opening brace (== the end of extends clause) at the end
of the file, there's no reasonable way how to fix/detect such situation.
There's already work in progress on a new parser implementation which
will hopefully solve this problem as well.
Comment 4 Quality Engineering 2003-07-01 13:10:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:11:03 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 13:15:01 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.