blob: 845e2fa8910155f4e93fad29eeabb461d1cdcdc9 [file] [log] [blame]
<!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">&lt;&lt;&nbsp;&sect;3.4.(b)&nbsp;Sealing against decapsulation</a></td>
<td class="top"><a href="index.html" rel="contents">&uarr;&nbsp;Table of Contents&nbsp;&uarr;</a></td>
<td class="next"><a href="s3.4.d.html" rel="next">&sect;3.4.(d)&nbsp;Private methods from super classes&nbsp;&gt;&gt;</a></td>
</tr>
</table>
<div class="breadcrumb"><a class="nav" href="s3.html" rel="section">&sect;3&nbsp;Callout Binding</a>&nbsp;&gt;&nbsp;<a class="nav" href="s3.4.html" rel="section">&sect;3.4&nbsp;Overriding access restrictions</a></div>
<div class="subsect depth3" id="s3.4.c">
<h4 class="subsect">&sect;3.4.(c)&nbsp;<span class="title">Warning levels</span><a class="img" href="s3.4.c.html" title="PermaLink to (c)&nbsp;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="&sect;2.1.2.(c)&nbsp;Base class decapsulation"
class="sect">&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">&lt;&lt;&nbsp;&sect;3.4.(b)&nbsp;Sealing against decapsulation</a></td>
<td class="top"><a href="index.html" rel="contents">&uarr;&nbsp;Table of Contents&nbsp;&uarr;</a></td>
<td class="next"><a href="s3.4.d.html" rel="next">&sect;3.4.(d)&nbsp;Private methods from super classes&nbsp;&gt;&gt;</a></td>
</tr>
</table>
<div class="breadcrumb"><a class="nav" href="s3.html" rel="section">&sect;3&nbsp;Callout Binding</a>&nbsp;&gt;&nbsp;<a class="nav" href="s3.4.html" rel="section">&sect;3.4&nbsp;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>&copy; Stephan Herrmann, Christine Hundt, Marco Mosconi</address>
OT/J version 1.3 &mdash; last modified: 2011-05-15
</div>
</body>
</html>