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 136496 - Code completion does not work on jaxb generated code imported as a project dependency
Summary: Code completion does not work on jaxb generated code imported as a project de...
Status: VERIFIED DUPLICATE of bug 114164
Alias: None
Product: xml
Classification: Unclassified
Component: JAXB (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 19:01 UTC by carcassi
Modified: 2008-11-12 14:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project used to verify (39.57 KB, application/x-compressed)
2008-11-11 22:28 UTC, rpoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carcassi 2008-06-04 19:01:12 UTC
Steps to reproduce the bug:
1) Create a project
2) Create JAXB bindings (will compile, auto complete will work, everything fine)
3) create a new project
4) Set the first project as a compile dependency
5) Reference a generated class: the code will compile but auto-complete will not work (and IDE editor will not 
recognize the generated symbols either)

My workaround was to copy the generated source in the source directory during -post-compile in the first project.
Comment 1 _ gmpatil 2008-06-24 01:47:16 UTC

*** This issue has been marked as a duplicate of 114164 ***
Comment 2 rpoon 2008-11-11 22:27:41 UTC
Using build: \\thumper\50builds\Release6U1\installer\nightly\20081110-0623

Followed the steps described above:
1) Create a new JavaLibrary project and added JAXB binding using XSD file.
2) Compile the JavaLibrary project.
3) Create a new JavaApplication project.
4) Add the JavaLibrary project to the JavaApplication project (via properties/Libraries)
5) In the JavaApplication project, perform tasks that use the Jaxb binding.
6) Verified that code complete (including <CTRL>+<space>,  <CTRL>+<Shift>+i, and 'jaxbm' etc) work.
6) Compile and run the JavaApplication project.

The described problem was not encountered.

(see attached test projects)
Comment 3 rpoon 2008-11-11 22:28:47 UTC
Created attachment 73646 [details]
Project used to verify
Comment 4 carcassi 2008-11-12 14:22:41 UTC
I can confirm that this is solved on NetBeans 6.5 RC1.