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.
Summary: | Bean info generated incorrectly | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Beans | Assignee: | Jan Becicka <jbecicka> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | hmichel, mmirilovic |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2011-11-16 16:14:57 UTC
*** Bug 205306 has been marked as a duplicate of this bug. *** strange, this code was not touched for years Jesse, it is yours I guess: The templates are screwed up. Steps to reproduce: Create New | Java Beans Object | BeanInfo BeanInfo should be created with some parts in guarded sections, but instead of guarded sections you can see //GEN-END and similar comments The problem is, that some special comments are commented out. Don't know, how many templates are corrupted. This was caused by this commit: http://hg.netbeans.org/main-golden/rev/d4c6057a3f4f (In reply to comment #3) > Create New | Java Beans Object | BeanInfo > BeanInfo should be created with some parts in guarded sections, but instead of > guarded sections you can see //GEN-END and similar comments > The problem is, that some special comments are commented out. Indeed you do. But when you restart the IDE the guarded blocks appear normally, so this is a bug in the editor. > This was caused by this commit: > http://hg.netbeans.org/main-golden/rev/d4c6057a3f4f No, that commit did not change the contents of the template. Anyway this is not clearly related to the originally reported bug, which is about generating BI for an existing class; creating a BI from File > New File does not result in uncompilable code. Shouldn't it be marked with 71_HR_FIX_CANDIDATE? This bug *WAS* probably caused by Jesse's changes in templates. JavaBeans templates are not recognized as Beans Data Objects. It never worked transparently by after recent changes those hacks stopped working. Changeset: http://hg.netbeans.org/jet-main/rev/b16466f072eb Author: Jan Becicka <jbecicka@netbeans.org> Date: 2011-11-23 10:33 Message: Issue #205211 - Bean info generated incorrectly Why TM was changed to 7.2? It is supposed to be fixed for 7.1. (In reply to comment #8) > Why TM was changed to 7.2? It is supposed to be fixed for 7.1. Because it's fixed in 7.2, we will change it to 7.1 once the fix is integrated into release71 branch (it's 71_HR_FIX_CANDIDATE and it will be definitely delivered in 7.1) Thanks for the clarification :) For the record: I think the patch is fine. verified in trunk. Still there are some formatting problem, but only a minor ( closing bracket is not on separate line) but it only a minor problem. I'll file separate issue for it. integrated into release71 http://hg.netbeans.org/releases/rev/bb211e0ba4d1 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/b16466f072eb User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #205211 - Bean info generated incorrectly Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/bb211e0ba4d1 User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #205211 - Bean info generated incorrectly (transplanted from b16466f072ebbdf7653f5b227e9a4ca44336528d) verified |