This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:crosscompiler:type_checking [2019/07/12 15:44] – ursgraf | dev:crosscompiler:type_checking [2022/12/20 11:43] (current) – ursgraf | ||
---|---|---|---|
Line 22: | Line 22: | ||
All the explanations above were for // | All the explanations above were for // | ||
- The check against //Object// is never necessary. It will be eliminated already in the Bytecode. | - The check against //Object// is never necessary. It will be eliminated already in the Bytecode. | ||
- | - Bei einer misslungenen Prüfung wird eine Trap-Instruktion ausgelöst. | + | - A failing check has to cause an exception. |
- A '' | - A '' | ||
Line 79: | Line 79: | ||
Object[][][] o = new Object[2][3][4]; | Object[][][] o = new Object[2][3][4]; | ||
A[] x = new AA[5]; | A[] x = new AA[5]; | ||
- | | + | |
- | | + | |
short[][] y = new short[2][3]; | short[][] y = new short[2][3]; | ||
- | | + | |
- | | + | |
</ | </ | ||
leads to\\ | leads to\\ | ||
[{{ .: | [{{ .: | ||
- | This example can be found in the test cases (//ch.ntb.inf.deep.comp.targettest.arrays.ArrayInstanceTest.testInstance4// | + | This example can be found in the test cases (//org.deepjava.comp.targettest.arrays.ArrayInstanceTest.testInstance4// |