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 82748 - [ws][hints][55cat] IDE should validate package-info
Summary: [ws][hints][55cat] IDE should validate package-info
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@webservices
URL:
Keywords:
Depends on:
Blocks: 78758
  Show dependency tree
 
Reported: 2006-08-15 16:03 UTC by brviking
Modified: 2007-06-27 14:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brviking 2006-08-15 16:03:31 UTC
[ BUILD # : 200608110000 ]
[ JDK VERSION : 1.6 ]

When creating a web service with customized @XmlSchema, developer will create a sub-package jaxws, and put a package-info.java file inside it.
Then, if developer declares a "namespace='...'" and on webservice declares a "targetNamespace='...'", IDE should verify both are equals.

Example of wrong code written by me (without any alert about what I was doing wrong - take me hours to get it solved):

@WebService(name="usuarioWS", targetNamespace="webservices.everest.info")
public class UsuarioWS {
...
}

On package-info.java:

@XmlSchema(
  namespace="http://webservices.everest.info",
  attributeFormDefault=XmlNsForm.QUALIFIED,
  elementFormDefault=XmlNsForm.QUALIFIED)

Besides sounds stupid, I wasn't able to see difference between "webservices.everest.info" and "http://webservices.everest.info".
IDE should alert when namespace and targetNamespace are different only when comparing a web service and a package-info in it's jaxws subpackage.
Comment 1 Tomasz Slota 2006-08-17 12:43:59 UTC
to be implemented in the next release