Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Znav
nextJava Mapping for Modules
prevClient-Side Slice-to-Java Mapping

A Slice identifier maps to an identical Java identifier. For example, the Slice identifier Clock becomes the Java identifier Clock. There is one exception to this rule: if a Slice identifier is the same as a Java keyword or is an identifier reserved by the Ice run time (such as checkedCast), the corresponding Java identifier is prefixed with an underscore. For example, the Slice identifier while is mapped as _while.

Info

You should try to avoid such identifiers as much as possible.

A single Slice identifier often results in several Java identifiers. For example, for a Slice interface named Foo, the generated Java code uses the identifiers Foo and FooPrx (among others). If the interface has the name while, the generated identifiers are _while and whilePrx (not _whilePrx), that is, the underscore prefix is applied only to those generated identifiers that actually require it.

Ztop
See Also
Zret
Znav
nextJava Mapping for Modules
prevClient-Side Slice-to-Java Mapping