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: | JAXB Generated code is not properly recognized between projects | ||
---|---|---|---|
Product: | java | Reporter: | lh32469 <lh32469> |
Component: | Project | Assignee: | _ gmpatil <gmpatil> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mkuchtiak, tzezula |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lh32469
2007-10-03 21:04:20 UTC
What version/build number of Netbeans are you using? Seems that the "generated/addons/jaxb" source root does not have a bootclasspath (in Files tab, when I select a Java file from the source root and open Properties of it, it does not have any bootclasspath). Java infrastructure ignores source roots without classpath, as it cannot process them correctly (would not find j.l.Object in this case). Looks like duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=114164 . Above one was fixed on Sept 26th build. Please verify using the latest build. I got the same results as below with nightly build Product Version: NetBeans IDE Dev (Build 200710090000) Java: 1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03 System: Linux version 2.6.15-28-386 running on i386; UTF-8; en_US (nb) Userdir: /Users/lh32469/.netbeans/dev I am able to simulate using the latest builds. Looks like something got changed in Java infrastructure, fix #114164 no longer effective. Need Java infrastructure expert help. jlahoda, Using build NetBeans IDE Dev (Build 200710101602), I am able to see 'bootclasspath' property populated. Yes, well, sorry, I looked at incorrect line. The source classpath is null, not boot classpath (unfortunately, source classpath is not in the Properties dialog in the production build). Anyway, Milan so doing some ClasspathProvider that provides source classpath for a different generated source root, so he should be able to help. What you need is to implement ClassPathProvider providing classpath (BOOT, COMPILE, SOURCE) for your source root and register it in desired lookup merger. I am not sure the implementation of ClassPathProvider for generated files will help, in case of CC. I think, you should also add the url of your jaxb folder to org.netbeans.modules.java.j2seproject.classpath.SourcePathImplementation:getResources() I believe that it is already there SourcePathImlementation ver 1.14 integrated by gmpatil. The only missing step is to provide classpath for the root which can be done as I've described above. Milan can point you to his implementation of ClassPathProvider + registraton which should be very similar to what you need, only the path differs. The implementation is in websvc/core : org.netbeans.modules.websvc.core.jaxws.projects.JaxWsArtifactsClassPathProvider Sure, I will try the suggestions. I have checked-in the fix to the trunk, missed release60_beta2 branch. Implemented Classpath provider and registered using lookup merger, similar to Web Services. Changed files. http://xml.netbeans.org/source/browse/xml/jaxb/src/org/netbeans/modules/xml/jaxb/model/JAXBWizLookupProvider.java?r1=1.2&r2=1.3 http://xml.netbeans.org/source/browse/xml/jaxb/src/org/netbeans/modules/xml/jaxb/model/JAXBGenSourceClassPathProvider.java?rev=1.1&content-type=text/vnd.viewcvs-markup |