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 118696 - Fix import functionality doesn't work with jaxb.
Summary: Fix import functionality doesn't work with jaxb.
Status: VERIFIED DUPLICATE of bug 114164
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-12 12:39 UTC by Michael Nazarov
Modified: 2007-10-15 18:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (60.66 KB, image/png)
2007-10-12 14:12 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2007-10-12 12:39:28 UTC
Product Version: NetBeans IDE Dev (Build 200710120000)
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

I created Java application and added JAXB binding into. Then inserted some testing code into main().
After that I used "Fix imports" functionality (Ctrl+Shift+I) to fix imports. Nothing changed. My code
stay corrupted because used classes added during JAXB creation and there are no related import statements
yet. After manual insertion of required import statements project compiled and ran fine.

Normal fixing without JAXB works fine also, so issue about JAXB not other area in my opinion.
Comment 1 Michael Nazarov 2007-10-12 13:39:46 UTC
In some cases (I did not establish exact steps yet) java file editor shows errors like unexisting package while projects
builds and runs successfully.
Comment 2 Michael Nazarov 2007-10-12 14:12:47 UTC
Created attachment 50821 [details]
screenshot
Comment 3 _ gmpatil 2007-10-12 16:31:37 UTC
Yes, in current builds JAXB Wiz generated classes are not recognized by the editor. Neither code completion, fix 
imports are working.
Have re-opened the issue #114164, there is one more on the same the issue #117698.

Since the root cause is same, marking this as duplicate of #114164.

*** This issue has been marked as a duplicate of 114164 ***
Comment 5 Michael Nazarov 2007-10-15 18:41:08 UTC
Build 200710150000

Looks good for me. But this issue is bit periodical so I'm not sure
will not come back again.

Anyway works fine in specified build. Will check original issues also
as slightly different scenario specified there.