站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Programming Wireless Devices with the Java2 Platform

Programming Wireless Devices with the Java2 Platform

[ directory ] Previous Section Next Section

4.5 New for CLDC 1.1

graphics/new_icon.gif

The CLDC 1.1 (JSR 139) expert group members were generally satisfied with the CLDC Specification version 1.0 and did not see any need for radical changes in the new specification. Therefore, CLDC Specification version 1.1 is primarily an incremental release that is intended to be fully backwards compatible with CLDC Specification version 1.0. Some important new functionality, such as floating point support, has been added.

The list below summarizes the main differences between CLDC Specification versions 1.1 (JSR 139) and 1.0 (JSR 30). Those differences that are specific to Java libraries supported by CLDC are summarized in Section 5.4, "New for CLDC 1.1."

  • Floating point support has been added.

    • All floating point bytecodes are supported by CLDC 1.1.

    • Classes Float and Double have been added, and various methods have been added to the other library classes to handle floating point values. (Refer to Section 5.4, "New for CLDC 1.1," and the CLDC Almanacs at the end of this book for a detailed summary of the changes.)

  • Weak reference support (small subset of the J2SE weak reference classes) has been added.

  • Error-handling requirements have been clarified, and one new error class, NoClassDefFoundError, has been added.

  • In CLDC 1.1, Thread objects have names like threads in J2SE do. The method Thread.getName() has been introduced, and the Thread class has a few new constructors that have been inherited from J2SE.

  • In CLDC 1.1, Threads can be interrupted using the Thread.interrupt method.

  • Minimum total memory budget for CLDC has been increased from 160 to 192 kilobytes, mainly because of the added floating point functionality.

  • Much more detailed verifier specification ("CLDC Byte Code Typechecker Specification") is provided as an appendix of the CLDC Specification version 1.1.

    [ directory ] Previous Section Next Section