cancel
Showing results for 
Search instead for 
Did you mean: 

to make method deprecated

0 Kudos

Hi experts,

i have the following question.

How can i make in web dynpro any method (e.g. interface method) deprecated. So if i try to use it, a warning appears. I have already tried to do it with @depricated javadoc Tag , but it's not working.

Have you any ideas?Could you help?

Thank u in advance!

Kind regards,

Daria

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Following is the way to do it



//@@begin javadoc:test()
  /**
   * Method declared by application. 
   * @deprecated This is a sample to depricate a method.
   */
  //@@end
  public void test( )  {
    //@@begin test()
	  
    //@@end
  }

Regards

Ayyapparaj

0 Kudos

Hi Ayyapparaj,

thank you for your answer.

But as i mentioned i have already tried this way. What i have also found out now:

If i call this way deprecated method using this.method() i got a warning that method is deprecated.

But if i use wdThis.controllerName().method()(what i actaully need) there is no information that method is deprecated.

Thank you!

Best regards,

Daria

Former Member
0 Kudos

Hi,

When i used the same (wdThis.controllerName().method()) from view in my CE i can see the method as depricted.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Daria,

unfortunately wdThis is a proxy object to your internal this object and javadoc documentation (and so the @deprecated tag) is not transferred between the respective classes.

Bests