This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 489996 - Wrong warning "JSR-311, 3.2: The class java.util.UUID should have a constructor..."
Summary: Wrong warning "JSR-311, 3.2: The class java.util.UUID should have a construct...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Keith Chong CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-19 07:58 EDT by Thomas Meyer CLA
Modified: 2016-04-14 13:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Meyer CLA 2016-03-19 07:58:50 EDT
I when using this annotation 

@PathParam("id") @NotNull UUID uuid

Eclipse will show this warning:
"JSR-311, 3.2: The class java.util.UUID should have a constructor that accepts a single java.lang.String argument, or have a static method named valueOf that accepts a single java.lang.String argument."

Which is true but the JSR-311 explicitly also falls back to fromString() when no valueOf() method is found.

"4. Types that have a static method named valueOf or fromString with a single String argument that return an instance of the type. If both methods are present then
valueOf MUST be used unless the type is an enum in which case fromString MUST be used."
Comment 1 Carl Anderson CLA 2016-03-21 13:30:09 EDT
Thomas,

     What version of WTP (or Eclipse) were you using when you encountered this?  Have you tried this on the latest Mars.2 GA?  I am moving this over to Web Services, since they own the support for JAX-RS.
Comment 2 Thomas Meyer CLA 2016-03-22 14:44:24 EDT
Hi,

The Es I'm using the latest eclipse Mars on Windows 7. I can check the exact version when I'm on my computer again. Which osgi bundle should I look up? ss webtools ?!
Comment 3 Keith Chong CLA 2016-03-31 12:41:21 EDT
Hi Thomas,

I don't think this is WTP.   What exactly do you you have installed over Mars?
Comment 4 Keith Chong CLA 2016-04-14 13:03:15 EDT
Hi Thomas,

This actually doesn't belong to WTP.  The message is coming from WDT.  I will forward this issue to them.