[jdom-interest] JDK1.1 Compatibility - B4 (typo)

Joe Bowbeer jozart at csi.com
Wed Jun 7 18:34:19 PDT 2000


Slight typo in the compatibility comments. Corrected below. This idea
was lifted from early Swing code, by the way.

JDK1.1 Form:

/*if[JAVA2]
import java.util.LinkedList;
import java.util.List;
  else[JAVA2]*/
import com.sun.java.util.collections.LinkedList;
import com.sun.java.util.collections.List;
/*end[JAVA2]*/

JDK1.2+ Form:

/*if[JAVA2]*/
import java.util.LinkedList;
import java.util.List;
/*else[JAVA2]
import com.sun.java.util.collections.LinkedList;
import com.sun.java.util.collections.List;
  end[JAVA2]*/

Note: java.util.Stack needs no special treatment.

--
Joe Bowbeer






More information about the jdom-interest mailing list