| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| <link rel="stylesheet" type="text/css" href="../css/ot.css" /> |
| <link rel="stylesheet" type="text/css" href="../css/otjld.css" /> |
| <title>OT/J Language Definition v1.3</title> |
| </head> |
| <body class="otdt"> |
| <div id="content"> |
| <table class="nav"> |
| <tr> |
| <td class="back"><a id="top"></a><a href="s3.4.b.html" rel="prev"><< §3.4.(b) Sealing against decapsulation</a></td> |
| <td class="top"><a href="index.html" rel="contents">↑ Table of Contents ↑</a></td> |
| <td class="next"><a href="s3.4.d.html" rel="next">§3.4.(d) Private methods from super classes >></a></td> |
| </tr> |
| </table> |
| <div class="breadcrumb"><a class="nav" href="s3.html" rel="section">§3 Callout Binding</a> > <a class="nav" href="s3.4.html" rel="section">§3.4 Overriding access restrictions</a></div> |
| <div class="subsect depth3" id="s3.4.c"> |
| <h4 class="subsect">§3.4.(c) <span class="title">Warning levels</span><a class="img" href="s3.4.c.html" title="PermaLink to (c) Warning levels"><img style="vertical-align:text-top;margin-left:5px;" src="../images/permalink.png" |
| alt="" /></a></h4> |
| <p>A compiler should signal any occurrence of decapsulation. |
| If a compiler supports to configure warnings this may be used to let the user choose to |
| (a) ignore base class decapsulation, (b) treat it as a warning or even |
| (c) treat it as an error (cf. <a href="s2.1.2.c.html" title="§2.1.2.(c) Base class decapsulation" |
| class="sect">§2.1.2.(c)</a>). |
| <br /> |
| Optionally, a batch compiler may support three levels of verbosity with respect to decapsulation: |
| |
| </p> |
| <table border="1"> |
| <tr> |
| <td rowspan="1" colspan="1"><tt>-nodecapsulation</tt></td> |
| <td rowspan="1" colspan="1">No warnings.</td> |
| </tr> |
| <tr> |
| <td rowspan="1" colspan="1"><em>default</em></td> |
| <td rowspan="1" colspan="1">Warn only if/that access restrictions are overridden.</td> |
| </tr> |
| <tr> |
| <td rowspan="1" colspan="1"><tt>-decapsulation</tt></td> |
| <td rowspan="1" colspan="1">Detailed messages containing the binding and the hidden base method.</td> |
| </tr> |
| </table> |
| </div> |
| <table class="nav"> |
| <tr> |
| <td class="back"><a href="s3.4.b.html" rel="prev"><< §3.4.(b) Sealing against decapsulation</a></td> |
| <td class="top"><a href="index.html" rel="contents">↑ Table of Contents ↑</a></td> |
| <td class="next"><a href="s3.4.d.html" rel="next">§3.4.(d) Private methods from super classes >></a></td> |
| </tr> |
| </table> |
| <div class="breadcrumb"><a class="nav" href="s3.html" rel="section">§3 Callout Binding</a> > <a class="nav" href="s3.4.html" rel="section">§3.4 Overriding access restrictions</a></div> |
| </div> |
| <div id="footer"> |
| <hr /><a class="w3c img" href="http://jigsaw.w3.org/css-validator/check/referer" |
| shape="rect"><img src="../images/valid-css2-blue.png" alt="Valid CSS!" height="31" width="88" /></a><a class="w3c img" href="http://validator.w3.org/check?uri=referer" shape="rect"><img src="../images/valid-xhtml10-blue.png" alt="Valid XHTML 1.0 Strict" height="31" |
| width="88" /></a><address>© Stephan Herrmann, Christine Hundt, Marco Mosconi</address> |
| OT/J version 1.3 — last modified: 2010-06-08 |
| </div> |
| </body> |
| </html> |