home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / CHANGES < prev    next >
Text File  |  1997-11-24  |  97KB  |  2,548 lines

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