This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dev:crosscompiler:fields_of_item [2015/03/29 09:06] – ursgraf | dev:crosscompiler:fields_of_item [2015/03/29 09:12] – ursgraf | ||
---|---|---|---|
Line 19: | Line 19: | ||
* // | * // | ||
- | ==== Felder | + | ==== Fields |
- | <box right 30% | IMPORTANT | + | <box right 30% | IMPORTANT |
- | **Achtung:** bei konstanten, statischen Referenzen ist das Const-Flag (dpfConst) __nicht__ gesetzt, da diese wie normale, nicht konstante statische Felder zu behandeln sind. Dies weil auf solche Felder ein einmaliger Zugriff aus dem Klassenkonstruktor stattfindet! | + | **Important:** With constant and static references the const flag //dpfConst// will not be set. Such fields must be handled like regular non constant fields because the class constructor will access such a field exactly once. |
- | + | **Example:** | |
- | **Beispiel:** | + | |
static final Object o = new Object(); | static final Object o = new Object(); | ||
</ | </ |