About Question enthuware.ocejws.v6.2.43 :

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

Post Reply
piotr.kraciuk
Posts: 9
Joined: Sat May 09, 2015 6:30 am
Contact:

About Question enthuware.ocejws.v6.2.43 :

Post by piotr.kraciuk »

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:

Re: About Question enthuware.ocejws.v6.2.43 :

Post by fjwalraven »

Yes, you are right! I will check all related questions and fix them.

Thanks again for your feedback!

Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests