Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Java 1.7 #19

Open
grifmeister opened this issue Dec 4, 2013 · 1 comment
Open

Does not work with Java 1.7 #19

grifmeister opened this issue Dec 4, 2013 · 1 comment

Comments

@grifmeister
Copy link

Throws error on Maven build running AnnotationProcessor same config works with Java 1.6:

[INFO] diagnostic C:\Users\me\dev\workspaces\TNT\mytestapplication-service\src\main\generated\java\com\me\mytestapplication\resource\CustomerServiceResource.java:53: error: cannot find symbol
consumes = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE},
^
symbol: method consumes()
location: @interface org.springframework.web.bind.annotation.RequestMapping

Method definition:

@RequestMapping(value = "/getcustomer/{id}", method = {RequestMethod.GET}, 
                consumes = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE}, 
                produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public com.me.mytestapplication.service.wrapper.customerservice.GetCustomerResponse getCustomer(@PathVariable("id") Integer id) throws BusinessException, ServiceException {
@pcl
Copy link
Member

pcl commented Dec 7, 2013

Hm. We use wsdoc with 1.7 all the time. I wonder what the difference is
between our environments.

How are you building wsdoc?

On Wed, Dec 4, 2013 at 1:45 PM, grifmeister notifications@github.comwrote:

Throws error on Maven build running AnnotationProcessor same config works
with Java 1.6:

[INFO] diagnostic
C:\Users\me\dev\workspaces\TNT\mytestapplication-service\src\main\generated\java\com\me\mytestapplication\resource\CustomerServiceResource.java:53:
error: cannot find symbol
consumes = {MediaType.APPLICATION_XML_VALUE,
MediaType.APPLICATION_JSON_VALUE},
^
symbol: method consumes()
location: @interface https://github.com/interfaceorg.springframework.web.bind.annotation.RequestMapping


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.

Patrick Linskey
202 669 5907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants