home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 February / VPR9802A.ISO / APP_DEMO / VC / MAIN.BIN / changes < prev    next >
Text File  |  1997-10-27  |  87KB  |  2,110 lines

  1.                          
  2.                             CHANGES
  3.  
  4.                     Java(tm) Development Kit
  5.                          JDK(tm) 1.1.3
  6.  
  7. -----------------------------------------------------------------------
  8. CONTENTS
  9. -----------------------------------------------------------------------
  10. This document describes the changes between the various JDK 
  11. releases of the Java Platform 1.1.  It is divided into several 
  12. sections:
  13.  
  14.     - Changes from JDK 1.1.2 to JDK 1.1.3
  15.     - Changes from JDK 1.1.1 to JDK 1.1.2
  16.     - Changes from JDK 1.1_Final to JDK 1.1.1_Final
  17.     - Changes from JDK 1.1beta3  to JDK 1.1_Final
  18.     - Changes from JDK 1.1beta2  to JDK 1.1beta3
  19.     - Changes from the original JDK 1.1beta to JDK 1.1beta2
  20.  
  21. Changes within a section are in this order:
  22.     - VERSION NUMBER
  23.     - BUG FIXES
  24.     - TEXT CHANGES
  25.     - AWT CHANGES
  26.     - BEANS CHANGES
  27.     - SECURITY CHANGES
  28.     - JAR CHANGES
  29.     - LANG CHANGES
  30.     - IO CHANGES
  31.     - JAVA NATIVE INTERFACE CHANGES
  32.     - TOOL CHANGES
  33.  
  34.     ---------------------------------------------------------
  35.     NOTE: To find the Java version number, execute:
  36.           java -version
  37.     ---------------------------------------------------------
  38.     NOTE: Another significant list of changes is our
  39.           important bug fixes, available from our JavaSoft 
  40.           website:
  41.           http://java.sun.com/products/jdk/1.1/fixedbugs/
  42.     ---------------------------------------------------------
  43.     NOTE: Known bugs are listed at:
  44.           http://java.sun.com/products/jdk/1.1/knownbugs/
  45.     ---------------------------------------------------------
  46.  
  47. =======================================================================
  48. Changes from JDK 1.1.2 to JDK 1.1.3
  49. -----------------------------------------------------------------------
  50.  
  51. JDK 1.1.3 is a bug-fix release to correct a localization problem in 
  52. the Solaris JDK 1.1.2. The following list summarizes changes in 
  53. JDK 1.1.3.
  54. ______________
  55. VERSION NUMBER - The version number for this release is "JDK1.1.3".
  56.  
  57. ________________
  58. LOCALIZATION BUG - In Solaris versions of JDK 1.1.2, the mechanism 
  59. for loading the ByteToCharConverter classes for non-8859_1 encodings 
  60. was broken. Characters in text areas of windows did not display 
  61. properly for non-English-language locales and non-Western European 
  62. locales. This problem did not exist in JDK 1.1.1. This bug has been 
  63. fixed in JDK 1.1.3.  [Bugs 4049223, 4055084]
  64.  
  65. ______________ 
  66. JAVA BEANS BUG - The method java.beans.BeanInfo.getMethodDescriptors() 
  67. did not return MethodDescriptors for all externally visible methods 
  68. in some situations. getMethodDescriptors() did not report methods 
  69. having no arguments when those methods were defined later in a class 
  70. than similarly named methods having arguments. This problem did not 
  71. exist in JDK 1.1.1. This bug has been fixed in JDK 1.1.3. [Bug 4056837]
  72.  
  73. _______________
  74. AWT REPAINT BUG - Synchronization problems with graphics in the 
  75. Win32 version of JDK 1.1.2 would cause graphics deadlocks or 
  76. crashes of the Java virtual machine in some situations. This problem 
  77. did not exist in JDK 1.1.1. This bug has been fixed in JDK 1.1.3.
  78. [Bugs 4049421, 4051303]
  79.  
  80. ________________
  81. java_g -prof BUG - The profiling option of the Java interpreter 
  82. did not work in the Win32 version of JDK 1.1.2. Using a command
  83. such as    C:\> java_g -prof MyClass     would cause the Java 
  84. virtual machine to crash. This problem did not exist in JDK 1.1.1. 
  85. This bug has been fixed in JDK 1.1.3. [Bug 4056944]
  86.  
  87. _______________________
  88. AWT FONTMETRICS SPEEDUP - Improvements have been made to AWT font 
  89. metrics in JDK 1.1.3, resulting in significant speedups for programs 
  90. such as HotJava that rely heavily on text rendering. 
  91. [Bug 4046795]
  92.  
  93. _________________
  94. AWT COMPONENT BUG - For the Windows JDK 1.1.2, a race condition 
  95. sometimes caused the HotJava browser to crash when disposing 
  96. components that were in the process of being shown. This bug has 
  97. been fixed in JDK 1.1.3.  [Bug 4051487]
  98.  
  99. ________________
  100. AWT GRAPHICS BUG - In the Windows version of JDK 1.1.2, multi-
  101. threaded access to Graphics objects sometimes resulted in dangling 
  102. pointers due to a race condition in awt_Graphics.cpp. This bug has 
  103. been fixed in JDK 1.1.3. [Bug 4049421]
  104.  
  105. ________________
  106. INPUT STREAM BUG - An InputStreamReader using the UTF8 encoding 
  107. produced an erroneous character stream with missing characters. 
  108. This bug has been fixed in JDK 1.1.3  [Bug 4059684]
  109.  
  110.  
  111. =======================================================================
  112. Changes from JDK 1.1.1 to JDK 1.1.2
  113. -----------------------------------------------------------------------
  114.  
  115. JDK 1.1.2 is a bug-fix release. The following is a list of important 
  116. bug fixes and other changes in JDK 1.1.2.
  117. ______________
  118. VERSION NUMBER - The version number for this release is "JDK1.1.2".
  119.  
  120. ____________
  121. VERIFIER BUG - The JDK 1.1.1 bytecode verifier did not check to 
  122. determine whether the number of arguments passed into a method is less 
  123. than the amount of memory allocated to local variables for that 
  124. method. There was no known security attack based on this bug. This bug 
  125. has been corrected in JDK 1.1.2.
  126.  
  127. ___________
  128. SIGNING BUG - In JDK 1.1.1, digitally signed code could be 
  129. manipulated to impersonate another digital signature from the list of 
  130. signers that are recorded in the Java runtime. This bug has been 
  131. fixed in JDK 1.1.2. [Bug 4048143]
  132.  
  133. _______
  134. DSA BUG - In JDK 1.1.1, the same default seed was used for every 
  135. invocation of DSA. This bug has been fixed in JDK 1.1.2. 
  136. [Bug 4050406]
  137.  
  138. ________________
  139. AWT MENU BUG FIX - Trying to add a pull-right cascade menu to a 
  140. PopupMenu in JDK 1.1.1 led to an exception. This problem did not 
  141. exist in JDK 1.1. This bug has been corrected in JDK 1.1.2.
  142. [Bug 4039089]
  143.  
  144. _________________________________
  145. AWT LIGHTWEIGHT COMPONENT BUG FIX - Mouse tracking events for 
  146. lightweight components were not being delivered in some situations. 
  147. This bug has been fixed in JDK 1.1.2.  [Bug 4038897]
  148.  
  149. ___________________
  150. AWT REPAINT BUG FIX - Some components were not being repainted 
  151. properly in some situations in JDK 1.1.1. This problem did not 
  152. exist in JDK 1.1. This bug has been fixed in JDK 1.1.2.
  153. [Bug 4040638]
  154.  
  155. __________________
  156. AWT DIALOG BUG FIX - Closing nested modal dialogs out of order would 
  157. cause parent to remain disabled in some cases. This bug has been fixed 
  158. in JDK1.1.2.  [Bug 4045610]
  159.  
  160. _________________
  161. AWT FOCUS BUG FIX - Setting default focus caused applets to hang in 
  162. some situations. This problem did not exist in JDK 1.1. This bug 
  163. has been fixed in JDK 1.1.2.  [Bug 4038896]
  164.  
  165. ____________________
  166. APPLETVIEWER BUG FIX - Trying to save an applet from the Appletviewer 
  167. led to an exception. This bug has been fixed in JDK 1.1.2.
  168. [Bug 4036537]
  169.  
  170. ________________
  171. DEBUGGER BUG FIX - The debugger "dump" command converted double 
  172. values to float values before displaying them. This bug has been fixed 
  173. in JDK 1.1.2.  [Bug 4046775]
  174.  
  175. _______________
  176. JAVADOC BUG FIX - The javadoc html output for interfaces repeated 
  177. the word "interface" in the signature. This bug has been fixed in 
  178. JDK 1.1.2.  [Bug 4041579]
  179.  
  180. __________________________
  181. JNI INVOCATION API CHANGES - To better support the JRE, the 
  182. Invocation API is extended in JDK 1.1.2 in a few minor ways. 
  183. The changes do not break any existing code. The JNI Native 
  184. Method Interface has not been changed. 
  185.  
  186. 1. The reserved0 field in the JDK1_1InitArgs structure has been
  187. renamed to "version." The JDK1_1InitArgs structure holds the
  188. initialization arguments to JNI_CreateJavaVM. Callers of 
  189. JNI_CreateJavaVM must set the version field to 0x00010001. 
  190. JNI_GetDefaultJavaVMInitArgs has been changed to return a "jint" 
  191. indicating whether the requested version is supported.
  192.  
  193. 2. The reserved1 field in the JDK1_1InitArgs structure has been
  194. renamed to "properties." This is a NULL-terminated array of 
  195. strings. Each string has the format:
  196.  
  197.             name=value
  198.  
  199. indicating a system property. (This facility corresponds to the -D
  200. option in the java command line.)
  201.  
  202. 3. In JDK 1.1.1, the thread calling DestroyJavaVM must be the only
  203. user thread in the VM. JDK 1.1.2 has lifted this restriction. If
  204. DestroyJavaVM is called when there is more than one user thread,
  205. the VM waits until the current thread is the only user thread, and
  206. then tries to destroy itself.
  207.  
  208. _________________________
  209. NEW jre COMMAND-LINE TOOL - The jre command-line tool is similar to 
  210. the java command-line tool, but is intended primarily for end users 
  211. who do not require the development-related options available with 
  212. the java tool. For more information on the jre tool, see 
  213. http://java.sun.com/products/jdk/1.1/docs/tooldocs/solaris/jre.html
  214. or http://java.sun.com/products/jdk/1.1/docs/tooldocs/win32/jre.html. 
  215. Source code for the jre tool can be found in the Windows JDK 1.1.2 
  216. directory tree in the jdk1.1.2\demo\jre\win32 folder. In the 
  217. Solaris JDK 1.1.2, jre source files can be found in the 
  218. jdk1.1.2/demo/jre/solaris directory.
  219.  
  220.  
  221. =======================================================================
  222. Changes from JDK 1.1_Final to JDK 1.1.1
  223. -----------------------------------------------------------------------
  224.  
  225. The following changes and bug fixes are in the JDK 1.1.1 final release.
  226. This is a bug fix release.
  227. ______________
  228. VERSION NUMBER - The version number for this release is "JDK1.1.1". 
  229.  
  230. _________
  231. BUG FIXES - This version contains the bug fixes listed at the 
  232.     web page mentioned above. 
  233.  
  234. ____________
  235. UTIL BUG FIX - Removed getMenu and getMenuBar methods from 
  236.     util.ResourceBundle class. [Bug 4036076]
  237.  
  238.     This bug fix is mentioned here because it fixes an API bug
  239.     in JDK 1.1.
  240.  
  241.     These two "convenience" methods were part of the beta release
  242.     and were mistakenly left in the final JDK 1.1 after we
  243.     discovered the design weakness they presented and decided to
  244.     remove them.  It is a bug that they were included in the 1.1
  245.     release, and you should not call these methods.   We have 
  246.     removed them in 1.1.1.  Being convenience methods, they are not 
  247.     essential, and alternate coding is simple.   
  248.  
  249.     To be more specific, the ResourceBundle class in JDK 1.1 
  250.     included the two methods:
  251.  
  252.     public final Menu getMenu(String key) 
  253.         throws MissingResourceException {
  254.              return (Menu) getObject(key);
  255.          }
  256.  
  257.      public final MenuBar getMenuBar(String key) 
  258.         throws MissingResourceException {
  259.              return (MenuBar) getObject(key);
  260.      }
  261.  
  262.     These "convenience" methods saved the user from having to
  263.     explicitly cast objects in a ResourceBundle that happened to 
  264.     be of type Menu or MenuBar, such as:
  265.     
  266.        (Menu)rb.getObject(key)
  267.     
  268.     The side effect was that by returning types Menu and MenuBar, this 
  269.     class referred to the awt package.  ResourceBundle is a relatively 
  270.     low level piece of the core however while AWT is a relatively high 
  271.     level piece. This dependency caused a number of problems.  Most 
  272.     notably it did not allow a Java runtime environment to be created 
  273.     that omitted the AWT package (such as in a server).
  274.     
  275.     Removing this dependency on AWT required removing these APIs 
  276.     completely from ResourceBundle.  This change, of course, breaks 
  277.     code that calls these methods.  The upside is that these two APIs 
  278.     were of very little marginal value.  They simply saved the user 
  279.     the effort of typing an explicit cast. Furthermore, since these
  280.     two methods were new at 1.1, they have not been available for
  281.     very long. 
  282.  
  283. _____________________
  284. AWT COMPONENT BUG FIX - Changed the field java.awt.Component.locale
  285.     from protected to private.  
  286.  
  287.     The locale field is accessible through getLocale() and 
  288.     setLocale() methods, and all code should be using those.  
  289.     This change is necessary to support future development of 
  290.     the lightweight framework.
  291.  
  292. ________________________
  293. AWT DATATRANSFER BUG FIX - Corrected the MIME type for DataFlavor.
  294.     [Bug 4037854]
  295.  
  296.     In JDK 1.1, java.awt.datatransfer.DataFlavor used the wrong MIME
  297.     type.  DataFlavor claimed that the MIME type for a java 
  298.     serialized object was: 
  299.  
  300.        application/x-javaserializedobject 
  301.  
  302.     This name is inconsistent with other existing names and common
  303.     conventions. The name has been corrected by adding hypens to it, 
  304.     as follows:
  305.  
  306.        application/x-java-serialized-object 
  307.  
  308.     This makes it consistent with: 
  309.  
  310.        application/java-vm 
  311.        application/x-java-vm 
  312.        application/x-java-archive 
  313.  
  314. ____________
  315. FONT CHANGES - Times, Helvetica, and Courier are now mapped to
  316.     Latin1 characters.
  317.  
  318.     Times, Helvetica, and Courier fonts are no longer mapped to 
  319.     non-Latin1 classes of fonts, such as Symbol or ZapfDingabats.
  320.     These three fonts are now mapped to Latin1 characters, just like
  321.     they were in version 1.0.
  322.  
  323.     If you want to have non-Latin1 characters, you must map fonts
  324.     such as Symbol and ZapfDingabats to the Java virtual fonts.  These
  325.     virtual font classes are Serif, Sans-serif, Monospaced, Dialog, 
  326.     and DialogInput.
  327.     
  328.  
  329. ===================================================================
  330. Changes from JDK 1.1beta3 to JDK 1.1_Final
  331. -------------------------------------------------------------------
  332.  
  333. The following changes and bug fixes are in the JDK 1.1 final release.
  334.  
  335. ______________
  336. VERSION NUMBER - The version number for this release is "JDK1.1_Final". 
  337.     Throughout the documentation we call it simply "JDK1.1"
  338.  
  339. ____________
  340. TEXT CHANGES - Extensive surface changes to Text package
  341.  
  342.     The following extensive changes in the Text package are the
  343.     result of a design review recently carried out to
  344.     simplify, rationalize and properly abstract the 
  345.     internationalization API.  We realized this would 
  346.     make a significant improvement in learning and using 
  347.     internationalization in Java.  
  348.  
  349.     The changes involve mostly surface changes, such as 
  350.     renaming and moving API, and changing the order of arguments,
  351.     to better conform with conventions established with the rest
  352.     of Java.
  353.  
  354. ____________
  355. TEXT CHANGES - CharacterIterator
  356.  
  357.     Removed getText method. CharacterIterators are intended to allow character
  358.     at a time access to text without exposing how the text is actually stored.
  359.     It is expected that some CharacterIterators will operate on text that can
  360.     not easily or efficiently be stored as a String. Accessing the text as a
  361.     whole should be the responsibility of the text object.
  362.  
  363.     Rename startIndex to getBeginIndex and rename endIndex to
  364.     getEndIndex. This is to follow established naming patterns for getters and
  365.     setters as well as java.lang.String's convention for identifying ranges in
  366.     text.
  367.  
  368. ____________
  369. TEXT CHANGES - ChoiceFormat
  370.  
  371.     Changed the constructor to take an array of Strings rather than an array
  372.     of Objects.  String were the only type that made sense in this context.
  373.  
  374.     Changed the setChoices method to take an array of Strings rather than an
  375.     array of Objects.  String were the only type that made sense in this
  376.     context.  
  377.  
  378.     Added applyPattern and toPattern methods similar to the methods on other 
  379.     Format classes.
  380.  
  381.     Changed the format methods to take a FieldPosition rather than a
  382.     FormatStatus argument. See the change description for FormatStatus.
  383.     
  384.     Changed the parse method to take a ParsePosition rather than a ParseStatus
  385.     argument. See the change description for ParseStatus.
  386.     
  387.     Added clone, hashCode and equals methods.  These are standard overrides
  388.     and do not change the semantics.
  389.  
  390. ____________
  391. TEXT CHANGES - Collation
  392.  
  393.     Renamed class "Collator".  It was not clear from the old name whether this
  394.     class actually did collation or simply represented a set of collation
  395.     rules.  The new name makes it clear that the class performs string
  396.     comparisons.
  397.     
  398.     Removed the constants LESS, EQUAL and GREATER. Changed the compare methods
  399.     to return the int value -1, 0 or 1 instead of LESS, EQUAL or GREATER. This
  400.     follows the pattern used by the java.lang.String.compareTo method.
  401.     
  402.     Removed the greater and greaterOrEqual methods.  The same information is
  403.     provided by the compare method.  Having only a compare and and equals 
  404.     method mimics the comparison API provided by java.lang.String.
  405.     
  406.     Removed the compare(String, int, int, String, int, int) version of the
  407.     compare method and the getSortKey(String, int, int) version of the
  408.     getSortKey method. A recent change to String.substring makes the substring
  409.     operation efficient. Users can use String.substring to specify a substring
  410.     rather than requiring methods to provide substring variants. Slimming the
  411.     API makes it easier to learn.
  412.     
  413.     Changed the type of public constants from byte to int.  Changed the
  414.     getStrength and getDecomposition methods to return int instead of byte.
  415.     Changed the setStrength and setDecomposition methods to accept int
  416.     arguments instead of byte.  Although the byte type provides a small amount
  417.     of type safety, using ints for constants is more in keeping with the rest
  418.     of the JDK.  The affected constants are:
  419.     
  420.      byte PRIMARY = 0;                 ==>    int PRIMARY = 0;                
  421.      byte SECONDARY = 1;               ==>    int SECONDARY = 1;              
  422.      byte TERTIARY = 2;                ==>    int TERTIARY = 2;               
  423.      byte IDENTICAL = 3;               ==>    int IDENTICAL = 3;              
  424.      byte NO_DECOMPOSITION = 0;        ==>    int NO_DECOMPOSITION = 0;       
  425.      byte CANONICAL_DECOMPOSITION = 1; ==>    int CANONICAL_DECOMPOSITION = 1;
  426.      byte FULL_DECOMPOSITION = 2;      ==>    int FULL_DECOMPOSITION = 2;     
  427.     
  428.     Removed the getDisplayName methods.  These returned the same result as
  429.     the corresponding Locale.getDisplayName method calls.  Until we have more
  430.     useful data, its better not to have these methods in the API.
  431.     
  432.     Provided a concrete equals method.  This allows sub-classes to correctly
  433.     implement the equals method.
  434.     
  435.     Renamed getSortKey method to getCollationKey.  See the change description
  436.     for getSortKey.
  437.     
  438.     Renamed getDefault methods to getInstance.  This follows new naming pattern
  439.     for factory methods.
  440.  
  441. ____________
  442. TEXT CHANGES - CollatedString
  443.  
  444.     Removed this class.  Its purpose was to associate a String with its
  445.     CollationKey. CollationKey has been changed retain a reference to the 
  446.     String it was generated from.  This allows us to reduce the size of the 
  447.     API.
  448.  
  449. ____________
  450. TEXT CHANGES - CollationElementIterator
  451.  
  452.     Removed the public constructor. CollationElementIterators are created by
  453.     RuleBasedCollator objects.  This was expressed by handing a
  454.     RuleBasedCollator object to the constructor.  This connection is more
  455.     obvious if the CollationElementIterator can only be created by a factory
  456.     method on RuleBasedCollator.
  457.  
  458.     Made the values returned by the next method directly comparable.  This is
  459.     not an API change but a semantic change for the next method.
  460.     
  461. ____________
  462. TEXT CHANGES - DateFormat
  463.  
  464.     Made the constructor protected.  DateFormat is an abstract class so it
  465.     doesn't need a public constructor.
  466.     
  467.     Removed the getDisplayName methods.  These returned the same result as
  468.     the corresponding Locale.getDisplayName method calls.  Until we have more
  469.     useful data, its better not to have these methods in the API.
  470.     
  471.     Added a style called MEDIUM that does what DEFAULT does now. For this
  472.     release, MEDIUM and DEFAULT have the same effect.  In future, the meaning 
  473.     of DEFAULT will be determined from the locale data. This is a more 
  474.     logical organization of the style choices.
  475.     
  476.     Changed the format methods to take a FieldPosition rather than a
  477.     FormatStatus argument. See the change description for FormatStatus.
  478.     
  479.     Changed the parse and parseObject methods to take a ParsePosition rather
  480.     than a ParseStatus argument. See the change description for ParseStatus.
  481.     
  482.     Renamed the getTimeFormat methods to getTimeInstance.  Renamed the
  483.     getDateFormat methods to getDateInstance.  Renamed the getDateTimeFormat
  484.     methods to getDateTimeInstance.  This follows new naming pattern
  485.     for factory methods.
  486.     
  487.     Added a getInstance() factory method that does the same thing as
  488.     getDateTimeFormat(SHORT,SHORT) previously did. This follows the pattern 
  489.     for factories which provides for a getInstance() that returns a default 
  490.     value to be always available.
  491.     
  492.     Renamed getValidationMode to isLenient.  Renamed setValidationMode to
  493.     setLenient. These names are more descriptive.
  494.     
  495.     Change the type of public constants from byte to int.  Although the byte
  496.     type provides a small amount of type safety, using ints for constants is
  497.     more in keeping with the rest of the JDK. Also rename constants to follow
  498.     the naming convention uses by JDK.  The results are:
  499.     
  500.      byte ERA_FIELD = 0;               ==> int ERA_FIELD = 0;
  501.      byte YEAR_FIELD = 1;              ==> int YEAR_FIELD = 1;
  502.      byte MONTH_FIELD = 2;             ==> int MONTH_FIELD = 2;
  503.      byte DATE_FIELD = 3;              ==> int DATE_FIELD = 3;
  504.      byte HOUROFDAY1_FIELD = 4;        ==> int HOUR_OF_DAY1_FIELD = 4;
  505.      byte HOUROFDAY0_FIELD = 5;        ==> int HOUR_OF_DAY0_FIELD = 5;
  506.      byte MINUTE_FIELD = 6;            ==> int MINUTE_FIELD = 6;
  507.      byte SECOND_FIELD = 7;            ==> int SECOND_FIELD = 7;
  508.      byte MILLISECOND_FIELD = 8;       ==> int MILLISECOND_FIELD = 8;
  509.      byte DAYOFWEEK_FIELD = 9;         ==> int DAY_OF_WEEK_FIELD = 9;
  510.      byte DAYOFYEAR_FIELD = 10;        ==> int DAY_OF_YEAR_FIELD = 10;
  511.      byte DAYOFWEEKINMONTH_FIELD = 11; ==> int DAY_OF_WEEK_IN_MONTH_FIELD = 11;
  512.      byte WEEKOFYEAR_FIELD = 12;       ==> int WEEK_OF_YEAR_FIELD = 12;
  513.      byte WEEKOFMONTH_FIELD = 13;      ==> int WEEK_OF_MONTH_FIELD = 13;
  514.      byte AMPM_FIELD = 14;             ==> int AM_PM_FIELD = 14;
  515.      byte HOUR1_FIELD = 15;            ==> int HOUR1_FIELD = 15;
  516.      byte HOUR0_FIELD = 16;            ==> int HOUR0_FIELD = 16;
  517.      byte TIMEZONE_FIELD = 17;         ==> int TIMEZONE_FIELD = 17;
  518.     
  519. ____________
  520. TEXT CHANGES - DateFormatData
  521.  
  522.     Renamed class to DateFormatSymbols.  This makes its purpose as a set of
  523.     strings and symbols to be used in formatting clearer.
  524.     
  525.     Removed the millisPerHour protected field.  This was not an appropriate
  526.     field in a collection of formatting symbols.
  527.     
  528.     Renamed getAmpms to getAmPmStrings.  Renamed setAmpms to setAmPmStrings. 
  529.     The new names follow the capitalization standard and are clearer.
  530.     
  531.     Removed methods useLocalizedPattern and setPatternLocalized.  This
  532.     functionality can be obtained through the toLocalizedPattern and
  533.     applyLocalizedPattern methods of SimpleDateFormat. These methods were not
  534.     appropriate in a collection of formatting symbols.
  535.     
  536. ____________
  537. TEXT CHANGES - DecimalFormat
  538.  
  539.     Renamed getThousandsInterval and setThousandsInterval methods to
  540.     getGroupingSize and setGroupingSize.  The new names are clearer.
  541.     
  542.     Renamed getFactor and setFactor methods to getMultiplier and setMultiplier.
  543.     The new names are clearer.
  544.     
  545.     Changed the constructor that takes a NumberFormatData to use a
  546.     DecimalFormatSymbols object instead. See the change description for
  547.     NumberFormatData. 
  548.     
  549.     Added a constructor that takes just a String and figures out the correct
  550.     DecimalFormatSymbols for the default locale.  This fills in the telescope
  551.     pattern for constructors.
  552.     
  553.     Renamed getPattern method to toPattern. Also removed the boolean argument
  554.     and instead added a toLocalizedPattern method. The new name better
  555.     reflects the fact that there is no "pattern" property, but rather a
  556.     pattern string is constructed that matches the current state of the
  557.     DecimalFormat object. Splitting the method into two allows many users to
  558.     ignore the existence of toLocalizedPattern.
  559.     
  560.     Renamed setPattern method to applyPattern. Also removed the boolean 
  561.     argument and instead added an applyLocalizedPattern method. The new 
  562.     name better reflects the fact that there is no "pattern" property, 
  563.     but rather a pattern string is used to set the state of the DecimalFormat 
  564.     object. Splitting the method into two allows many users to ignore the 
  565.     existence of applyLocalizedPattern.
  566.     
  567.     Removed the "*" and "_" characters from the pattern syntax.  This is not
  568.     strictly an api change but it is a semantic change.  These characters were
  569.     of limited use the way they were implemented.
  570.     
  571.     Changed the format methods to take a FieldPosition rather than a
  572.     FormatStatus argument. See the change description for FormatStatus.
  573.     
  574.     Changed the parse method to take a ParsePosition rather than a
  575.     ParseStatus argument. See the change description for ParseStatus.
  576.     
  577.     Renamed getNumberFormatData to getDecimalFormatSymbols and changed its
  578.     return type to DecimalFormatSymbols.  Renamed setNumberFormatData to
  579.     setDecimalFormatSymbols and changed its argument type to
  580.     DecimalFormatSymbols.  See the change description for NumberFormatData.
  581.     
  582. ____________
  583. TEXT CHANGES - Format
  584.     
  585.     Changed the format method to take a FieldPosition rather than a 
  586.     FormatStatus argument. See the change description for FormatStatus.
  587.     
  588.     Changed the parseObject method to take a ParsePosition rather than a
  589.     ParseStatus argument. See the change description for ParseStatus.
  590.  
  591. ____________
  592. TEXT CHANGES - FormatException
  593.  
  594.     Renamed class to ParseException.  This better reflects its purpose.
  595.     
  596.     Removed the no argument constructor.  This constructor was not useful.
  597.  
  598. ____________
  599. TEXT CHANGES - FormatStatus
  600.  
  601.     Renamed class to FieldPosition.  This better reflects its purpose as an
  602.     object which describes where sub-fields are located in a formatted string.
  603.     
  604.     Replaced public integer fields with getter methods.  Adjusted names to
  605.     match pattern for indicating ranges in text.  The result:
  606.     
  607.      int alignField   ==> int getField()
  608.      int alignStart   ==> int getBeginIndex()
  609.      int alignEnd     ==> int getEndIndex()
  610.     
  611.     Replaced no argument constructor with a constructor that sets the field.
  612.     A field value must always be set so this prevents invalid objects.  
  613.     It is also more convenient than doing it in two steps.
  614.     
  615. ____________
  616. TEXT CHANGES - MessageFormat
  617.  
  618.     Redesigned the syntax for message patterns to allow inlining of other
  619.     pattern strings, such as date patterns, number patterns, choice patterns
  620.     etc. This is not itself an API change but is a big semantic difference.
  621.     This change allows complete message formats to be created in fewer steps.
  622.  
  623.     Removed the constructor that took a String and a Format array.  This was
  624.     not needed with the new inline pattern syntax.
  625.  
  626.     Added a setFormat method which allows a single format to be set at a time
  627.     rather than requiring all formats to be specified like the setFormats
  628.     method. This is more convenient given the inline pattern syntax.
  629.  
  630.     Removed the format method that took a String, a Format array and an Object
  631.     array.  It was not necessary with the new inline pattern syntax.
  632.  
  633.     Changed the parse method that takes a single String argument to return an
  634.     array of Objects rather than a single Object.  This makes more sense given
  635.     the fact that a message may have many objects embedded in it.
  636.     
  637.     Changed the format methods to take a FieldPosition rather than a
  638.     FormatStatus argument. See the change description for FormatStatus.
  639.     
  640.     Changed the parse method to take a ParsePosition rather than a ParseStatus
  641.     argument. See the change description for ParseStatus.
  642.     
  643.     Renamed getPattern method to toPattern. The new name better reflects the
  644.     fact that there is no "pattern" property. Rather a pattern string is
  645.     constructed that matches the current state of the MessageFormat object.
  646.     
  647.     Renamed setPattern method to applyPattern. The new name better reflects
  648.     the fact that there is no "pattern" property. Rather a pattern string is
  649.     used to set the state of the MessageFormat object.
  650.  
  651.     Added setLocale and getLocale methods.
  652.  
  653. ____________
  654. TEXT CHANGES - NumberFormat
  655.  
  656.     Renamed getDefaultCurrency to getCurrencyInstance.  Renamed
  657.     getDefaultPercent to getPercentInstance.  Added a getNumberInstance
  658.     factory.  Rename getDefault to getInstance.  This follows the naming
  659.     pattern for factories.
  660.     
  661.     Removed getCurrencySymbol and getIntlCurrencySymbol methods. These will be
  662.     added to a more appropriate class in a future release.
  663.     
  664.     In the methods called {get|set}{Minimum|Maximum}{Integer|Decimal}Count,
  665.     rename the word Count to Digits and the word Decimal to Fraction.  These
  666.     names are clearer.
  667.     
  668.     Remove the methods isDecimalUsedWithInteger and
  669.     setDecimalUsedWithInteger. These methods are now found in DecimalFormat
  670.     under the names isDecimalSeparatorAlwaysShown
  671.     setDecimalSeparatorAlwaysShown.
  672.     
  673.     Renamed setIntegerOnly to setParseIntegerOnly. Renamed isIntegerOnly to
  674.     isParseIntegerOnly.
  675.     
  676.     Renamed {is|set}ThousandsUsed to {is|set}GroupingUsed.
  677.     
  678.     Removed the getDisplayName methods.  These returned the same result as
  679.     the corresponding Locale.getDisplayName method calls.  Until we have more
  680.     useful data, its better not to have these methods in the API.
  681.     
  682.     Renamed DECIMAL_FIELD to FRACTION_FIELD. Also changed its type from byte
  683.     to int. This name is more general. Use of ints as constants is standard
  684.     practice.
  685.     
  686.     Removed NUMERATOR_FIELD, DENOMINATOR_FIELD and EXPONENT_FIELD. This
  687.     functionality was not supported in this release.
  688.  
  689. ____________
  690. TEXT CHANGES - NumberFormatData
  691.  
  692.     Renamed class DecimalFormatSymbols. This makes its purpose as a set of
  693.     strings and symbols to be used in formatting clearer.
  694.     
  695.     Added a default constructor which constructs an object suitable for the
  696.     default locale.  Added a constructor which takes a locale.  These follow 
  697.     the pattern set by DateFormatSymbols.
  698.     
  699.     Removed starDigit, spaceDigit and exponential fields.  This functionality 
  700.     is not being supported by DecimalFormat.
  701.     
  702.     Changed public fields to getter/setter methods.  Adjusted the names of the
  703.     methods for clarity.  The results are:
  704.     
  705.      char zeroDigit;         ==> getZeroDigit(), setZeroDigit()        
  706.      char thousandsSign;     ==> getGroupingSeparator(), setGroupingSeparator()
  707.      char decimalSign;       ==> getDecimalSeparator(), setDecimalSeparator()
  708.      char millePercent;      ==> getPerMill(), setPerMill()               
  709.      char percent;           ==> getPercent(), setPercent()               
  710.      char digit;             ==> getDigit(), setDigit()               
  711.      char separator;         ==> getPatternSeparator(), setPatternSeparator() 
  712.      java.lang.String infinity; ==> getInfinity(), setInfinity()    
  713.      java.lang.String nan;   ==> getNaN(), setNaN()
  714.      char minusSign;         ==> getMinusSign(), setMinusSign()    
  715.     
  716.     Removed the static final char fields.  These were not appropriate for a
  717.     collection of locale specific number formatting fields.  They were also 
  718.     of little use outside the implementation of DecimalFormat. The removed 
  719.     fields are:
  720.     
  721.      static final char patternZeroDigit = 48;
  722.      static final char patternThousandsSign =
  723.      static final char patternDecimalSign = 4
  724.      static final char patternMillePercent = 
  725.      static final char patternPercent = 37;  
  726.      static final char patternDigit = 35;    
  727.      static final char patternStarDigit = 42;
  728.      static final char patternSpaceDigit = 95
  729.      static final char patternSeparator = 59;
  730.  
  731. ____________
  732. TEXT CHANGES - ParseStatus
  733.  
  734.     Renamed class ParsePosition.  This better reflects its purpose as an object
  735.     which shows where parsing starts and stops.
  736.     
  737.     Removed no argument constructor. This was redundant and of no real
  738.     convenience.
  739.     
  740.     Changed public field startAt to a getter/setter method pair.  Also
  741.     adjusted names of the methods to suit the naming pattern for indicating
  742.     characters in a String.  The results:
  743.     
  744.       startAt   ==> getIndex(), setIndex()
  745.  
  746. ____________
  747. TEXT CHANGES - SimpleDateFormat
  748.  
  749.     Changed the format method to take a FieldPosition rather than a 
  750.     FormatStatus argument. See the change description for FormatStatus.
  751.     
  752.     Changed the parse method to take a ParsePosition rather than a ParseStatus
  753.     argument. See the change description for ParseStatus.
  754.     
  755.     Changed the constructor which took a DateFormatData object to use a
  756.     DateFormatSymbols object instead.  See the change description for
  757.     DateFormatData.
  758.     
  759.     Renamed getDateFormatData and setDateFormatData to getDateFormatSymbols 
  760.     and setDateFormatSymbols. See the change description for DateFormatData.
  761.     
  762.     Renamed getPattern method to toPattern. Also removed the boolean argument 
  763.     and instead added a toLocalizedPattern method. The new name better 
  764.     reflects the fact that there is no "pattern" property, but rather a 
  765.     pattern string is constructed that matches the current state of the 
  766.     DecimalFormat object. Splitting the method into two allows many users 
  767.     to ignore the existence of toLocalizedPattern.
  768.     
  769.     Renamed setPattern method to applyPattern. Also removed the boolean 
  770.     argument and instead added an applyLocalizedPattern method. The new 
  771.     name better reflects the fact that there is no "pattern" property, but 
  772.     rather a pattern string is used to set the state of the DecimalFormat 
  773.     object. Splitting the method into two allows many users to ignore the 
  774.     existence of applyLocalizedPattern.
  775.  
  776.     Added a convenience no argument constructor.
  777.  
  778. ____________
  779. TEXT CHANGES - SortKey
  780.  
  781.     Renamed class CollationKey.  This keeps the terminology consistent with
  782.     the other collation classes.
  783.     
  784.     Added getSourceString method.  This returns the string that this 
  785.     CollationKey represents. This allows the removal of the CollatedString 
  786.     class.
  787.     
  788.     Added a toByteArray method that returns a byte[] containing the key. 
  789.     
  790.     Changed compareTo method to return int rather than byte.  This follows the
  791.     pattern set by java.lang.String.compareTo.
  792.     
  793. ____________
  794. TEXT CHANGES - StringCharacterIterator
  795.  
  796.     Added the following convenience constructor:
  797.     
  798.       public StringCharacterIterator(String text, int begin, int end, int pos) 
  799.     
  800.     Renamed startIndex method to getBeginIndex.  Renamed endIndex method to
  801.     getEndIndex. These names are consistent with the pattern for indicating 
  802.     ranges in strings.
  803.     
  804.     Removed the getText method.  See the change description for 
  805.     CharacterIterator.
  806.  
  807. ____________
  808. TEXT CHANGES - TableCollation
  809.  
  810.     Renamed class RuleBasedCollator.  It was not clear from the old name 
  811.     whether this class actually did collation or simply represented a set 
  812.     of collation rules.  The new name makes it clear that the class performs 
  813.     string comparisons. It also avoids the impression that this class 
  814.     collates tables.
  815.     
  816.     Renamed getSortKey method to getCollationKey.  See the change description 
  817.     for SortKey. 
  818.     
  819.     Removed the getSortKey method that operated on a substring of a given 
  820.     String.  A recent change to String.substring makes the substring 
  821.     operation efficient. Users can use String.substring to specify a 
  822.     substring rather than requiring methods to provide substring variants. 
  823.     Slimming the API makes it easier to learn.
  824.     
  825.     Removed the compare method that operated on a substring of a given String. 
  826.     A recent change to String.substring makes the substring operation
  827.     efficient. Users can use String.substring to specify a substring rather 
  828.     than requiring methods to provide substring variants. Slimming the API 
  829.     makes it easier to learn.
  830.     
  831.     Changed compare to return an int value instead of a byte value.  See 
  832.     the change description for Collation.
  833.     
  834. ____________
  835. TEXT CHANGES - TextBoundary
  836.  
  837.     Renamed class to BreakIterator.  This more clearly reflects its purpose.
  838.     
  839.     Renamed method nthFromCurrent to next(int). This is a less awkward name.
  840.     
  841.     Renamed method nextAfter to following.  This is a less awkward name.
  842.     
  843.     Changed the return type of getText to CharacterIterator.  Since
  844.     BreakIterator works in terms of a CharacterIterator it didn't make sense
  845.     to return a String.
  846.     
  847.     Renamed getWorkBreak methods to getWordInstance.  Renamed getLineBreak
  848.     methods to getLineInstance. Renamed getCharacterBreak methods to
  849.     getCharacterInstance. Renamed getSentenceBreak methods to
  850.     getSentenceInstance.  This follows the naming pattern for factory methods.
  851.  
  852. ____________
  853. UTIL CHANGES - Calendar
  854.  
  855.     Changed the type of the public constants from byte to int.  Changed the
  856.     corresponding methods to accept and return ints instead of bytes.  and
  857.     getDecomposition methods to return int instead of byte.  Although the byte
  858.     type provides a small amount of type safety, using ints for constants is 
  859.     more in keeping with the rest of the JDK.  The results are:
  860.   
  861.      byte ERA = 0;                  ==>   int ERA = 0;                  
  862.      byte YEAR = 1;                 ==>   int YEAR = 1;                 
  863.      byte MONTH = 2;                ==>   int MONTH = 2;                
  864.      byte WEEKOFYEAR = 3;           ==>   int WEEK_OF_YEAR = 3;         
  865.      byte WEEKOFMONTH = 4;          ==>   int WEEK_OF_MONTH = 4;        
  866.      byte DATE = 5;                 ==>   int DATE = 5;                 
  867.      byte DAYOFMONTH = 5;           ==>   int DAY_OF_MONTH = 5;         
  868.      byte DAYOFYEAR = 6;            ==>   int DAY_OF_YEAR = 6;          
  869.      byte DAYOFWEEK = 7;            ==>   int DAY_OF_WEEK = 7;          
  870.      byte DAYOFWEEKINMONTH = 8;     ==>   int DAY_OF_WEEK_IN_MONTH = 8; 
  871.      byte AMPM = 9;                 ==>   int AM_PM = 9;                
  872.      byte HOUR = 10;                ==>   int HOUR = 10;                
  873.      byte HOUROFDAY = 11;           ==>   int HOUR_OF_DAY = 11;         
  874.      byte MINUTE = 12;              ==>   int MINUTE = 12;              
  875.      byte SECOND = 13;              ==>   int SECOND = 13;              
  876.      byte MILLISECOND = 14;         ==>   int MILLISECOND = 14;         
  877.      byte ZONEOFFSET = 15;          ==>   int ZONE_OFFSET = 15;         
  878.      byte DSTOFFSET = 16;           ==>   int DST_OFFSET = 16;          
  879.      byte FIELDCOUNT = 17;          ==>   int FIELD_COUNT = 17;         
  880.                                            
  881.      int get(byte);                 ==>   int get(int);
  882.      set(byte,int);                 ==>   void set(int,int);
  883.      void clear(byte);              ==>   void clear(int);
  884.      void add(byte,int);            ==>   void add(int,int);     
  885.      void roll(byte,boolean);       ==>   void roll(int,boolean);
  886.      void setFirstDayOfWeek(byte);  ==>   void setFirstDayOfWeek(int);
  887.      void setMinimalDaysInFirstWeek(byte);
  888.                                     ==>   void setMinimalDaysInFirstWeek(int);
  889.      int getMinimum(byte);          ==>   int getMinimum(int);         
  890.      int getMaximum(byte);          ==>   int getMaximum(int);         
  891.      int getGreatestMinimum(byte);  ==>   int getGreatestMinimum(int); 
  892.      int getLeastMaximum(byte);     ==>   int getLeastMaximum(int);    
  893.                                                
  894.     
  895.     Renamed getValidationMode to isLenient.  Renamed setValidationMode to
  896.     setLenient. These names are more descriptive.
  897.     
  898.     Renamed the getDefault methods to getInstance.  This is in keeping with the
  899.     pattern for naming factory methods.
  900.  
  901. ____________
  902. UTIL CHANGES - GregorianCalendar
  903.  
  904.     Changed the type of the public constants from byte to int.  Changed the
  905.     corresponding methods to accept and return ints instead of bytes.  and
  906.     getDecomposition methods to return int instead of byte.  Although the byte
  907.     type provides a small amount of type safety, using ints for constants 
  908.     is more in keeping with the rest of the JDK.  The results are:
  909.      
  910.      final byte AD = 0;           ==>      final int AD = 0; 
  911.      final byte BC = 1;           ==>      final int BC = 1; 
  912.     
  913.      void add(byte,int);          ==>      void add(int,int);          
  914.      void roll(byte,boolean);     ==>      void roll(int,boolean);       
  915.      int getMinimum(byte);        ==>      int getMinimum(int);          
  916.      int getMaximum(byte);        ==>      int getMaximum(int);          
  917.      int getGreatestMinimum(byte);==>      int getGreatestMinimum(int);  
  918.      int getLeastMaximum(byte);   ==>      int getLeastMaximum(int);     
  919.                                      
  920. ____________
  921. UTIL CHANGES - ResourceBundle
  922.  
  923.     Renamed getResourceBundle methods to getBundle.  The name
  924.     getResourceBundle was too long and overly redundant.  The new name is not
  925.     in keeping with the naming pattern for factory methods.  This is because
  926.     the name "getInstance" is being reserved for a future addition to the
  927.     resource bundle classes.
  928.     
  929. __________
  930. AWT CHANGE -  Compiling programs that use old AWT API now produces
  931.               deprecation warnings
  932.  
  933.     In the beta versions of 1.1, the deprecated methods in the AWT were
  934.     marked with simple "DEPRECATED" strings in the method's javadoc
  935.     comment.  For the final release we have added the appropriate
  936.     "@deprecated" tags to those methods so that you can use the
  937.     appropriate compiler option to generate warnings that make it
  938.     easier for you to convert your programs when you desire to do so.
  939.  
  940.     The document at the following URL describes how to convert to the
  941.     1.1 AWT API.  It also links to a document that lists every deprecated
  942.     method and its 1.1 substitute.
  943.  
  944.     http://java.sun.com/products/JDK/1.1/docs/guide/awt/HowToUpgrade.html
  945.  
  946.     RATIONALE:
  947.  
  948.     The bulk of the AWT deprecations are a result of migrating the AWT
  949.     towards JavaBeans compliance.  In particular, the two areas which
  950.     required a significant number of deprecations were:
  951.  
  952.     - Properties (location, size, visibility, etc.)
  953.       In order for introspection to be able to programmatically extract
  954.       properties from AWT components, it was necessary to change the
  955.       names of various methods to the JavaBeans getFoo/setFoo pattern.
  956.     
  957.     - New event model
  958.       JavaBeans and the AWT have defined a new delegation-based event
  959.       model for 1.1 which required significant changes to the event
  960.       handling API.
  961.     
  962.     Finally, a small set of deprecated methods were changed to enhance
  963.     the learnability and consistency of the toolkit API.
  964.  
  965. __________
  966. AWT CHANGE -  Z-ordering changed back to 1.0.2 order
  967.  
  968.     For beta3, the Z-ordering for children in Container instances was
  969.     defined in the documentation to be "back to front".  Because this
  970.     was contrary to the default Z-ordering which existed in 1.0.2 (and
  971.     the beta implementation), for FCS we have corrected the Z-ordering
  972.     specification in containers to be "front to back".
  973.  
  974. __________
  975. AWT CHANGE -  Changed names of newly-added APIs:
  976.  
  977.     The following APIs have been renamed ( from old name => to new name ):
  978.  
  979.      AverageScaleFilter    =>    AreaAveragingScaleFilter
  980.      createScaledImage(...)    =>    getScaledInstance(...)
  981.      SCALE_AVERAGE        =>    SCALE_AREA_AVERAGING
  982.  
  983.     RATIONALE:
  984.     The method name was changed to "getScaledInstance(...)" to be
  985.     consistent with the overall philosophy within the Java API where
  986.     factories and derivative constructors should follow the naming
  987.     convention of
  988.  
  989.         get<Flavor>Instance(...arguments...)
  990.  
  991.     The term "Average" was not descriptive of the algorithm applied by
  992.     the default smooth scaling filter, so the name of this filter and
  993.     its algorithm were changed to "AreaAveraging" to indicate what
  994.     quantity was being averaged.
  995.  
  996. __________
  997. AWT CHANGE - Changed dispatchEvent() method and added new method
  998.              dispatchEventImpl()
  999.  
  1000.     The codepath in dispatchEvent() really must be executed for event
  1001.     mechanics to work properly in the AWT (hence we made it 
  1002.     package-private).  We moved the implementation to a new
  1003.     package-private method (dispatchEventImpl()) and then 
  1004.     changed dispatchEvent() to be "public final" and have it
  1005.     call dispatchEventImpl() internally.
  1006.  
  1007.     RATIONALE:
  1008.     We have deprecated the 1.0 postEvent()/deliverEvent() methods,
  1009.     however the method that replaces those (dispatchEvent()) is
  1010.     currently package-private.  This left no options for folks
  1011.     porting to the new event model.
  1012.  
  1013. __________
  1014. AWT CHANGE - Changed capitalization of getId() to getID() in
  1015.     java.awt.AWTEvent
  1016.  
  1017.     Changed the method name to getID() and provided a deprecated version
  1018.     for compatibility with the beta versions.
  1019.  
  1020.     RATIONALE:
  1021.     java.awt.AWTEvent.getID() is named in a manner inconsistent with 
  1022.     the equivalent methods in other classes:
  1023.     java.awt.MediaTracker.getID()
  1024.     java.util.TimeZone.getID()
  1025.     sun.rmi.registry.RegistryImpl.getID()
  1026.     sun.rmi.transport.DGCImpl.getID()
  1027.  
  1028.     Developers have had trouble because they expected the naming to 
  1029.     be consistent.  This fixes bug 4027793.
  1030.  
  1031. __________
  1032. AWT CHANGE - Changed EventQueue to be non-system-specific
  1033.  
  1034.   The following changes were made to EventQueue:
  1035.   
  1036.   1)  Moved the static getEventQueue() method out of EventQueue
  1037.       and instead put it in Toolkit with the name "getSystemEventQueue()".
  1038.       Left the security check in that method, so that applets 
  1039.       cannot get access to the system queue instance (see also #3).
  1040.   
  1041.   2)  Added a public constructor to the EventQueue class such that
  1042.       multiple instances of it can be created.  This will allow programs
  1043.       to create and use the queue generically, as well as enable browser
  1044.       vendors to implement a queue/dispatch-thread-per-applet model.
  1045.   
  1046.   3)  Removed the overriding checkAwtEventQueueAccess() method in the 
  1047.       AppletSecurityManager such that it will always default to
  1048.       invoking lang.SecurityManager.checkAwtEventQueueAccess()
  1049.       and will *always* throw a security exception if an applet tries
  1050.       to get a handle on the system event queue.
  1051.   
  1052.   4)  Modified the EventQueue documentation so that it's clear that
  1053.       the class is very generic.  All references to a "system
  1054.       EventQueue" have been eliminated.
  1055.  
  1056.     RATIONALE:
  1057.     This allows the implementation of one dispatch thread per applet.
  1058.     It also provides design flexibility for the future.
  1059.  
  1060. __________
  1061. AWT CHANGE - Removed EventSource class
  1062.  
  1063.     Removed this class because it has no relation to the new event model. 
  1064.  
  1065. __________
  1066. AWT CHANGE - Changed API for delivery of window-open and 
  1067.              window-closed events
  1068.  
  1069.     Moved the window event API (addWindowListener,removeWindowListener,
  1070.     etc.) from Dialog and Frame to Window (their superclass) so
  1071.     that the code is there in one place.  
  1072.  
  1073.     RATIONALE:
  1074.     Centralizing the code eliminates duplication and makes it easier 
  1075.     to maintain.
  1076.  
  1077. __________
  1078. AWT CHANGE - Changed return type from Transferable.getTransferData
  1079.  
  1080.     Transferable.getTransferData returns class BufferedInputStream.
  1081.  
  1082. __________
  1083. AWT CHANGE - MenuShortcut class no longer extends java.awt.Event.
  1084.  
  1085. __________
  1086. AWT CHANGE - Changed button modifier mask values in InputEvent:
  1087.         BUTTON2_MASK is now equivalent to ALT_MASK 
  1088.             BUTTON3_MASK is now equivalent to META_MASK
  1089.  
  1090.     RATIONALE:
  1091.     A couple of mask constants were incorrectly defined in the
  1092.     InputEvent class.  These event masks are new in JDK1.1.
  1093.     
  1094.     This change will ensure that programs that depend on seeing the
  1095.     BUTTON1_MASK and BUTTON2_MASK will continue to work properly on
  1096.     platforms that have 1 and 2 button mice (because Alt/Meta can be
  1097.     used to generate these masks on those systems).
  1098.  
  1099.     This fixes bug 4029159: Button2/Button3 masks should have same 
  1100.     value as Alt/Meta in InputEvent
  1101.     
  1102. __________
  1103. AWT CHANGE - Change to serialization of AWT components
  1104.  
  1105.     Made a systematic change to the way JDK1.1 AWT does serialization.
  1106.  
  1107.     RATIONALE:
  1108.     This change corrects bug #4027305, and provides more carefully 
  1109.     thought-out and rational behaviour for AWT serialization in general. 
  1110.  
  1111.     These changes enable customers to use serialization to store
  1112.     Java Beans (in general) and to enable AWT implementations 
  1113.     to correctly interoperate between vendors.
  1114.  
  1115.     Implications for developers:
  1116.   
  1117.       - Saving graphs of AWT objects will now work, even if an object
  1118.         has more than one listener.
  1119.   
  1120.       - If an AWT object has listeners that are marked serializable, they
  1121.         will be saved and restored automatically, such as beans 
  1122.         interconnected with and saved to a file with the BeanBox. 
  1123.         Note that the BeanBox always code-generates serializable 
  1124.         listener implementations.
  1125.       
  1126.       - If an AWT object has listeners that aren't marked serializable
  1127.         they will be dropped at writeObject() time.
  1128.   
  1129.       - Developers will need, as always, to consider the implications of
  1130.         making an object serializable.  One idiom to watch out for is 
  1131.         this:
  1132.   
  1133.         import java.awt.*;
  1134.         import java.awt.event.*;
  1135.         import java.io.Serializable;
  1136.   
  1137.         class MyApp implements ActionListener, Serializable
  1138.         {
  1139.           BigObjectThatShouldNotBeSeralizedWithAButton bigOne;
  1140.           Button aButton = new Button();
  1141.   
  1142.           MyApp()
  1143.           {
  1144.              // Oops, now aButton has a listener with a 
  1145.              // reference to bigOne!
  1146.              aButton.addActionListener(this);    
  1147.           }
  1148.   
  1149.           public void actionPerformed(ActionEvent e)
  1150.           {
  1151.             System.out.println("Hello There");
  1152.           }
  1153.         }
  1154.   
  1155.     In this example, serializing aButton by itself will cause MyApp and
  1156.     everything it refers to to be serialized as well.  The problem
  1157.     is that the listener is serializable by coincidence, not by design.
  1158.     To separate the decisions about MyApp and the ActionListener being 
  1159.     serializable one can use an inner (nested) class, for example:
  1160.   
  1161.     import java.awt.*;
  1162.     import java.awt.event.*;
  1163.     import java.io.Serializable;
  1164.   
  1165.     class MyApp java.io.Serializable
  1166.     {
  1167.       BigObjectThatShouldNotBeSeralizedWithAButton bigOne;
  1168.       Button aButton = new Button();
  1169.   
  1170.       class MyActionListener implements ActionListener
  1171.       {
  1172.         public void actionPerformed(ActionEvent e)
  1173.         {
  1174.       System.out.println("Hello There");
  1175.         }
  1176.       }
  1177.   
  1178.       MyApp()
  1179.       {
  1180.          aButton.addActionListener(new MyActionListener());
  1181.       }
  1182.     }
  1183.  
  1184. __________
  1185. AWT CHANGE - Added setKeyChar() method to KeyEvent
  1186.  
  1187.     KeyEvent had a setKeyCode() already. This new method was needed
  1188.     to copy any changes a 1.0 style program may have made
  1189.     to an Event "key".  This fix ensures that all chars work
  1190.     properly in TextFields, like hitting <return> in HotJava's URL field.
  1191.  
  1192. __________
  1193. AWT CHANGE - Changed PaintEvent class to use a rectangle for damaged area
  1194.  
  1195.     Replaced PaintEvent's "Graphics" property with a Rectangle 
  1196.     representing a damaged area instead.  
  1197.  
  1198.     RATIONALE:
  1199.     Although the PaintEvent class is public, its use in AWT 
  1200.     is completely private -- it is used to trigger calls to paint(), 
  1201.     but programs never explicitly see the event object at all.
  1202.  
  1203. __________
  1204. AWT CHANGE - Defined a new constant in AWTEvent:
  1205.         RESERVED_ID_MAX
  1206.  
  1207.     This new constant is the maximum value of any AWT-defined event ID.
  1208.     Programs that need to create their own event types should use
  1209.     an ID greater than this max ID, so that the event will be properly
  1210.     passed through the system.
  1211.  
  1212.     RATIONALE:
  1213.     This is part of the fix for a problem that prevented anyone from
  1214.     being able to create their own event type and send it to a
  1215.     component. 
  1216.  
  1217.     This fixes bug 4028353: eventEnabled returns false for all but 
  1218.     AWT events; can't send custom event types.
  1219.  
  1220. ____________
  1221. BEANS CHANGE - Improved handling of beans that are applets
  1222.  
  1223.     Changed Beans.instantiate to check if a newly created or deserialized
  1224.     bean is an Applet.  If so, it is given a minimal AppletStub and
  1225.     AppletContext and its init method is called.
  1226.  
  1227.     After developers have added a newly instantiated bean to an AWT
  1228.     container, they should check if it is an Applet and if so call
  1229.     Applet.start.
  1230.  
  1231.     Also, developers need to test "wanna-be" applet/beans against
  1232.     Beans.instantiate.
  1233.  
  1234. ____________
  1235. BEANS CHANGE - Serializable listener fix for Beans classes
  1236.  
  1237.     The java.beans package contains two utility classes, 
  1238.     PropertyChangeSupport and VetoableChangeSupport, that manage
  1239.     a list of event listeners.  The change was to make the way 
  1240.     these classes are serialized consistent with the AWT.
  1241.  
  1242.     RATIONALE
  1243.     In beta3 these two classes were inconsistent with the AWT,
  1244.     which meant there was no support for selectively saving and 
  1245.     restoring listeners marked serializable.  The changes are 
  1246.     all class private. 
  1247.  
  1248. _______________
  1249. SECURITY CHANGE - Key is now an interface
  1250.  
  1251.     Made Key an interface and updated relevant clients.  Removed all 
  1252.     implementation from Key to make it an interface. Moved its 
  1253.     implementation into sun.security.
  1254.  
  1255.     RATIONALE:
  1256.     Key as an interface is more flexible and easier to implement than 
  1257.     a mix of interfaces and classes.
  1258.  
  1259. _______________
  1260. SECURITY CHANGE - Changed names of factory methods
  1261.  
  1262.     Changed factory names from <Engine>.get<Engine> to get<Engine>.
  1263.  
  1264.     RATIONALE:
  1265.     Factory method names were MessageDigest.getMessageDigest, 
  1266.     Signature.getSignature, etc. A better naming scheme is Signature.get, 
  1267.     MessageDigest.get, etc. This is important when you start casting the 
  1268.     results to some fairly long interface names, for example:  
  1269.     DSAKeyGen keyGen = (DSAKeyGen)KeyGenerator.getKeyGenerator("DSA");
  1270.  
  1271. _______________
  1272. SECURITY CHANGE - Changed Provider SPI for java.security.Signature
  1273.     Initialization 
  1274.  
  1275.     The SPI is the Service Provider Interface, which Providers write to. 
  1276.     There currently are two providers: SUN and JSAFE.
  1277.  
  1278.     a) Changed the arguments to two initialization method in Signature
  1279.        from (byte[], String) to (Key)
  1280.     b) Made one method in key public.
  1281.     c) Added a small interface (no implementation): DSAPrivateKey
  1282.  
  1283.     Changed java.security.Signature and sun.security.provider.DSA.
  1284.  
  1285. _______________
  1286. SECURITY CHANGE- API changes to Signature, MessageDigest, and 
  1287.     KeyPairGenerator
  1288.  
  1289.     Signature
  1290.       public Signature get(String algorithm)     ->
  1291.       public Signature getInstance(String algorithm)
  1292.     
  1293.       public Signature get(String algorithm, String provider) ->
  1294.       public Signature getInstance(String algorithm, String provider)
  1295.  
  1296.     MessageDigest
  1297.       public MessageDigest get(String algorithm) ->
  1298.       public MessageDigest getInstance(String algorithm)
  1299.  
  1300.       public MessageDigest get(String algorithm, String provider) ->
  1301.       public MessageDigest getInstance(String algorithm, String provider)
  1302.  
  1303.     KeyPairGenerator
  1304.       public KeyPairGenerator get(String algorithm) ->
  1305.       public KeyPairGenerator getInstance(String algorithm)
  1306.     
  1307.       public KeyPairGenerator get(String algorithm, String provider) ->
  1308.       public KeyPairGenerator getInstance(String algorithm, String provider)
  1309.  
  1310. _______________
  1311. SECURITY CHANGE - Changed key generation API
  1312.  
  1313.     The change consisted of moving a set of existing methods from 
  1314.     Signature to a new KeyPairGenerator class.
  1315.  
  1316.     API change:
  1317.     a) Moved key generation calls from signature to a new
  1318.        KeyPairGenerator class
  1319.     b) Added a small DSAKeyPairGenerator interface, which specializes
  1320.        behavior for DSA key generation. 
  1321.  
  1322.     The change  consisted of moving 3 abstract API methods to a new class.
  1323.     - defined a KeyGenerator factory method (identical to
  1324.       Signature's).
  1325.     - added one line to ths sun.security.provider.DSA class.
  1326.     - added one line to ths sun.security.provider.Sun class.
  1327.     - updated API clients in JDK (there are two of them).
  1328.  
  1329.  
  1330.     RATIONALE:
  1331.     Customer feedback makes a strong case for moving the
  1332.     Signature class key generation calls into its own class. Key
  1333.     generation is currently implemented as part of the Signature
  1334.     class. While it provides a uniform, algorithm-independent
  1335.     key-generation semantics, it is hard to understand (and therefore to
  1336.     use). It has confused users both internally and externally.
  1337.   
  1338. __________
  1339. JAR CHANGE - Can now handle compressed JAR files in the CLASSPATH
  1340.  
  1341.     java.util.zip.ZipFile was enhanced so that it can now handle 
  1342.     compressed ZIP/JAR file entries. No changes to the API were made. 
  1343.     With this change, compressed JAR/ZIP files can now be handled
  1344.     by javac.
  1345.  
  1346.     Additionally, the runtime has also changed so that it can now
  1347.     handle compressed ZIP/JAR files that are specified in the CLASSPATH.
  1348.  
  1349. ___________
  1350. LANG CHANGE - Removed a constructor and two methods from java.lang.Throwable
  1351.  
  1352.     - Removed the Throwable(String, Object[]) constructor 
  1353.     - Removed the setArguments() method 
  1354.     - Removed the getArguments() method 
  1355.  
  1356.     RATIONALE:
  1357.     The arguments property was originally added to java.lang.Throwable for 
  1358.     use in the generation of localized messages.  This was deemed premature, 
  1359.     and so the property was removed in order to avoid tempting programmers 
  1360.     to use it for some other purpose.
  1361.  
  1362. _________
  1363. IO CHANGE - Deprecated constructor StreamTokenizer(InputStream)
  1364.  
  1365.     This fixed bug 4025998.
  1366.  
  1367.     RATIONALE:
  1368.     The StreamTokenizer(InputStream) constructor was not binary-compatible 
  1369.     with JDK 1.0.2.  This constructor was changed in JDK1.1 to convert 
  1370.     automatically from bytes to characters using the platform's default
  1371.     character encoding, but that change required buffering input data, 
  1372.     which breaks binary compatibility.  This change has been removed.
  1373.  
  1374. ____________________________
  1375. JAVA NATIVE INTERFACE CHANGE - Changed the names of VM initialization
  1376. and thread-attach structures
  1377.  
  1378.     Changed the JDK initialization structure name from JavaVMInitArgs to 
  1379.     JDK1_1InitArgs to make it clear that it is JDK1.1 specific.
  1380.  
  1381.     Similarly, ThreadAttachArgs has changed its name to JDK1_1AttachArgs.
  1382.  
  1383.     RATIONALE:
  1384.     When a native application uses the invocation API to start up
  1385.     the VM, it passes the VM an initialization structure. Since in
  1386.     general different VM implementations require different 
  1387.     initialization information (min/max heap size, native stack size,
  1388.     enable debugging, etc.), the JNI spec explicitly says
  1389.     that the contents of the structure vary among VM implementations.
  1390.     However, the JDK initialization structure, JavaVMInitArgs, gives 
  1391.     the wrong impression that it should work with other VMs. This has
  1392.     caused confusion on how to implement the JNI without conflicting
  1393.     with JDK's naming scheme.
  1394.  
  1395. ____________________________
  1396. JAVA NATIVE INTERFACE CHANGE - Changed NewStringUTF parameters
  1397.  
  1398.     Removed the length argument, strlen(s, from NewStringUTF().  The
  1399.     signature for this method is now:
  1400.  
  1401.     jstring NewStringUTF(JNIEnv *env, const char *s);
  1402.  
  1403.     RATIONALE:
  1404.     NewStringUTF constructs a Java string from a UTF string. Although 
  1405.     UTF strings are already 0-terminated, the function required an
  1406.     unnecessary length argument, forcing the programmer to write:
  1407.  
  1408.     NewStringUTF(env, s, strlen(s))
  1409.  
  1410.     instead of just:
  1411.  
  1412.     NewStringUTF(env, s) 
  1413.  
  1414. ____________________________
  1415. JAVA NATIVE INTERFACE CHANGE - Changed DeleteLocalRef and DeleteGlobalRef
  1416.  
  1417.     Now programmers can pass local or global references to DeleteLocalRef 
  1418.     and DeleteGlobalRef directly, instead of having to pass the address 
  1419.     of these references.
  1420.  
  1421.     RATIONALE:
  1422.     DeleteLocalRef and DeleteGlobalRef delete local or global references
  1423.     created by the JNI. They used to take the address of the reference,
  1424.     forcing programmers to write:
  1425.  
  1426.     DeleteLocalRef(&ref)
  1427.  
  1428.     now references are passed as follows:
  1429.  
  1430.     DeleteLocalRef(ref)
  1431.  
  1432. ____________________________
  1433. JAVA NATIVE INTERFACE CHANGE - Changed the "IsSubclassOf" function name
  1434.     to "IsAssignableFrom."
  1435.  
  1436.     RATIONALE:
  1437.     The following JNI (Java Native Interface) function was misnamed:
  1438.  
  1439.         jboolean IsSubclassOf(JNIEnv *env, jclass clazz1, 
  1440.                                            jclass clazz2);
  1441.  
  1442.     It did not match the Java Language Specification's definition 
  1443.     of the "subclass" relationship.
  1444.  
  1445.     The Reflection API has a similar method in java.lang.Class:
  1446.     
  1447.         boolean isAssignableFrom(Class class);
  1448.         
  1449.     This is a much more suitable name. The JNI function therefore changed 
  1450.     its name to:
  1451.     
  1452.         jboolean IsAssignableFrom(JNIEnv *env, jclass clazz1, 
  1453.                                                jclass clazz2);
  1454.  
  1455. ____________________________
  1456. JAVA NATIVE INTERFACE CHANGE - Change RegisterNatives so that it
  1457.     takes all the information in one array.
  1458.  
  1459.     RATIONALE:
  1460.     In beta3, the RegisterNatives function took three arrays
  1461.     containing native method names, signatures and function entry 
  1462.     pointers, respectively:
  1463.     
  1464.         jint RegisterNatives(JNIEnv env, jclass clazz, 
  1465.                const char *names[],
  1466.                const char *signatures[];
  1467.                void *nativeProcs[]);
  1468.          
  1469.     These arrays had to be of the same length, and had to be NULL-
  1470.     terminated. It's better to put all the info in a single array,
  1471.     and pass the length of the array as another argument:
  1472.     
  1473.         struct JNINativeMethod {
  1474.             char* name;
  1475.             char* signature;
  1476.             void* fnPtr;
  1477.         };
  1478.         typedef struct JNINativeMethod JNINativeMethod;
  1479.  
  1480.         void RegisterNatives(JNIEnv* env, jclass classID, 
  1481.                   const JNINativeMethod methods[], jsize count);
  1482.  
  1483.     Here's how code that uses this looks in FCS:
  1484.  
  1485.         JNINativeMethodSpec methods[] = {
  1486.             { "sin", "(D)D", &::sin },
  1487.             { "cos", "(D)D", &::cos },
  1488.             { "tan", "(D)D", &::tan }
  1489.         };
  1490.         env->RegisterNatives(env->FindClass("java/lang/Math"), methods, 3);
  1491.  
  1492.     Here's how the same code used to look in beta3:
  1493.  
  1494.         const char* names[] = { "sin", "cos", "tan", NULL };
  1495.         const char* signatures[] = { "(D)D", "(D)D", "(D)D", NULL };
  1496.         void* procs[] = { &::sin, &::cos, &::tan, NULL };
  1497.         env->RegisterNatives(env->FindClass("java/lang/Math"), 
  1498.                              names, signatures, proc);
  1499.     
  1500.     The former approach is clearer.
  1501.  
  1502. ____________________________
  1503. JAVA NATIVE INTERFACE CHANGE - Changed the typing scheme of references
  1504.     to Java objects.
  1505.  
  1506.     In JDK Beta 3, reference types are defined as follows:
  1507.  
  1508.     typedef void *jref;    /* generic type for references */
  1509.     typedef jref jobject;  /* Java objects */
  1510.     typedef jref jclass;   /* Java class objects */
  1511.     typedef jref jstring;  /* Java strings */
  1512.     typedef jref jarray;   /* Java arrays */
  1513.  
  1514.     The distinction between jref and jobject was not clear. In 1.1 FCS,
  1515.     we got rid of jref, and introduced additional reference types to more
  1516.     accurately convey the subtyping information. We introduced dummy C++
  1517.     classes to enforce the subtyping relationships:
  1518.  
  1519.     #ifdef __cplusplus
  1520.  
  1521.     class _jobject {};
  1522.     class _jclass : public _jobject {};
  1523.     class _jthrowable : public _jobject {};
  1524.     class _jstring : public _jobject {};
  1525.     class _jarray : public _jobject {};
  1526.     class _jbooleanArray : public _jarray {};
  1527.     class _jbyteArray : public _jarray {};
  1528.     class _jcharArray : public _jarray {};
  1529.     class _jshortArray : public _jarray {};
  1530.     class _jintArray : public _jarray {};
  1531.     class _jlongArray : public _jarray {};
  1532.     class _jfloatArray : public _jarray {};
  1533.     class _jdoubleArray : public _jarray {};
  1534.     class _jobjectArray : public _jarray {};
  1535.  
  1536.     typedef _jobject *jobject;
  1537.     typedef _jclass *jclass;
  1538.     typedef _jthrowable *jthrowable;
  1539.     typedef _jstring *jstring;
  1540.     typedef _jarray *jarray;
  1541.     typedef _jbooleanArray *jbooleanArray;
  1542.     typedef _jbyteArray *jbyteArray;
  1543.     typedef _jcharArray *jcharArray;
  1544.     typedef _jshortArray *jshortArray;
  1545.     typedef _jintArray *jintArray;
  1546.     typedef _jlongArray *jlongArray;
  1547.     typedef _jfloatArray *jfloatArray;
  1548.     typedef _jdoubleArray *jdoubleArray;
  1549.     typedef _jobjectArray *jobjectArray;
  1550.  
  1551.     #else
  1552.  
  1553.     struct _jobject;
  1554.  
  1555.     typedef struct _jobject *jobject;
  1556.     typedef jobject jclass;
  1557.     typedef jobject jthrowable;
  1558.     typedef jobject jstring;
  1559.     typedef jobject jarray;
  1560.     typedef jarray jbooleanArray;
  1561.     typedef jarray jbyteArray;
  1562.     typedef jarray jcharArray;
  1563.     typedef jarray jshortArray;
  1564.     typedef jarray jintArray;
  1565.     typedef jarray jlongArray;
  1566.     typedef jarray jfloatArray;
  1567.     typedef jarray jdoubleArray;
  1568.     typedef jarray jobjectArray;
  1569.  
  1570.     #endif
  1571.  
  1572.     JNI function types have been modified accordingly to accept or return
  1573.     the newly introduced reference types.
  1574.  
  1575. ____________________________
  1576. JAVA NATIVE INTERFACE CHANGE - Changed the typing of certain primitive
  1577.     types:
  1578.  
  1579.     The following types in earlier versions of JDK:
  1580.  
  1581.     typedef char jboolean;
  1582.     typedef char jbyte;
  1583.     typedef unsigned long jsize;
  1584.  
  1585.     have been changed to:
  1586.  
  1587.     typedef unsigned char jboolean;
  1588.     typedef signed char jbyte;
  1589.     typedef jint jsize;
  1590.  
  1591.     in JDK 1.1 FCS.
  1592.  
  1593.     Earlier, jsize was defined to be an unsigned integer type that has
  1594.     the same number of bits as a native pointer. The idea was to use
  1595.     jsize to represent array length and size, etc. However, there has
  1596.     been a great deal of confusion on what operations are available 
  1597.     on jsize, whether it is safe to convert jsize to int, etc. We
  1598.     changed jsize to be the same as jint because Java arrays and
  1599.     strings cannot be longer than 2^31 anyway. All standard Java
  1600.     methods that operate on arrays and strings use "int" as the
  1601.     length and size types.
  1602.  
  1603. ___________
  1604. TOOL CHANGE - New argument -s added to javap
  1605.  
  1606.     -s: Print method and field type signature information in the internal
  1607.         form used by the Java Virtual Machine.  This is the form through
  1608.         which a user of the Java Native Interface (JNI) refers to methods
  1609.         and fields. Using javap with the -s flag to print method and field
  1610.         information for a class to be accessed with the JNI avoids the 
  1611.         difficulty of constructing signatures in the obscure internal 
  1612.         format manually.
  1613.     
  1614.     Examples of use:
  1615.  
  1616.     % cat foo.java
  1617.     class foo {
  1618.         Thread thread;
  1619.         int i;
  1620.         public static void main(String args[]) {
  1621.         }
  1622.         private void foo() {}
  1623.     }
  1624.  
  1625.     % javap -p foo
  1626.     Compiled from foo.java
  1627.     class foo extends java.lang.Object 
  1628.         /* ACC_SUPER bit set */ 
  1629.     {
  1630.         java.lang.Thread thread;
  1631.         int i;
  1632.         public static void main(java.lang.String []);
  1633.         private void foo();
  1634.         foo();
  1635.     }
  1636.  
  1637.     % javap -p -s foo
  1638.     Compiled from foo.java
  1639.     class foo extends java.lang.Object 
  1640.         /* ACC_SUPER bit set */
  1641.     {
  1642.         thread Ljava/lang/Thread;
  1643.         i I
  1644.         public static main ([Ljava/lang/String;)V
  1645.         private foo ()V
  1646.         <init> ()V
  1647.     }
  1648.  
  1649. ___________
  1650. TOOL CHANGE - Added -deprecation flag to javac
  1651.  
  1652.     By default, when compiling a class that contains deprecated APIs, 
  1653.     javac now displays only a brief note, rather than immediately
  1654.     listing all of the deprecated APIs.  For example:
  1655.  
  1656.     % javac MyClass.java
  1657.     Note: MyClass.java uses deprecated APIs.  Recompile with "-deprecation" 
  1658.     for details.
  1659.  
  1660.     Then, you can re-compile using the -deprecation flag to get the
  1661.     name of the deprecated constructor, field, method, class or 
  1662.     interface.
  1663.  
  1664.     % javac -deprecation MyClass.java
  1665.     MyClass.java:3: Note: The constructor java.lang.String(byte[],int)
  1666.     has been deprecated.
  1667.         new String(new byte[0], 0);
  1668.         ^
  1669.     Note: wombat.java uses deprecated APIs.  Please consult the 
  1670.     documentation for a better alternative.
  1671.  
  1672.     At this point, please refer to the JDK API Reference documentation
  1673.     (the javadoc-generated web pages) jdk1.1/docs/api/packages.html.
  1674.     If you look up the deprecated API, it should give you more details
  1675.     such as which API replaces it.    
  1676.  
  1677.     To summarize the compiler options:
  1678.         javac -nowarn       => complete silence
  1679.         javac               => a one-line comment about deprecations
  1680.         javac -deprecation  => a full report
  1681.  
  1682.     RATIONALE:
  1683.     This can greatly reduce the amount of warning by default, allowing 
  1684.     developers to concentrate on the errors, and to have a graceful
  1685.     migration towards updating their deprecated code.
  1686.  
  1687.  
  1688. ===================================================================
  1689. Changes from JDK 1.1beta2 to JDK 1.1beta3
  1690. -------------------------------------------------------------------
  1691.  
  1692. The following changes and bug fixes are in the JDK 1.1beta3 release.
  1693.  
  1694. ______________
  1695. VERSION NUMBER - The version number for this release is "JDK1.1beta3.3". 
  1696.  
  1697.     Versions beta3.1 and beta3.2 were internal candidates that were 
  1698.     never released.
  1699.     You can get the version number of your particular release by executing:
  1700.  
  1701.         java -version
  1702.  
  1703. _______________
  1704. PACKAGE CHANGES - Two new packages in java.*: java.beans and java.math
  1705.     Changes in these packages are described in more detail below.
  1706.  
  1707. ________________
  1708. JAVABEANS CHANGE - JavaBeans1.0 is now part of JDK1.1
  1709.     The classes that define the JavaBeans 1.0 API specification
  1710.     are now part of JDK1.1.  These classes are part of BDK1.0
  1711.     beta1 and beta2; there will be a BDK1.0beta3 that synchronizes
  1712.     with JDK1.1beta3.
  1713.  
  1714.   - There has been one change in the JavaBeans APIs: the string
  1715.     argument to Beans.instantiate() has changed. The argument
  1716.     used to be the path to a serialized bean, it is now the
  1717.     name of a bean, which may be serialized, or just a class name.
  1718.  
  1719. ______________
  1720. GENERAL CHANGE - Extended the core API methods that take a PrintStream 
  1721.     argument so they can also take a PrintWriter argument.
  1722.  
  1723.     Several constructors and methods have been added to make the 
  1724.     new PrintWriter class easier to use.  
  1725.  
  1726. _________
  1727. IO CHANGE - Merged the functionality of the ByteToCharConverter 
  1728.     and CharToByteConverter classes into the InputStreamReader and
  1729.     OutputStreamWriter classes.
  1730.  
  1731.     The ByteToCharConverter and CharToByteConverter classes 
  1732.     are no longer public, so various constructors and methods
  1733.     that previously took converter arguments now accept names
  1734.     of character encodings.  The InputStreamReader and 
  1735.     OutputStreamWriter classes no longer commit to buffering
  1736.     the underlying byte stream.  Details on these and other
  1737.     changes may be found at:
  1738.  
  1739.     http://java.sun.com/products/JDK/1.1/docs/guide/io/b3-changes.html
  1740.  
  1741. ___________
  1742. LANG CHANGE - New method: identityHashCode in java.lang.System
  1743.  
  1744.     Its signature is:
  1745.  
  1746.     public static native int identityHashCode(Object x);
  1747.  
  1748.     It returns the same hashcode for the given object as
  1749.     would be returned by the default method hashCode(),
  1750.     whether or not the given object's class overrides hashCode().
  1751.     The hashcode for the null reference is zero.
  1752.  
  1753.     RATIONALE:  
  1754.     In previous releases, Java lacked a constant-time
  1755.     identity hash function.  This meant there was no way to build
  1756.     a hash table which keyed on object identity, and for which
  1757.     access would be a constant-time operation.
  1758.  
  1759.     Java supplied a constant-time identity comparison operation 
  1760.     (the built-in operator ==) but did not supply a corresponding
  1761.     constant-time identity hash operation.
  1762.  
  1763.     This new method is very useful when the object in question does
  1764.     override equals and hashCode, but the guts of some abstraction
  1765.     is working with canonicalized instances, such as interned 
  1766.     strings, and needs to use them as keys for fast lookups.
  1767.  
  1768.     Although this is sometimes done by wrapping the string-like
  1769.     object inside another object which does not override equals 
  1770.     and hashCode, it's desirable to allow such objects to be used
  1771.     directly as keys in identity tables, to avoid the overhead 
  1772.     of allocating the wrappers.
  1773.  
  1774.     When performance is not an issue, the method Object.hashCode() 
  1775.     suffices, even if it is slow (as with strings), but when
  1776.     performance must be maximized, neither the wrapper technique 
  1777.     nor the slow hashCode() method is workable, and only a fast
  1778.     identityHashCode() method will be suitable.
  1779.  
  1780. ___________
  1781. LANG CHANGE - getResourceAsName(String) changed to getResource(String)
  1782.  
  1783.     java.lang.Class and java.lang.ClassLoader used to have methods 
  1784.     with signature:
  1785.  
  1786.        String getResourceAsName(String)
  1787.  
  1788.     which would return an external representation to a URL to
  1789.     the desired resource file.  These methods have been replaced
  1790.     by methods with signature
  1791.  
  1792.        java.net.URL getResource(String)
  1793.  
  1794.     which return the actual URL (or null if the resource is not found).
  1795.  
  1796. ___________
  1797. AWT CHANGES - New type of event: ContainerEvent
  1798.  
  1799.   This change provides the hooks for containers to easily register event 
  1800.   listeners on descendents.
  1801.  
  1802.   - Added new ContainerEvent class and equivalent ContainerListener 
  1803.     interface to enable notification when components are added/removed
  1804.     from containers.  This makes it relatively easy for containers 
  1805.     to register themselves as listeners for events on all of their 
  1806.     descendents.
  1807.  
  1808.   - Added the addContainerListener/removeContainerListener methods
  1809.     to Container.
  1810.  
  1811.   RATIONALE:
  1812.   In beta2 the event model provided no reasonable mechanism
  1813.   to allow containers to get input events which occurred in their
  1814.   descendents, which turns out to be a fairly common need.
  1815.   The 1.0 event model allowed this by automatically propagating
  1816.   events up the containment hierarchy until some component returned
  1817.   "true" to absorb the event and stop the propagation.  While this
  1818.   seems powerful (and it's easy), the 1.0 propagation model is error
  1819.   prone and results in poor performance. 
  1820.      
  1821. ___________
  1822. AWT CHANGES - Further Fine-Tuning of AWT Input Event Related API
  1823.  
  1824.   Responding to customer feedback and testing, we made the following
  1825.   changes to the API in the java.awt and java.awt.event packages:
  1826.  
  1827.   - Added a TextEvent class and TextListener interface to enable
  1828.     programs to track all changes to a text component, including
  1829.     paste and programmatic modifications.  (Bug #4014945)
  1830.  
  1831.   - Added new windowActivated/windowDeactivated event types to WindowEvent 
  1832.     to enable programs to determine when a window gets/loses focus.
  1833.   
  1834.   - Added isTemporary method to FocusEvent to enable determining the
  1835.     difference between when focus is explicitly moved between components
  1836.     and when focus temporarily changes (such as when a window is
  1837.     de-activated).
  1838.   
  1839.   - Added a consume method to the InputEvent class, enabling any object
  1840.     to consume input events.  Previously, only the Component associated
  1841.     with the input event could consume it.
  1842.  
  1843.   - Made the AWTEventMulticaster class public, enabling component
  1844.     subclasses to serve as multicast sources for AWT-defined events.
  1845.   
  1846.   - Made the java.awt.event Adapter classes abstract so that it's clear
  1847.     that they need to be extended.
  1848.  
  1849.   - Removed constructors in java.awt.event Event classes that took
  1850.     an old 1.0 event as a parameter.
  1851.   
  1852.   - Changed the event id values of the ComponentEvent types to prevent them
  1853.     from clashing with the WindowEvent ids.
  1854.   
  1855.   - Added virtual keycode identifiers to KeyEvent to properly represent
  1856.     all standard keys on the keyboard.  The keyCode property of the key
  1857.     event now contains one of those identifiers (instead of the ASCII
  1858.     integer equivalent).
  1859.  
  1860.   - Added a method called isPopupTrigger to the MouseEvent class,
  1861.     providing a platform-independent way to determine whether a mouse
  1862.     event should result in a popup menu being shown. (Bug #4017794)
  1863.  
  1864. __________
  1865. AWT CHANGE - New method: getTreeLock() to java.awt.Component:
  1866.  
  1867.     The public field Component.LOCK will NOT be changed for beta3,
  1868.     to minimize the risk of the change for beta3, but it will be made
  1869.     non-public (package private) between beta3 and final release.
  1870.  
  1871.     RATIONALE:
  1872.     The AWT exposes a public static final field, called Component.LOCK, 
  1873.     for synchronizing operations that affect or depend on
  1874.     component-tree structure.  
  1875.  
  1876.     Exposing this field for public use unnecessarily constricts future
  1877.     AWT implementations to providing a single toolkit-wide lock.
  1878.  
  1879.     It is much better to provide access to the lock object by an
  1880.     instance method on class Component, such that future
  1881.     implementations can return a context-sensitive locking object if
  1882.     they need to.
  1883.  
  1884. __________
  1885. AWT CHANGE - New Component method: getLocationOnScreen
  1886.  
  1887.     Added one new method to the Component class:
  1888.  
  1889.       Point getLocationOnScreen()
  1890.  
  1891.     RATIONALE:
  1892.     This method returns the current location of the component in
  1893.     the screen's coordinate space.
  1894.  
  1895. __________
  1896. AWT CHANGE - New Choice method: insert
  1897.  
  1898.     Added one new method to the Choice class:
  1899.  
  1900.       void insert(String item, int index) 
  1901.  
  1902.     RATIONALE:
  1903.     This method lets you insert items into a Choice control at the index
  1904.     you specify.  (In Beta2, items were always added at the end.)
  1905.  
  1906. __________
  1907. AWT CHANGE - ItemSelectable interface change 
  1908.  
  1909.     Removed the following two methods from the ItemSelectable interface:
  1910.        public int[] getSelectedIndexes();
  1911.        public String[] getSelectedItems();
  1912.  
  1913.     They have been replaced by the following method:
  1914.        public Object[] getSelectedObjects();
  1915.  
  1916.     RATIONALE:
  1917.     This change removes the restriction that an item must be representable
  1918.     by a String.  The AWT classes that implement ItemSelectable (List,
  1919.     Choice, Checkbox, and CheckboxMenuItem) have changed accordingly.
  1920.  
  1921. __________
  1922. AWT CHANGE - Allow Container and Component classes to be extended 
  1923.     directly to create lightweight components.
  1924.  
  1925.   1) Added the following method to java.awt.Component
  1926.  
  1927.     Dimension getMaximumSize();
  1928.  
  1929.      In beta2 components could specify only their minimum and preferred
  1930.      sizes and assume that the component was infinitely stretchable.  
  1931.      This assumption is invalid with lightweight components where components
  1932.      tend to be written at a finer granularity and some components don't
  1933.      want to be flexible.
  1934.  
  1935.      The default implementation of this method specifies infinite
  1936.      size to reflect the current behavior.
  1937.  
  1938.   2) Added two alignment functions to java.awt.Component.
  1939.  
  1940.         float getAlignmentX();
  1941.     float getAlignmentY();
  1942.  
  1943.      that return a number between 0.0 and 1.0.  These values specify how 
  1944.      to align the component relative to other components.  0.0 would be
  1945.      aligned at the origin, 1.0 the furthest away from the origin, 
  1946.      0.5 is centered, etc.  As examples, a text component would have a
  1947.      y alignment to the baseline, and an icon component would have 
  1948.      an alignment to its hotspot, if defined.
  1949.  
  1950.     RATIONALE:
  1951.     Before beta3 the only way of creating new components in the AWT was
  1952.     to extend Canvas, Panel, and their subclasses.  Component and
  1953.     Container could not be directly extended.  All components were
  1954.     automatically "heavyweight" in that each had an opaque native
  1955.     window associated with them.  The problem with this is that heavyweight
  1956.     components are expensive (you can't afford to have too many) and
  1957.     they cannot have any transparent pixels.  The new changes create
  1958.     standard support for lightweight components.
  1959.  
  1960. ____________
  1961. MATH CHANGES - New package: java.math, which initially contains two 
  1962.     classes:  BigInteger and BigDecimal.
  1963.  
  1964.     BigNum class has been removed and replaced by BigInteger and BigDecimal.
  1965.  
  1966.     BigIntegers are immutable arbitrary-precision integers, which provide
  1967.     analogs to all of Java's primitive integer operators, and all relevant
  1968.     static methods from java.lang.Math.  Additionally, BigIntegers provide
  1969.     operations for modular arithmetic, GCD calculation, primality testing, 
  1970.     prime generation, single-bit manipulation, and a few other odds and ends.
  1971.  
  1972.     BigDecimals are immutable, arbitrary-precision signed decimal numbers,
  1973.     suitable for monetary calculations.  BigDecimals provide operations for 
  1974.     basic arithmetic, scale manipulation, comparison, format conversion 
  1975.     and hashing.  The BigDecimal class gives its user complete control 
  1976.     over rounding behavior, forcing the user to explicitly specify a 
  1977.     rounding behavior for operations capable of discarding precision.
  1978.  
  1979. ________________
  1980. SECURITY CHANGES -  New method: getProviders(), which provides 
  1981.     a way to query which crypto providers are installed.
  1982.  
  1983.     This method is added to the Security class and has the form:
  1984.  
  1985.     public static String[] getProviders();
  1986.  
  1987. ___________
  1988. TOOL CHANGE - javakey is now able to export keys and certs
  1989.     to files.
  1990.  
  1991.     This is a change to the javakey tool, a reciprocal to
  1992.     the existing import facility.
  1993.  
  1994. ___________
  1995. TOOL CHANGE - javac -nowarn flag now suppresses @deprecated messages  
  1996.  
  1997.     This can greatly reduce the amount of messages, allowing you
  1998.     to see only the errors.
  1999.  
  2000. ____________
  2001. TOOL CHANGES - jar tool is incompatible with earlier JAR files
  2002.  
  2003.     The beta3 jar tool (more specifically, ZipInputStream and
  2004.     ZipOutputStream) is incompatible with JAR files created with
  2005.     the beta2 jar tool.  The JAR tool won't understand those files.
  2006.     There was a bug in beta2 ZipInputStream and ZipOutputStream 
  2007.     such that those classes didn't generate files properly according
  2008.     to the zip specification (one bit out of place means a lot...)
  2009.     The bug was fixed and now it generates proper zip files that 
  2010.     other tools will understand.
  2011.  
  2012. ____________
  2013. TOOL CHANGES - Removed ability to generate MIF from javadoc
  2014.  
  2015.     Removed "-doctype MIF" option from javadoc.  This was necessary
  2016.     in order to remove the HTML parser dependency that HotJava had
  2017.     on the JDK.
  2018.  
  2019. ===================================================================
  2020. Changes from the original JDK 1.1beta to JDK 1.1beta2
  2021. -------------------------------------------------------------------
  2022.  
  2023. The following fixes and improvements are in the JDK 1.1beta2 release.
  2024.  
  2025. ______________
  2026. VERSION NUMBER - The version number for this release is "JDK1.1beta2". 
  2027.  
  2028.     You can get the version number of your particular release by executing:
  2029.  
  2030.         java -version
  2031.  
  2032. _______
  2033. CHANGE - Source code for public classes included
  2034.  
  2035.     The source code for the public classes in the java.* package are 
  2036.     now included in this release in the file src.zip.  These correspond
  2037.     to the public classes contained in classes.zip.  This src.zip
  2038.     is equivalent to that shipped previously with JDK 1.0.2
  2039.     but also includes sources to the new public classes added in JDK 1.1. 
  2040.  
  2041. _______
  2042. BUG FIX - Jar tool manifest-build limitation on number of files on Solaris
  2043.  
  2044.     DESCRIPTION OF BUG
  2045.     In some configurations of Solaris, trying to create a JAR file 
  2046.     that has more than 64 entries in it would fail.  The command 
  2047.     that would cause this to happen is:
  2048.  
  2049.     % jar cvf test.jar <somedir>
  2050.   
  2051.     where <somedir> is a directory containing more than 64 files.
  2052.  
  2053.     SOLUTION - This bug has been fixed.
  2054.  
  2055. _______
  2056. BUG FIX - Javakey tool signs jar files with invalid signatures
  2057.  
  2058.     DESCRIPTION OF BUG
  2059.     An implementation inconsistency in the javakey security tool causes
  2060.     jar files to be signed with invalid signatures. This means that 
  2061.     signature checking will always fail, thus all applets will run as 
  2062.     untrusted, with minimal permissions enabled.  This makes code signing
  2063.     feature unusable but it is not a security hole.  
  2064.  
  2065.     SOLUTION - This bug has been fixed. 
  2066.  
  2067. _______
  2068. BUG FIX - 4017054 - Limit to numeric range of case statements
  2069.  
  2070.     DESCRIPTION OF BUG
  2071.     If a Java switch statement includes case statements that cover a wide
  2072.     range of numerical values (although not necessarily a large number of 
  2073.     cases themselves), the Java compiler can run out of memory attempting 
  2074.     to compile that statement.  For instance, a switch statement 
  2075.     containing the two cases 0 and 99999999 will cause the compiler to 
  2076.     run out of memory.
  2077.  
  2078.     SOLUTION - This bug has been fixed.
  2079.  
  2080. _______
  2081. BUG FIX - 4018832 - Missing class java.io.LineNumberReader
  2082.  
  2083.     DESCRIPTION OF BUG
  2084.     In the Win32 release, the class java.io.LineNumberReader is
  2085.     documented but the class file is absent from classes.zip
  2086.  
  2087.     SOLUTION - java.io.LineNumberReader has been added to classes.zip
  2088.  
  2089. _______
  2090. BUG FIX - 4018252 - DecimalNumberFormat methods throw exceptions
  2091.  
  2092.     DESCRIPTION OF BUG
  2093.     The class java.text.DecimalNumberFormat throws an exception when any 
  2094.     of its format or parse methods are called.  A typical stack trace 
  2095.     looks something like the following:
  2096.  
  2097.     java.lang.NumberFormatException: 451.0D
  2098.         at java.lang.Double.<init>(Double.java)
  2099.         at java.text.DigitList.getRealDouble(DigitList.java)
  2100.         at java.text.DigitList.set(DigitList.java)
  2101.         at java.text.DecimalFormat.format(DecimalFormat.java)
  2102.         at java.text.NumberFormat.format(NumberFormat.java)
  2103.  
  2104.     Although DecimalNumberFormats are generally not used directly, they 
  2105.     are returned by calls to NumberFormat.getDefault(), 
  2106.     NumberFormat.getDefaultCurrency() and NumberFormat.getDefaultPercent().
  2107.  
  2108.     SOLUTION - This bug has been fixed.
  2109.  
  2110.