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 238730 - References to non existing jaxb binding still occurs in editor
Summary: References to non existing jaxb binding still occurs in editor
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-23 13:13 UTC by archenroot
Modified: 2016-07-07 09:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Non-existing package in editor package proposals (399.16 KB, image/png)
2013-11-25 09:25 UTC, archenroot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description archenroot 2013-11-23 13:13:39 UTC
When doing changes to the schema namespaces and reconfigure JAXB binding using both just refresh or even delete and recreate the editor is still showing me classes from already not existing package. 

For example I have namespace "A" and one element <myElement>, when I change the namespace in XSD to B, remove jaxb binding and recreate it or just refresh ( I also tried delete the build and xml-resources folders), and regererate jaxb classes.

then when I go to my Java application, delete all imports there is missing import for MyElement class comming from JAXB, when I click on proposed classes to import, it is showing me both:
A.MyElement - this is not fine as soon as this package doesn't exists
B.MyElement - this is fine

I didn't searched for the text of the full package name, it is clear to me, that it is referenced from some filesystem storage, I deleted the cache folder but still the same.

Anyway Netbeans knows that it doesn't exists somehow, because the will of course fail when run, but when I manually write the import declaration it is giving me the choice to use package which doesn't exists.
Comment 1 archenroot 2013-11-23 13:22:18 UTC
Ok, just update. After clearing manually the cache on the drive and removing all not valid imports, Netbeans stops showing me non existing packages.
Comment 2 archenroot 2013-11-25 09:25:38 UTC
Created attachment 142527 [details]
Non-existing package in editor package proposals

Here is a case when editor is proposing me non existing package to import.
Comment 3 Martin Balin 2016-07-07 09:56:18 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss