Resolution:
Correct the code; then recompile.
Example:
The following example shows incorrect use of the Obselete attribute.
class-id A.
method-id main static.
declare o1 = new B
invoke o1::Meth1
end method.
end class.
class-id B attribute System.Obsolete ("This is an obsolete type causing warning").
method-id Meth1 attribute System.Obsolete ("This is an obsolete method causing error", true).
display "In Meth1"
end method.
end class.