deep

a Cross Development Platform for Java

User Tools

Site Tools


dev:crosscompiler:cfr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
dev:crosscompiler:cfr [2016/02/25 13:33] – external edit 127.0.0.1dev:crosscompiler:cfr [2019/01/09 13:44] – [Classes, Interfaces and Arrays] ursgraf
Line 50: Line 50:
   * typeChkInterfaces: See the comment below.   * typeChkInterfaces: See the comment below.
  
-There a a special case where an interface nedds a type descriptor. This happens when type testing for an array of interfaces, see [[type_checking|Type Checking]].+There a a special case where an interface needs a type descriptor. This happens when type testing for an array of interfaces, see [[type_checking|Type Checking]].
 <code java> <code java>
   Object o = new InterfaceA[10];    Object o = new InterfaceA[10]; 
Line 133: Line 133:
 ===== Methods ===== ===== Methods =====
 All reference types can have methods, even arrays as they inherit from //java/lang/Object//. The methods get sorted for building the type descriptors, see [[.:type_descriptor|Type Descriptor]]. All reference types can have methods, even arrays as they inherit from //java/lang/Object//. The methods get sorted for building the type descriptors, see [[.:type_descriptor|Type Descriptor]].
 +
 +===== Locals =====
 +Local variables within a method are dealt with in a separate section of the bytecode, the ''local variable table''. First of all it contains information about the slot the variable occupies together with the range where the variable is defined. Different locals might occupy the same slot, even with different types.
dev/crosscompiler/cfr.txt · Last modified: 2022/12/20 11:20 by ursgraf