All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Moderators: Site Manager , fjwalraven
piotr.kraciuk
Posts: 9 Joined: Sat May 09, 2015 6:30 am
Contact:
Post
by piotr.kraciuk » Wed Jan 27, 2016 3:45 pm
Both correct answers:
Code: Select all
@WebService
public class MathTableImpl {
@Override
@WebMethod (operationName="getMathTable")
public SimpleMathTable getTable(Integer number) throws NegException {
SimpleMathTable table = new SimpleMathTable(number);
return table;
}
}
and
Code: Select all
@WebService
public class MathTableImpl {
@Override
@WebMethod
public SimpleMathTable getMathTable(Integer number) throws NegException {
SimpleMathTable table = new SimpleMathTable(number);
return table;
}
}
present code that would not compile. They use "@Override" annotation in classes not implementing any interfaces and not extending any other classes.
fjwalraven
Posts: 429 Joined: Tue Jul 24, 2012 2:43 am
Contact:
Post
by fjwalraven » Wed Jan 27, 2016 4:05 pm
Yes, you are right! I will check all related questions and fix them.
Thanks again for your feedback!
Regards,
Frits
Users browsing this forum: No registered users and 6 guests