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 72015 - Inserted hint code sometimes interferes with matisse generated code
Summary: Inserted hint code sometimes interferes with matisse generated code
Status: RESOLVED DUPLICATE of bug 73805
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 15:04 UTC by belgabor
Modified: 2006-05-05 13:31 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 belgabor 2006-01-30 15:04:19 UTC
Sometimes code generated by hints inferferes with generated code (matisse).
So far I had these problems:
- I accidently clicked on "add throws clause" in a autogenerated handler
function. As I cannot remove the throws clause from the generated part.
Fortunately I immediately noticed the mistake and could undo it. As I cannot
remove the throws clause from the generated part, it might have grown into a
problem later. I think for functions with a generated (and therefore protected)
declaration the hint system should not display hints that modify it.
- In the second case I added an interface and used the hint to implement the
abstract functions. The function declaration ended up in the middle(!) of a
generated variable declaration. When I used undo, moved the cursor and then
refollowed the hint, it was placed correctly so it may be related to the cursor
position.
All in all I think the hint system should take care not to modify (matisse)
generated code.
Comment 1 Jan Becicka 2006-05-05 13:31:40 UTC

*** This issue has been marked as a duplicate of 73805 ***