Java

Release Notes
JavaTM 2 Platform, Micro Edition
Foundation Profile
Version 1.0 FCS
December 2000

J2ME CDC Porting Guide

Contents

Overview

This is the first release of the Foundation Profile. The Foundation Profile is a superset of the J2ME Connected Device Configuration (CDC).

This profile is intended for use with devices requiring a complete implementation of the Java virtual machine, up to and including the entire Java 2 Platform, Standard Edition (J2SE). Typical implementations will use some subset of the Standard Edition, depending on the additional profiles supported.

Java Community Process

This release of the Foundation Profile implements the current Foundation Profile specification. The Foundation Profile specification is undergoing participant review in the Java Community Process. The Foundation Profile specification and implementation are subject to change.

Related Documents

Related documents include:

Relationship to the J2SE

The Foundation Profile v1.0 Alpha is based on the J2SE v1.3. The following classes in the J2ME Foundation Profile differ from the same-name classes in the J2SE, as described below.
java.lang.ClassLoader
The following line was removed:

import java.io.StringWriter;

There is no change in behavior, as ClassLoader does not use the imported class.

java.lang.SecurityManager
The java.awt dependencies have been removed, as the Foundation Profile does not include the java.awt package. Hard-coded references to java.awt were changed to use reflection to determine if the java.awt package is present. (It could be present in another profile.)

If java.awt is present, there is no difference in SecurityManager behavior compared to the J2SE.

If java.awt is not present:

  • checkTopLevelWindow(Object window) returns false.
  • checkSystemClipboardAccess() throws SecurityException("AWT not available").
  • checkAwtEventQueueAccess() throws SecurityException("AWT not available").

java.text.resources.LocaleElements
The java.awt dependency has been removed, as the Foundation Profile does not include the java.awt package. Specifically, the following line is commented out:

import java.awt.ComponentOrientation;

The following line is also commented out:

{ "Orientation", ComponentOrientation.LEFT_TO_RIGHT },

If java.awt is present through an additional profile, LocaleElements will not have access to the ComponentOrientation resource.
 

java.text.resources.LocaleElements_en_US
The java.awt dependency has been removed, as the Foundation Profile does not include the java.awt package. Specifically, the following line is commented out:

import java.awt.ComponentOrientation;

There is no change in behavior, as LocaleElements_en_US does not use the imported class.

sun.net.www.ParseUtil
The following line was removed:

import java.util.BitSet;

There is no change in behavior, as ParseUtil does not use the imported class.

Changes to the CDC Class Library

The Foundation Profile makes the following changes to the CDC class library:

Known Problems

There are no known problems specific to the Foundation Profile at this time. However, Foundation Profile users may encounter known problems in the CDC. See the J2ME CDC Release Notes.

Copyright © 2000 Sun Microsystems, Inc. All Rights Reserved.

Please send comments to: jcp-foundation-comments@eng.sun.com
Sun