ChangeLog-1999 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508
  1. 1999-12-21 Per Bothner <per@bothner.com>
  2. * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
  3. offset in new Method.
  4. 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
  5. * java/lang/natObject.cc (notify): Throw message with
  6. IllegalMonitorStateException.
  7. (notifyAll): Ditto.
  8. (wait): Ditto.
  9. * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
  10. (isInterrupted_): New function, which does clear interrupt_flag.
  11. (interrupt): Use `isInterrupted_'.
  12. * java/lang/natThread.cc (interrupt): Add comment.
  13. (join): Set `prev' in joiner loop.
  14. Change various calls to `isInterrupted' to use `isInterrupted_'.
  15. * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
  16. on linux. Set result to 0 on an interrupt. Test interrupted status
  17. of java Thread object directly.
  18. FLAG_INTERRUPTED: removed.
  19. (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
  20. (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
  21. (_Jv_InitThreads): Don't block SIGINT.
  22. (_Jv_ThreadWait): Don't configure SIGINT handler.
  23. 1999-12-21 Tom Tromey <tromey@cygnus.com>
  24. * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
  25. 1999-12-20 Tom Tromey <tromey@cygnus.com>
  26. * java/lang/reflect/Modifier.java (STRICT): New constant.
  27. (isStrict): New method.
  28. (toString): Added `strict'.
  29. 1999-12-23 Anthony Green <green@cygnus.com>
  30. * configure: Rebuilt.
  31. * configure.in (LIBDATASTARTSPEC): Force data_start in with
  32. linker trick.
  33. 1999-12-19 Anthony Green <green@cygnus.com>
  34. * libgcjdata.c: New file.
  35. * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
  36. * configure: Rebuilt.
  37. * configure.in (LIBDATASTARTSPEC): Force data with a known name
  38. into the program.
  39. * Makefile.in: Rebuilt.
  40. * Makefile.am: Build libgcjdata.a.
  41. * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
  42. * configure: Rebuilt.
  43. * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
  44. into every program.
  45. 1999-12-17 Tom Tromey <tromey@cygnus.com>
  46. * java/lang/reflect/Method.java (toString): Call getType if
  47. required. Partial fix for PR libgcj/111. From Per Bothner.
  48. * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
  49. 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
  50. * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
  51. null String constructor parameter.
  52. * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
  53. for exception messages.
  54. BooleanClass: declare.
  55. (setOption): Use BooleanClass instead of Class.forName() for
  56. instanceof test.
  57. (bind): Cast 4th parameter of setsockopt to `char *' for
  58. compatibility with older Solaris headers.
  59. * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
  60. sprintf calls for exception messages.
  61. BooleanClass, IntegerClass: declare.
  62. (setOption): Use BooleanClass and IntegerClass, not Class.forName()
  63. for instanceof test.
  64. 1999-12-15 Tom Tromey <tromey@cygnus.com>
  65. * java/lang/natSystem.cc (init_properties): Don't set user.name or
  66. user.home if NO_GETUID defined. Only set user.dir if getcwd
  67. exists.
  68. * include/config.h.in: Rebuilt.
  69. * acconfig.h (NO_GETUID): New define.
  70. * configure.in: Rebuilt.
  71. * configure.in: Define NO_GETUID in cross case. Check for getcwd
  72. in native case.
  73. 1999-12-08 Tom Tromey <tromey@cygnus.com>
  74. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
  75. where no recursive mutexes exist. Fixes PR libgcj/117.
  76. 1999-12-05 Anthony Green <green@cygnus.com>
  77. * include/jvm.h: Declare many functions with
  78. __attribute__((__malloc__)).
  79. * gcj/javaprims.h: Ditto.
  80. Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
  81. * THANKS: Giving credit where credit is due.
  82. 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
  83. * java/net/ServerSocket.java (ServerSocket): Bind to any interface
  84. if bindAddr is null.
  85. * java/lang/natString.cc (equalsIgnoreCase): return false if
  86. anotherString is null.
  87. * java/lang/Boolean.java (valueOf): return FALSE if argument is
  88. null.
  89. 1999-11-30 Tom Tromey <tromey@cygnus.com>
  90. * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
  91. mutex to initialize. Initialize `count' if required.
  92. Fixes PR libgcj/98.
  93. 1999-11-27 Per Bothner <per@bothner.com>
  94. * exception.cc: Remove prototype declarations for malloc and free.
  95. These clash with recent versions of glibc, which specifies `throws ()'
  96. when __cplusplus is defined. Instead, #include <stdlib.h>.
  97. 1999-11-24 Tom Tromey <tromey@cygnus.com>
  98. * prims.cc (_Jv_NewObjectArray): Use
  99. _Jv_GetArrayElementFromElementType.
  100. (_Jv_NewPrimArray): Likewise.
  101. * java/lang/natObject.cc (clone): Use
  102. _Jv_GetArrayElementFromElementType instead of sizeof.
  103. * java/lang/natSystem.cc (arraycopy): Use
  104. _Jv_GetArrayElementFromElementType.
  105. * include/jvm.h (_Jv_GetArrayElementFromElementType): New
  106. function.
  107. 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
  108. * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
  109. Exception messages. PR java.net/57.
  110. (bind): set SO_REUSEADDR before bind.
  111. * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
  112. overruns. PR java.net/57.
  113. 1999-11-19 Tom Tromey <tromey@cygnus.com>
  114. * Makefile.am (DIVIDESPEC): Removed.
  115. (EXCEPTIONSPEC): Removed.
  116. 1999-11-19 Andrew Haley <aph@cygnus.com>
  117. * Makefile.am (JCFLAGS): Add -L$(here)
  118. (JC1FLAGS): Ditto.
  119. * Makefile.in: Rebuild.
  120. 1999-11-18 Tom Tromey <tromey@cygnus.com>
  121. * java/lang/natDouble.cc: Include <config.h>.
  122. * include/config.h.in: Rebuilt.
  123. * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
  124. * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
  125. targets.
  126. * configure: Rebuilt.
  127. * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
  128. requested by configure.host. Don't put `-D' option into
  129. libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
  130. * configure: Rebuilt.
  131. * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
  132. sjlj-exceptions.
  133. 1999-11-18 Andrew Haley <aph@cygnus.com>
  134. * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
  135. (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
  136. (JC1FLAGS): Ditto.
  137. * Makefile.in: Rebuild
  138. * acconfig.h: remove SJLJ_EXCEPTIONS
  139. * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
  140. Do not AC_DEFINE SJLJ_EXCEPTIONS.
  141. * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
  142. * gcj/Makefile.in, include/Makefile.in: rebuild.
  143. * include/config.h.in: remove SJLJ_EXCEPTIONS.
  144. 1999-11-18 Andrew Haley <aph@cygnus.com>
  145. * gij.cc (main): Rename label to prevent conflict.
  146. * exception.cc (_Jv_type_matcher): Don't check the table if we're
  147. using setjmp/longjmp exceptions: there isn't one.
  148. 1999-11-17 Andrew Haley <aph@cygnus.com>
  149. * exception.cc (_Jv_type_matcher): Ignore null exception tables.
  150. (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
  151. (__sjthrow): Add declaration.
  152. * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
  153. (JC1FLAGS): Ditto
  154. (AM_CFLAGS): Ditto
  155. (AM_CXXFLAGS): Ditto
  156. * Makefile.in: Rebuild
  157. * acconfig.h: Add SJLJ_EXCEPTIONS
  158. * configure.in: Add SJLJ_EXCEPTIONS
  159. * configure: Rebuild.
  160. * gcj/Makefile.in: Rebuild.
  161. * gcj/cni.h: Add support for sjlj-exceptions.
  162. * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
  163. * include/Makefile.in: Rebuild.
  164. * include/default-signal.h: Add support for sjlj-exceptions.
  165. 1999-11-18 Tom Tromey <tromey@cygnus.com>
  166. * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
  167. * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
  168. minus 1.
  169. (method_cache): Made larger.
  170. 1999-11-11 Tom Tromey <tromey@cygnus.com>
  171. * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
  172. initializing mutex. Initialize `count' when required.
  173. 1999-11-07 Anthony Green <green@trip.cygnus.com>
  174. * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
  175. data correctly.
  176. 1999-11-05 Tom Tromey <tromey@cygnus.com>
  177. * java/lang/natThread.cc (destroy): Removed incorrect comment.
  178. 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
  179. * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
  180. * prims.cc (parse_heap_size): Use end, not spec. Use 1024
  181. multipler for `k'.
  182. 1999-11-05 Tom Tromey <tromey@cygnus.com>
  183. * java/lang/natThread.cc (stop): Removed argument name.
  184. * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
  185. `private'; now has default access.
  186. * Makefile.in: Rebuilt.
  187. * Makefile.am (java/lang/ThreadGroup.h): Removed.
  188. 1999-11-04 Tom Tromey <tromey@cygnus.com>
  189. * java/lang/natClass.cc (method_cache_count): Removed.
  190. (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
  191. (_Jv_AddMethodToCache): Don't loop.
  192. * configure.in: Removed `qt' threads case.
  193. * include/quick-threads.h: Removed.
  194. * quick-threads.cc: Removed.
  195. * include/quick-threads.h (_Jv_ThreadCancel): Removed.
  196. (_Jv_ThreadDestroy): Likewise.
  197. * include/no-threads.h (_Jv_ThreadCancel): Removed.
  198. (_Jv_ThreadDestroy): Likewise.
  199. * include/posix-threads.h (struct _Jv_Thread_t): Removed
  200. `exception' field.
  201. (_Jv_ThreadCancel): Removed decl.
  202. (_Jv_ThreadDestroy): Removed.
  203. * posix-threads.cc (_Jv_ThreadCancel): Removed.
  204. (throw_cleanup): Removed.
  205. (really_start): Don't push or pop cleanup.
  206. (_Jv_ThreadInitData): Don't initialize `exception' field.
  207. * java/lang/Thread.java (stop): Officially unimplemented.
  208. * java/lang/natThread.cc (stop): Officially unimplemented.
  209. 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
  210. * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
  211. instead.
  212. 1999-11-02 Tom Tromey <tromey@cygnus.com>
  213. * boehm.cc: Don't include boehm-config.h.
  214. 1999-11-01 Tom Tromey <tromey@cygnus.com>
  215. * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
  216. (sum_blocks): Removed.
  217. (_Jv_GCFreeMemory): Use GC_get_free_bytes.
  218. 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
  219. * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
  220. before "super".
  221. * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
  222. * java/io/InputStreamReader (InputStreamReader): ditto.
  223. 1999-10-22 Tom Tromey <tromey@cygnus.com>
  224. * Makefile.in: Rebuilt.
  225. * Makefile.am (java/lang/ClassLoader.h): New target.
  226. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
  227. to `redirect'.
  228. * include/java-props.h (_Jv_Compiler_Properties): Changed
  229. declaration.
  230. * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
  231. * include/jvm.h (_Jv_GCSetInitialHeapSize,
  232. _Jv_GCSetMaximumHeapSize): Declare.
  233. (JvRunMain, _Jv_RunMain): Declare.
  234. (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
  235. * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
  236. (_Jv_GCSetMaximumHeapSize): Likewise.
  237. * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
  238. (_Jv_GCSetMaximumHeapSize): Likewise.
  239. * prims.cc (parse_heap_size): New function.
  240. (_Jv_SetInitialHeapSize): Likewise.
  241. (_Jv_SetMaximumHeapSize): Likewise.
  242. (_Jv_Compiler_Properties): New global.
  243. * gij.cc (help): New function.
  244. (version): Likewise.
  245. (heap_size): Likewise.
  246. (heap_max_size): Likewise.
  247. (main): Parse arguments. Set _Jv_Compiler_Properties.
  248. Include <config.h>, <java-props.h>.
  249. (_Jv_Compiler_Properties): Removed.
  250. 1999-10-18 Tom Tromey <tromey@cygnus.com>
  251. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
  252. method.
  253. (redirect): New static field.
  254. * java/lang/ClassLoader.java (getSystemClassLoader): Now
  255. native
  256. (getVMClassLoader0): Removed.
  257. * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
  258. (redirect): Removed.
  259. (getSystemClassLoader): Implemented.
  260. 1999-10-16 Anthony Green <green@cygnus.com>
  261. * java/lang/ClassLoader.java (getSystemResource): Use
  262. getSystemClassLoader instead of ClassLoader.system.
  263. (getSystemResourceAsStream): Ditto.
  264. * java/lang/natClassLoader.cc (redirect): Make static and
  265. remove #ifdef INTERPRETER so it is always defined.
  266. (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
  267. returns a VMClassLoader.
  268. * java/util/ResourceBundle.java (trySomeGetBundle): Create a
  269. PropertyResourceBundle if a properties file is found before a
  270. ResourceBundle class.
  271. 1999-10-15 Tom Tromey <tromey@cygnus.com>
  272. * gij.cc (main): Formatting fixes.
  273. (_Jv_Compiler_Properties): Define.
  274. * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
  275. declare.
  276. (init_properties): Set properites from _Jv_Compiler_Properties.
  277. * include/java-props.h (_Jv_Compiler_Properties,
  278. _Jv_Environment_Properties): Declare.
  279. * include/java-props.h: Added copyright.
  280. 1999-10-13 Anthony Green <green@cygnus.com>
  281. * libtool-version: Catch up by incrementing current.
  282. * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
  283. * configure, include/config.h.in: Rebuilt.
  284. * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
  285. * configure.in: Added --disable-getenv-properties and new define
  286. `DISABLE_GETENV_PROPERTIES'.
  287. * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
  288. (next_property_key): New function.
  289. (next_property_value): New function.
  290. (process_gcj_properties): New function.
  291. (JvRunMain): Call process_gcj_properties.
  292. (_JvRunMain): Ditto.
  293. * java/lang/natSystem.cc (init_properties): Set properties defined
  294. in GCJ_PROPERTIES.
  295. * include/java-props.h: New file.
  296. * java/lang/natSystem.cc (init_properties): Add new properties to
  297. conform with Java Product Versioning Specification.
  298. 1999-10-12 Tom Tromey <tromey@cygnus.com>
  299. * configure: Rebuilt.
  300. * configure.in: Fixed test for --disable-java-net.
  301. 1999-10-06 Tom Tromey <tromey@cygnus.com>
  302. * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
  303. when building Canadian cross.
  304. (NATIVE): Don't define when cross-compiling.
  305. 1999-10-04 Tom Tromey <tromey@cygnus.com>
  306. * java/net/natPlainSocketImpl.cc: Don't include headers if
  307. java.net is disabled.
  308. * Makefile.in: Rebuilt.
  309. * Makefile.am (ZINCS): Removed. This is defined in configure.in
  310. when needed, and must be left empty when not needed.
  311. 1999-10-01 Anthony Green <green@cygnus.com>
  312. * THANKS: Refreshed from htdocs version.
  313. 1999-10-01 Steve Chamberlain <sac@pobox.com>
  314. * Makefile.in: Rebuilt.
  315. * Makefile.am (ZINCS): Define
  316. * configure: Rebuilt.
  317. * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
  318. * java/lang/ieeefp.h: Add definitions for picoJava.
  319. 1999-10-01 Tom Tromey <tromey@cygnus.com>
  320. * configure: Rebuilt.
  321. * configure.in: Set classpath when invoking gcj. Use changequote
  322. around sed invocation.
  323. * java/net/natPlainSocketImpl.cc: Stub native functions if
  324. DISABLE_JAVA_NET is defined.
  325. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
  326. typo in exception string.
  327. (getTimeToLive): Likewise.
  328. Stub native functions if DISABLE_JAVA_NET is defined.
  329. * java/net/natInetAddress.cc: Stub native functions if
  330. DISABLE_JAVA_NET is defined.
  331. * configure.host: Disable java.net for mips-tx39.
  332. * configure, include/config.h.in: Rebuilt.
  333. * acconfig.h (DISABLE_JAVA_NET): Undefine.
  334. * configure.in: Added --disable-java-net and new define
  335. `DISABLE_JAVA_NET'.
  336. 1999-09-30 Tom Tromey <tromey@cygnus.com>
  337. * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
  338. 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
  339. * README: New file.
  340. 1999-09-28 Tom Tromey <tromey@cygnus.com>
  341. * configure: Rebuilt.
  342. * configure.in (PROCESS): In POSIX case, only set if not already
  343. set.
  344. * configure.host (PROCESS): Set in mips-tx39 case.
  345. * aclocal.m4, configure: Rebuilt.
  346. * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
  347. appropriate AC_PROG_ symbol.
  348. 1999-09-24 Tom Tromey <tromey@cygnus.com>
  349. * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
  350. `void *'.
  351. (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
  352. Fix for PR java.util/47:
  353. * configure, include/config.h: Rebuilt.
  354. * configure.in: Don't look for ctime or ctime_r.
  355. * Makefile.in: Rebuilt.
  356. * Makefile.am (nat_source_files): Don't mention natDate.cc.
  357. * java/util/natDate.cc: Removed.
  358. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
  359. static fields.
  360. (getAvailableIDs): Rewrote.
  361. (getTimeZone): Rewrote.
  362. * java/util/Date.java (toGMTString): New method.
  363. (toLocaleString): New method.
  364. (toString): Rewrote.
  365. 1999-09-23 Tom Tromey <tromey@cygnus.com>
  366. * configure: Rebuilt.
  367. * configure.in: Print message when checking to see if gcj can
  368. handle -fuse-divide-subroutine.
  369. * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
  370. dead code.
  371. * java/lang/FirstThread.java (run0): Renamed to `run'.
  372. (run): Removed.
  373. * prims.cc (main_init): New function.
  374. (JvRunMain): Call it.
  375. (_Jv_RunMain): Likewise.
  376. Include <signal.h>.
  377. (main_init): Ignore SIGPIPE. Fixes PR 51.
  378. 1999-09-22 Tom Tromey <tromey@cygnus.com>
  379. * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
  380. 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
  381. * java/text/MessageFormat.java (MessageFormat(String)): Set the
  382. default locale.
  383. * java/text/NumberFormat.java: Check that object is a Number. If
  384. not, throw IllegialArgumentException.
  385. 1999-09-21 Tom Tromey <tromey@cygnus.com>
  386. * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
  387. both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
  388. * include/posix-threads.h (_Jv_MutexDestroy): Use
  389. _Jv_PthreadGetMutex.
  390. (_Jv_MutexLock): Likewise.
  391. (_Jv_MutexUnlock): Likewise.
  392. * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
  393. previous patch; it too was incorrect.
  394. * java/io/PrintStream.java (PrintStream): Likewise.
  395. * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
  396. refer to `this' before calling superclass constructor.
  397. * java/io/PrintStream.java (PrintStream): Don't refer to `this'
  398. before calling superclass constructor.
  399. 1999-09-20 Tom Tromey <tromey@cygnus.com>
  400. * configure: Rebuilt.
  401. * configure.in: Send output of `-fuse-divide-subroutine' test
  402. compilation to /dev/null.
  403. 1999-09-14 Tom Tromey <tromey@cygnus.com>
  404. * include/java-insns.h: Turned constants into an enum. Added
  405. multiple-inclusion protection.
  406. 1999-09-10 Tom Tromey <tromey@cygnus.com>
  407. * configure: Rebuilt.
  408. * configure.in: Build include/Makefile.
  409. * Makefile.in: Rebuilt.
  410. * Makefile.am (SUBDIRS): Added gcj and include.
  411. (install-data-local): New target.
  412. (extra_headers): New macro.
  413. * include/Makefile.in: New file.
  414. * include/Makefile.am: New file.
  415. * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
  416. * java/lang/reflect/natField.cc: Don't include gcj/field.h or
  417. gcj/cni.h.
  418. * boehm.cc: Don't include java-threads.h or gcj/field.h.
  419. * resolve.cc: Include config.h.
  420. * defineclass.cc: Include config.h.
  421. * include/java-interp.h: Don't include config.h.
  422. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
  423. cni.h.
  424. * gcj/javaprims.h: Regenerated namespace decls.
  425. * classes.pl (scan): Don't put `;' after closing brace.
  426. * Makefile.in: Rebuilt.
  427. * Makefile.am (INCLUDES): Added -I for top_srcdir.
  428. * configure.in: Create gcj/Makefile.
  429. * gcj/Makefile.in: New file.
  430. * gcj/Makefile.am: New file.
  431. * java/lang/Object.h: Don't include any other headers.
  432. * gcj/array.h: Renamed from include/java-array.h.
  433. * gcj/field.h: Renamed from include/java-field.h.
  434. * gcj/method.h: Renamed from include/java-method.h.
  435. * gcj/cni.h, gcj/javaprims.h: Moved from include/.
  436. Updated all files to reflect new include structure.
  437. 1999-09-09 Tom Tromey <tromey@cygnus.com>
  438. * configure: Rebuilt.
  439. * configure.in: Fixed typo; variable is THREADSPEC and not
  440. THREADSPECS.
  441. 1999-09-08 Tom Tromey <tromey@cygnus.com>
  442. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
  443. previous change and implemented a correct test in the __m_count
  444. case.
  445. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
  446. in __m_count case.
  447. 1999-09-07 Tom Tromey <tromey@cygnus.com>
  448. * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
  449. code and don't set errno.
  450. * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
  451. not `r'. Changed `done_sleeping' to a `bool'.
  452. 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
  453. * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
  454. Added FLAG_INTERRUPTED to indicate that a thread was interrupted
  455. by another thread, rather than by the GC.
  456. (_Jv_CondWait): Prevent premature thread wakeup by GC.
  457. (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
  458. * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
  459. function.
  460. 1999-09-03 Tom Tromey <tromey@cygnus.com>
  461. * configure: Rebuilt.
  462. * configure.in: Check for fstat function.
  463. * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
  464. FIONREAD fails.
  465. 1999-09-02 Tom Tromey <tromey@cygnus.com>
  466. * include/java-array.h (jobjectArrayjchar): Removed unused
  467. declaration.
  468. * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
  469. _Jv_PrepareCompiledClass while holding class mutex.
  470. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  471. * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
  472. (_Jv_PthreadGetMutex): Use it.
  473. (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
  474. (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
  475. (_Jv_MutexLock): Likewise.
  476. (_Jv_MutexUnlock): Likewise.
  477. * include/config.h.in: Rebuilt.
  478. * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
  479. PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
  480. * configure: Rebuilt.
  481. * libgcj.spec.in: Don't mention INTERPSPEC.
  482. * configure.in (INTERPSPEC): Removed.
  483. Only run pthreads-related checks when using POSIX threads. Check
  484. for m_count and __m_count in mutex structure.
  485. 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
  486. * java/lang/natClass.cc: Fixed notification of threads
  487. when class initialization is complete.
  488. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  489. * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
  490. * resolve.cc: Removed constants defined by
  491. java.lang.reflect.Modifier.
  492. Include <java/lang/reflect/Modifier.h>.
  493. (_Jv_ResolvePoolEntry): Use values from Modifier.
  494. (_Jv_DetermineVTableIndex): Likewise.
  495. (_Jv_PrepareClass): Likewise.
  496. (ncode): Likewise.
  497. * defineclass.cc (_Jv_ClassReader): Removed constants defined by
  498. java.lang.reflect.Modifier.
  499. Include <java/lang/reflect/Modifier.h>.
  500. (checkExtends): Use values from Modifier.
  501. (checkImplements): Likewise.
  502. (handleField): Likewise.
  503. (handleConstantValueAttribute): Likewise.
  504. (handleFieldsEnd): Likewise.
  505. (handleMethod ): Likewise.
  506. (handleMethodsEnd): Likewise.
  507. (handleClassBegin): Likewise.
  508. * interpret.cc: Removed constants defined by
  509. java.lang.reflect.Modifier.
  510. (continue1): Use values from Modifier.
  511. * java/lang/natClassLoader.cc: Removed constants defined by
  512. java.lang.reflect.Modifier.
  513. * java/lang/natClassLoader.cc (_Jv_NewClass): Use
  514. JV_STATE_NOTHING, not `0'.
  515. * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
  516. * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
  517. * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
  518. except on Linux.
  519. (_Jv_PthreadGetMutex): New function.
  520. (_Jv_PthreadCheckMonitor): Use it.
  521. (_Jv_MutexInit): Likewise. ALso, initialize `count'.
  522. (_Jv_MutexLock): Update `count'.
  523. (_Jv_MutexUnlock): Likewise.
  524. (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
  525. appropriate.
  526. 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
  527. * Makefile.am (.java.lo): Add rule.
  528. * Makefile.in: Rebuilt.
  529. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  530. * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
  531. * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
  532. function.
  533. (_Jv_CondNotify): Use it.
  534. (_Jv_CondNotifyAll): Likewise.
  535. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
  536. 1999-08-31 Tom Tromey <tromey@cygnus.com>
  537. * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
  538. declaration.
  539. 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
  540. * posix-threads.cc: Include <errno.h>.
  541. 1999-08-23 Tom Tromey <tromey@cygnus.com>
  542. * boehm.cc: Undefine TRUE and FALSE.
  543. * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
  544. 1999-08-21 Tom Tromey <tromey@cygnus.com>
  545. * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
  546. result. PR 40.
  547. 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
  548. * configure.in: Check for in_addr_t in netinet/in.h too. Check
  549. for ip_mreq too.
  550. * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
  551. (HAVE_STRUCT_IP_MREQ): Added.
  552. * configure, include/config.h.in: Rebuilt.
  553. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
  554. if needed.
  555. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
  556. Disable if ip_mreq is not available.
  557. * configure.in: Check types ssize_t and in_addr_t.
  558. * acconfig.h: Undefine them.
  559. * configure, include/config.h.in: Rebuilt.
  560. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
  561. function that detects the signature of getpwuid_r.
  562. (init_properties): Use it.
  563. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
  564. (toString): Use it.
  565. 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
  566. * interpret.cc (continue1): Implement explicit dispatch table.
  567. insn_target: Explicit interpreter switch table.
  568. SAVE_PC: New macro, moves pc saving code into instructions that
  569. require so.
  570. NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
  571. PC_REGISTER_ASM: New macro.
  572. INLINE_SWITCH: New macro. Constrols dispatching strategy.
  573. opcode: Remove local variable.
  574. {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
  575. (POKEI): Use _Jv_word.
  576. (iinc): Use _Jv_word.
  577. (dupx): Change reference argument (sp) to pointer.
  578. (jvdump): Remove
  579. * interpret.cc: Remove instruction timing instrumentation.
  580. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
  581. comment. Don't use _Jv_ClassNameSamePackage.
  582. * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
  583. URLPathEntry, CacheEntry}: Removed.
  584. * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
  585. package.
  586. (.java.lo): Rule removed.
  587. * Makefile.in: Rebuilt.
  588. 1999-08-19 Tom Tromey <tromey@cygnus.com>
  589. * java/lang/natThread.cc (class locker): New class.
  590. (join): Use a locker around _Jv_CondWait.
  591. (sleep): Likewise.
  592. 1999-08-18 Tom Tromey <tromey@cygnus.com>
  593. * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
  594. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
  595. 1999-08-18 Tom Tromey <tromey@cygnus.com>
  596. * include/javaprims.h ("Java"): Regenerated namespace decls.
  597. 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
  598. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
  599. from _Jv_InternClassStrings.
  600. * prims.cc (_Jv_RunMain): New function.
  601. (JvRunMain): Remove gij-support.
  602. * gij.cc (main): Use _Jv_RunMain.
  603. * java/util/zip/ZipFile.java: Call readDirectory in constructor.
  604. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
  605. argument in temp variable.
  606. (continue1): For all op_x2y insns, use temp variable for
  607. intermediate value. Also remove some comments.
  608. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
  609. (forName): Don't call _Jv_InitClass.
  610. * java/lang/Class.java (getResource,getResourceAsStream): Implement.
  611. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
  612. * java/util/jar/JarInputStream.java: New file.
  613. * java/util/jar/JarEntry.java: New file.
  614. * java/util/jar/JarFile.java: New file.
  615. * java/net/URLClassLoader.java: New file.
  616. * java/net/JarURLConnection.java: New file.
  617. * gnu/gcj/protocol/jar/Handler.java: New file.
  618. * gnu/gcj/protocol/jar/Connection.java: New file.
  619. * java/security/SecureClassLoader.java: New file.
  620. * java/lang/ClassLoader.java (parent): New variable.
  621. (ClassLoader (ClassLoader)): new constructor.
  622. (findClass): New method.
  623. (loadClass): Add default 1.2 implementation.
  624. (getSystemResourceAsBytes, getResourceAsBytes): Removed.
  625. (readfully): Removed.
  626. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
  627. (findSystemClass): New method.
  628. (VMClassLoader): Constructor rewritten.
  629. (init): New method.
  630. All other methods removed.
  631. * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
  632. to gnu::gcj::runtime::VMClassLoader.
  633. (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
  634. class entries.
  635. (VMClassLoader::findSystemClass): renamed from findBootClass.
  636. * Makefile.am: Add new files.
  637. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
  638. * Makefile.in: Rebuilt.
  639. 1999-08-17 Tom Tromey <tromey@cygnus.com>
  640. * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
  641. nano.
  642. * include/quick-threads.h (_Jv_CondWait): Don't round to 0
  643. inappropriately.
  644. 1999-08-16 Tom Tromey <tromey@cygnus.com>
  645. * configure: Rebuilt.
  646. * configure.in: Set DIVIDESPEC to empty string if compiler does
  647. not support -fuse-divide-subroutine.
  648. 1999-08-14 Per Bothner <per@bothner.com>
  649. * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
  650. * java/lang/natClass.cc (initializeClass): Likewise.
  651. * java/lang/ClassLoader.java (resolveClass0): New static method.
  652. (resolveClass): Call resolveClass0.
  653. (findSystemClass): No longer static.
  654. 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
  655. * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
  656. 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
  657. * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
  658. as long.
  659. Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  660. * Makefile: Rebuilt.
  661. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
  662. builds.
  663. * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
  664. present.
  665. * configure: Rebuilt.
  666. * configure.in: Properly align --help output, fix capitalization
  667. and punctuation.
  668. * acinclude.m4: Likewise.
  669. 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
  670. * include/javaprims.h (_Jv_word, _Jv_word2): New types.
  671. * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
  672. (_Jv_callInterpretedMethod): Unused. Remove.
  673. (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
  674. Use ffi_raw.
  675. * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
  676. (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
  677. * boehm.cc (_Jv_MarkObj): Use _Jv_word.
  678. * interpret.cc: use _Jv_word.
  679. * defineclass.cc: use_Jv_word.
  680. * resolve.cc: Use _Jv_word.
  681. (_Jv_ResolvePoolEntry): Return _Jv_word.
  682. * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
  683. * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
  684. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
  685. Change comment.
  686. Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  687. * configure: Rebuilt.
  688. * configure.in (sched_yield): Try librt first, then libposix4.
  689. Add -lrt, -lposix4 to THREADSPEC.
  690. 1999-08-08 Anthony Green <green@cygnus.com>
  691. * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
  692. 1999-08-08 Anthony Green <green@cygnus.com>
  693. * defineclass.cc (_Jv_VerifyClassName): Verify array names
  694. correctly.
  695. 1999-08-08 Anthony Green <green@cygnus.com>
  696. * gij.cc: New file.
  697. * include/config.h.in: Rebuilt.
  698. * acconfig.h: Add INTERPRETER.
  699. * Makefile.in: Rebuilt.
  700. * Makefile.am (libffi_files): Identify the libffi object files for
  701. inclusion in libgcj.
  702. (LIBFFIINCS): Define.
  703. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
  704. Dummy definition for configurations without an interpreter.
  705. * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
  706. java::lang::Boolean constructor.
  707. * include/java-interp.h: Always include java-cpool.h.
  708. * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
  709. when INTERPRETER not defined.
  710. * java/lang/Class.h (finalize): Define.
  711. * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
  712. IOException from File.getCanonicalPath.
  713. (getStream): Likewise.
  714. * NEWS: More news.
  715. * THANKS: More thanks.
  716. 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
  717. * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
  718. jchar type.
  719. (_Jv_PrepareClass): Allow non-abstract classes to
  720. have abstract subclasses.
  721. (_Jv_ResolvePoolEntry): Revert subclass check for protected
  722. fields and methods.
  723. * interpret.cc (continue1/perform_invoke): Don't sign extend
  724. uint16 return val.
  725. (continue1/lshl,lshr): Push long, not int.
  726. (continue1/ulshr): Use UINT64, not long long.
  727. * defineclass.cc (handleFieldsEnd): Handle case when all fields
  728. are static.
  729. * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
  730. * java/lang/FirstThread.java (run): Add top-level exception
  731. handler.
  732. (run0): Renamed from run.
  733. 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
  734. * configure.in (--with-interpreter): Added.
  735. * include/config.h.in (INTERPRETER): Added.
  736. * java/lang/ClassLoader.java: File replaced.
  737. * java/lang/VMClassLoader.java: New file.
  738. * java/lang/natClassLoader.cc: New file.
  739. * gnu/gcj/runtime/MethodInvocation.java: New file.
  740. * gnu/gcj/util/path/SearchPath.java: New file.
  741. * gnu/gcj/util/path/PathEntry.java: New file.
  742. * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
  743. * gnu/gcj/util/path/ZipPathEntry.java: New file.
  744. * gnu/gcj/util/path/URLPathEntry.java: New file.
  745. * gnu/gcj/util/path/CacheEntry.java: New file.
  746. * include/java-interp.h: New file.
  747. * include/java-cpool.h: New file.
  748. * include/java-insns.h: New file.
  749. * defineclass.cc: New file.
  750. * interpret.cc: New file.
  751. * resolve.cc: New file.
  752. * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
  753. _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
  754. _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
  755. (finalize): New.
  756. (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
  757. STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
  758. prefix.
  759. (initializeClass): Use new JV_ prefixed names. Also, call
  760. ClassLoader::resolveClass instead of _Jv_ResolveClass.
  761. * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
  762. JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
  763. JV_STATE_LINKED): New.
  764. (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
  765. _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
  766. (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
  767. _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
  768. _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
  769. _Jv_InterpMethodInvocation): New friends for interpreter.
  770. (finalize): New.
  771. (CONSTANT_Class, CONSTANT_String, etc.): Moved to
  772. include/java-cpool.h and renamed with JV_ prefix.
  773. * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
  774. decls.
  775. (_Jv_UnregisterClass): New decl.
  776. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
  777. class loader argument.
  778. (_Jv_FindClass): Use class loader.
  779. * prims.cc (_Jv_makeUtf8Const): New function.
  780. (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
  781. (_Jv_NewPrimArray): Ditto.
  782. (_Jv_FindClassFromSignature): Ditto.
  783. * java/lang/reflect/natArray.cc (newInstance): Ditto.
  784. * java/lang/reflect/natMethod.cc (getType): Ditto.
  785. * include/java-field.h (_Jv_Field::isRef): Make robust for
  786. non-resolved contexts.
  787. * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
  788. Also, don't mark class->next field.
  789. * java/lang/VirtualMachineError.java: Added FIXME note.
  790. * configure.in (INTERPSPEC): New spec.
  791. * libgcj.spec.in: Added INTERPSPEC.
  792. * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
  793. gnu/gcj/runtime/MethodInvocation.
  794. (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
  795. (ordinary_java_source_files): Added above mentioned java classes.
  796. * configure: Rebuilt.
  797. * Makefile.in: Rebuilt.
  798. 1999-08-06 Tom Tromey <tromey@cygnus.com>
  799. * configure: Rebuilt.
  800. * configure.in: Look for sched_yield in -lrt.
  801. 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
  802. * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
  803. ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
  804. SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
  805. locales.
  806. (toString): Print correctly when `country' is empty.
  807. 1999-08-04 Per Bothner <per@bothner.com>
  808. * configure.in: Also do AC_SUBST for DIVIDESPEC.
  809. 1999-08-02 Tom Tromey <tromey@cygnus.com>
  810. * aclocal.m4, configure: Rebuilt for new libtool.
  811. 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
  812. * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
  813. * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
  814. * java/net/ServerSocket.java: Define ANY_IF.
  815. (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
  816. all network interfaces.
  817. * java/net/DatagramSocket.java (DatagramSocket): ditto.
  818. * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
  819. null.
  820. * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
  821. instead of null.
  822. * java/io/natFile.cc (performMkdir): Remove FIXME.
  823. * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
  824. 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
  825. * configure.in: Check for bstring.h.
  826. * configure, include/config.h.in: Rebuilt.
  827. * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
  828. * java/net/natPlainSocketImpl.cc: Likewise.
  829. 1999-07-31 Tom Tromey <tromey@cygnus.com>
  830. * NEWS: Likewise.
  831. * THANKS: New file.
  832. 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
  833. * configure.in: Check for struct hostent_data and need for
  834. -D_REENTRANT for gethostbyname_r declaration.
  835. * java/net/natInetAddress.cc: Define _REENTRANT if needed.
  836. (lookup): Use hostent_data for fixed_buffer.
  837. * configure, include/config.h.in: Rebuilt.
  838. 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
  839. * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
  840. available. Don't cast memmove args to (void*).
  841. * configure.in: Do not abort if memmove is not available.
  842. 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
  843. * java/lang/natString.cc (substring): optimize where substring is
  844. entire String.
  845. * java/io/File.java (getName): don't return separator with file name.
  846. * java/io/natFile.cc (attr): fix overflow.
  847. Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
  848. * mauve-libgcj: Disable Object Serialization tests.
  849. 1999-07-20 Warren Levy <warrenl@cygnus.com>
  850. * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
  851. Default to using PlainDatagramSocketImpl.
  852. * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
  853. 1999-07-19 Tom Tromey <tromey@cygnus.com>
  854. * include/stamp-h.in: New file.
  855. 1999-07-12 Tom Tromey <tromey@cygnus.com>
  856. * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
  857. _UINT32_T.
  858. 1999-07-07 Andrew Haley <aph@cygnus.com>
  859. * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
  860. bytes to make it point after the instruction where the trap
  861. occurred.
  862. (HANDLE_DIVIDE_OVERFLOW): Ditto.
  863. 1999-07-07 Tom Tromey <tromey@cygnus.com>
  864. * mauve-libgcj: Explicitly enable formerly disabled java.text
  865. tests.
  866. * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
  867. again.
  868. Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
  869. * java/net/URL.java (equals): Compare strings using String.equals.
  870. * java/net/URL.java (sameFile): Ditto.
  871. 1999-07-02 Warren Levy <warrenl@cygnus.com>
  872. * configure: Rebuilt.
  873. * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
  874. * include/config.h.in: Rebuilt.
  875. * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
  876. (mcastGrp): Updated FIXME comments.
  877. (setOption): Fixed typo.
  878. (getOption):Implemented IP_MULTICAST_IF.
  879. 1999-07-02 Warren Levy <warrenl@cygnus.com>
  880. * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
  881. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
  882. (getTimeToLive): Implemented.
  883. (setOption): Implemented IP_MULTICAST_IF.
  884. 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
  885. * java/lang/String.java (toString): Check for this == null and throw
  886. NullPointerException.
  887. 1999-07-01 Warren Levy <warrenl@cygnus.com>
  888. * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
  889. to count and revised comments to match.
  890. * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
  891. * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
  892. * gnu/gcj/convert/Input_SJIS.java (read): ditto.
  893. * gnu/gcj/convert/Input_UTF8.java (read): ditto.
  894. * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
  895. * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
  896. 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
  897. * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
  898. properly as count rather than outlength.
  899. * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
  900. output on overflow rather than buffer fill.
  901. * java/io/BufferedReader.java (fill): Don't clear out the buffer
  902. if markPos is 0 and there is still room in the buffer.
  903. 1999-07-01 Andrew Haley <aph@cygnus.com>
  904. * include/i386-signal.h: Replace sigaction () with __sigaction ().
  905. This is a workaround for a bug in glibc's pthreads package which
  906. doesn't deliver any sigcontext information to a signal handler.
  907. 1999-06-24 Tom Tromey <tromey@cygnus.com>
  908. * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
  909. * java/lang/fdlibm.h (HUGE): Conditionally define.
  910. Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
  911. * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
  912. * java/lang/e_log.c: Don't use __uint32_t.
  913. 1999-05-27 Eric Christopher <echristo@cygnus.com>
  914. * configure: Rebuilt
  915. * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
  916. * acconfig.h: Rebuilt
  917. * include/config.h.in: Rebuilt
  918. * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
  919. java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
  920. e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
  921. java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
  922. k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
  923. java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
  924. s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
  925. and namespace collision with __uint32_t
  926. 1999-06-23 Tom Tromey <tromey@cygnus.com>
  927. * java/util/zip/InflaterInputStream.java (read): Throw
  928. ZipException if inflater throws a DataFormatException.
  929. 1999-06-23 Warren Levy <warrenl@cygnus.com>
  930. * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
  931. * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
  932. * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
  933. is not final per JDK.
  934. * java/util/PropertyResourceBundle.java (handleGetObject): Method is
  935. public per JDK.
  936. * java/util/zip/DataFormatException.java: Class extends Exception.
  937. * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
  938. * java/util/zip/ZipEntry.java: Class implements ZipConstants.
  939. * java/util/zip/ZipInputStream.java: ditto.
  940. (closeEntry): Changed method name to match JDK spec.
  941. 1999-06-21 Tom Tromey <tromey@cygnus.com>
  942. * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
  943. From Jeff Sturm.
  944. * Makefile.in: Rebuilt.
  945. * Makefile.am (toolexeclibdir): Define as libdir when
  946. appropriate.
  947. * configure: Rebuilt.
  948. * configure.in (USE_LIBDIR): New conditional.
  949. 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
  950. * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
  951. hostname in returned InetAddress objects.
  952. (getLocalHostname): Fix typo.
  953. * java/net/InetAddress.java (getByName): Set hostname on return
  954. object.
  955. (getLocalHost): Call lookup directly to ensure that a fully-qualified
  956. name is returned.
  957. 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
  958. * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
  959. interfaces if host==NULL.
  960. (accept): Throw message with InterruptedIOException.
  961. (getOption): Cache localAddress.
  962. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
  963. 'address' for DatagramSocket.
  964. (setTimeToLive): Fix compiler warnings.
  965. (getOption): Cache localAddress.
  966. * java/net/Socket.java (getLocalAddress): Don't need local
  967. InetAddress object. Add FIXME comment about calling checkConnect().
  968. * java/net/ServerSocket.java (ServerSocket(int)): Initialize
  969. connection queue to 50 as per JDK 1.2 docs.
  970. (ServerSocket(int,int)): Listen on all network interfaces by
  971. default, per JDK 1.2 docs.
  972. * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
  973. Add localAddress caching.
  974. 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
  975. * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
  976. to JDK 1.2 docs.
  977. (write(byte[],int,int)): ditto.
  978. 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
  979. * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
  980. 1999-06-11 Warren Levy <warrenl@cygnus.com>
  981. * mauve-libgcj: Activated java.net Mauve tests.
  982. 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
  983. * java/net/natInetAddress.cc (aton): Fix typos.
  984. (lookup): Use a bigger buffer size for gethostbyname_r on all
  985. versions of glibc. Updated FIXME comment explaining this.
  986. Modified while loops to not set herr = ERANGE to work around glibc
  987. problems. Use user specified hostname in InetAddress result when
  988. available (consistent with JDK).
  989. 1999-06-10 Warren Levy <warrenl@cygnus.com>
  990. * java/io/FileDescriptor.java (FileDescriptor(String, int)):
  991. Throw FileNotFoundException instead of IOException.
  992. (open): ditto.
  993. * java/io/FileInputStream.java (FileInputStream): Doesn't throw
  994. IOException.
  995. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
  996. in static field name.
  997. * java/text/DecimalFormat.java: Throw IllegalArgumentException
  998. throughout rather than ParseException.
  999. 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
  1000. * java/lang/Runtime.java (exec): Convert prog name and arguments
  1001. to string array.
  1002. * java/lang/natPosixProcess.cc (startProcess): Fix typo in
  1003. environment array conversion. Preserve current environment if envp
  1004. not passed. Preserve PATH unless explicitly specified.
  1005. * java/io/DataInputStream.java (readLine): Fix case where '\r' is
  1006. followed by EOF. Set a flag when a line is terminated by '\r' and
  1007. ignore following '\n' if set.
  1008. 1999-06-02 Warren Levy <warrenl@cygnus.com>
  1009. * java/net/URL.java (URL(URL,String)): Initialize port to -1.
  1010. Ignore context if spec is an absolute URL. Fix braindead
  1011. string comparison.
  1012. (hashCode): Use JDK 1.2 style algorithm.
  1013. * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
  1014. context URL properly.
  1015. 1999-05-30 Anthony Green <green@cygnus.com>
  1016. * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
  1017. correctly. Clean up "/../" and "/./" path fragments.
  1018. 1999-05-28 Warren Levy <warrenl@cygnus.com>
  1019. * java/net/DatagramSocket.java (laddr): Removed.
  1020. (DatagramSocket): Removed attempts to get or set laddr if null.
  1021. (getLocalAddress): Reimplemented per spec.
  1022. * java/net/MulticastSocket.java (setTimeToLive): Throw exception
  1023. when ttl is 0.
  1024. (joinGroup): Throw NullPointerException if any argument is null.
  1025. (leaveGroup): ditto.
  1026. * java/net/PlainDatagramSocketImpl.java: Updated comments.
  1027. * java/net/PlainSocketImpl.java (timeout): Added.
  1028. (getInputStream): Added FIXME comment on how to support timeouts
  1029. for TCP.
  1030. * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
  1031. * java/net/Socket.java: Added FIXME comments to identify
  1032. conflicting specs between the JCL and JDK 1.2 documents.
  1033. * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
  1034. if host is null. Get localport value resolved by kernel if bind
  1035. lport is 0.
  1036. (receive): Implemented support for timeouts in UDP.
  1037. (setOption): Implemented based on natPlainSocketImpl version.
  1038. (getOption): ditto.
  1039. * java/net/natPlainSocketImpl.cc (bind): Get localport value
  1040. resolved by kernel if bind lport is 0.
  1041. (connect): Get localport value resolved by kernel if bind wasn't
  1042. done to set localport.
  1043. (accept): Implemented support for timeouts for ServerSocket.
  1044. (setOption): Save value for SO_TIMEOUT.
  1045. (getOption): Return timeout for SO_TIMEOUT.
  1046. 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
  1047. * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
  1048. * java/net/DatagramSocketImpl.java (getOption): Made abstract.
  1049. (setOption): Made abstract.
  1050. * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
  1051. to avoid cpp conflicts in native code.
  1052. * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
  1053. cpp conflicts in native code.
  1054. * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
  1055. * java/net/Socket.java (getLocalAddress): Implemented.
  1056. (setTcpNoDelay): Implemented.
  1057. (getTcpNoDelay): Implemented.
  1058. (setSoLinger): Implemented.
  1059. (getSoLinger): Implemented.
  1060. (getSoTimeout): Verify class type.
  1061. (setSendBufferSize): Implemented.
  1062. (getSendBufferSize): Implemented.
  1063. (setReceiveBufferSize): Implemented.
  1064. (getReceiveBufferSize): Implemented.
  1065. (toString): Prepended "Socket".
  1066. * java/net/SocketImpl.java (toString): Rewritten.
  1067. (getOption): Made abstract.
  1068. (setOption): Made abstract.
  1069. * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
  1070. (setOption): Implemented.
  1071. (getOption): Implemented.
  1072. 1999-05-26 Warren Levy <warrenl@cygnus.com>
  1073. * java/net/DatagramSocket.java (DatagramSocket): Get local host
  1074. address when null. Set SO_REUSEADDR for multicasts.
  1075. (getSoTimeout): Implemented.
  1076. (setSoTimeout): Implemented.
  1077. * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
  1078. * java/net/MulticastSocket.java (getInterface): Implemented.
  1079. (setInterface): Implemented.
  1080. (setTimeToLive): Check for invalid ttl.
  1081. (joinGroup): Verify multicast address and security.
  1082. (leaveGroup): Verify multicast address and security.
  1083. (send): Implemented.
  1084. * java/net/PlainDatagramSocketImpl.java (timeout): Added.
  1085. (iface): Added.
  1086. (ttl): Added.
  1087. (setOption): Added.
  1088. (getOption): Added.
  1089. (mcastGrp): Added.
  1090. (getTTL): Implemented as non-native.
  1091. (setTTL): ditto.
  1092. (join): ditto.
  1093. (leave): ditto.
  1094. * java/net/ServerSocket.java (setSoTimeout): Implemented.
  1095. (getSoTimeout): Implemented.
  1096. (setSocketFactory): Made synchronized.
  1097. * java/net/Socket.java (setSoTimeout): Implemented.
  1098. (getSoTimeout): Implemented.
  1099. (close): Made synchronized.
  1100. (setSocketImplFactory): Made synchronized.
  1101. * java/net/SocketImpl.java: Implement SocketOptions interface.
  1102. * java/net/natInetAddress.cc: Corrected module name at top of file.
  1103. * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
  1104. (bind): Added FIXME.
  1105. (peek): Implemented.
  1106. (setTTL): Removed.
  1107. (getTTL): Removed.
  1108. (join): Removed.
  1109. (leave): Removed.
  1110. (mcastGrp): Added.
  1111. (setOption): Implemented for SO_REUSEADDR.
  1112. (getOption): Implemented for SO_REUSEADDR.
  1113. 1999-05-24 Tom Tromey <tromey@cygnus.com>
  1114. * java/util/ResourceBundle.java (getBundle): Throw
  1115. NullPointerException if baseName is null.
  1116. 1999-05-22 Tom Tromey <tromey@cygnus.com>
  1117. * java/util/zip/ZipInputStream.java (fill): New method.
  1118. (compressed_len): New instance variable.
  1119. (getNextStream): Set it.
  1120. (read): Reset inflater on EOF. Only read via `super' if entry is
  1121. deflated.
  1122. (skip): Only skip via `super' if entry is deflated.
  1123. * java/util/zip/Deflater.java (last_input_count): Removed.
  1124. * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
  1125. is length 0.
  1126. (needsInput): Don't use last_input_count.
  1127. (setInput): Don't set last_input_count.
  1128. * java/util/zip/natInflater.cc (getRemaining): Return correct
  1129. result.
  1130. (inflate): Return 0 if input array is length 0.
  1131. (setInput): Don't set last_input_count.
  1132. * java/util/zip/Inflater.java (last_input_count): Removed.
  1133. 1999-05-21 Tom Tromey <tromey@cygnus.com>
  1134. * Makefile.in: Rebuilt.
  1135. * Makefile.am (INCLUDES): Added $(ZINCS).
  1136. * configure: Rebuilt.
  1137. * configure.in (ZINCS): New subst.
  1138. 1999-05-21 Andrew Haley <aph@cygnus.com>
  1139. * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
  1140. to signal options to allow the same exceptions to be rethrown
  1141. later.
  1142. 1999-05-20 Andrew Haley <aph@cygnus.com>
  1143. * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
  1144. added.
  1145. * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
  1146. (INIT_FPE): Exception string made more informative.
  1147. * include/sparc-signal.h (INIT_FPE): Exception string made more
  1148. informative.
  1149. * testsuite/libjava.lang/Divide_1.java: New file.
  1150. * testsuite/libjava.lang/Divide_1.out: New file.
  1151. 1999-05-19 Tom Tromey <tromey@cygnus.com>
  1152. * aclocal.m4, configure: Rebuilt.
  1153. * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
  1154. * java/util/zip/GZIPOutputStream.java (write(byte[])): New
  1155. method.
  1156. * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
  1157. Include <stdlib.h>.
  1158. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
  1159. Include <stdlib.h>.
  1160. (update): Fail in default case. Always initialize `strat'.
  1161. * mauve-libgcj: Enable java.util.zip.
  1162. 1999-05-18 Warren Levy <warrenl@cygnus.com>
  1163. * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
  1164. DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
  1165. PlainDatagramSocketImpl.java, and SocketOptions.java.
  1166. (nat_source_files): Added natPlainDatagramSocketImpl.cc.
  1167. * Makefile.in: Rebuilt.
  1168. * java/net/DatagramPacket.java: New file.
  1169. * java/net/DatagramSocket.java: New file.
  1170. * java/net/DatagramSocketImpl.java: New file.
  1171. * java/net/MulticastSocket.java: New file.
  1172. * java/net/PlainDatagramSocketImpl.java: New file.
  1173. * java/net/SocketOptions.java: New file.
  1174. * java/net/natPlainDatagramSocketImpl.cc: New file.
  1175. 1999-05-18 Tom Tromey <tromey@cygnus.com>
  1176. * java/util/zip/ZipOutputStream.java (level): Initial value is
  1177. Deflater.DEFAULT_COMPRESSION.
  1178. (close): New method.
  1179. (closeEntry): Likewise.
  1180. (finish): Likewise.
  1181. (put_version): Likewise.
  1182. (write_entry): Likewise.
  1183. (put2, put4): Now return `int'.
  1184. (comment): Default to empty string.
  1185. (bytes_written): New instance variable.
  1186. (chain): Likewise.
  1187. * java/util/zip/ZipEntry.java (setComment): Limit length of
  1188. comment string.
  1189. (setCrc): Check CRC validity.
  1190. (setExtra): Check argument validity.
  1191. (setMethod): Likewise.
  1192. (setSize): Likewise.
  1193. (ZipEntry): Likewise.
  1194. * include/javaprims.h: Updated namespace declarations.
  1195. * Makefile.in: Rebuilt.
  1196. * Makefile.am (ordinary_java_source_files): Mention new files.
  1197. (nat_source_files): Likewise.
  1198. * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
  1199. EOFException.
  1200. (read4): Likewise.
  1201. (getInputStream): Handle compressed entries.
  1202. * java/util/zip/GZIPOutputStream.java: New file.
  1203. * java/util/zip/GZIPInputStream.java: New file.
  1204. * java/util/zip/DataFormatException.java: New file.
  1205. * java/util/zip/CheckedInputStream.java: New file.
  1206. * java/util/zip/CheckedOutputStream.java: New file.
  1207. * java/util/zip/InflaterInputStream.java: Implemented.
  1208. * java/util/zip/natInflater.cc: New file.
  1209. * java/util/zip/Deflater.java: Implemented.
  1210. * java/util/zip/natDeflater.cc: New file.
  1211. * java/util/zip/DeflaterOutputStream.java: Implemented.
  1212. * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
  1213. ZipException, not IOException.
  1214. * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
  1215. not IOException.
  1216. 1999-05-17 Tom Tromey <tromey@cygnus.com>
  1217. * java/lang/natSystem.cc (init_properties): URL now points to
  1218. sourceware.
  1219. 1999-05-12 Per Bothner <bothner@cygnus.com>
  1220. * java/util/Calendar.java (set): First call computeFields if needed.
  1221. * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
  1222. 1999-05-12 Tom Tromey <tromey@cygnus.com>
  1223. * configure: Rebuilt.
  1224. * configure.in: Look for -ldl when using the Boehm collector.
  1225. Look for sched_yield in -lposix4.
  1226. 1999-05-12 Per Bothner <bothner@cygnus.com>
  1227. * java/io/File.java (mkdirs): Handle a null parent directory.
  1228. 1999-05-12 Tom Tromey <tromey@cygnus.com>
  1229. * include/javaprims.h: Updated namespace declarations.
  1230. * classes.pl (scan): Uniquify class list.
  1231. * Makefile.in, configure: Rebuilt.
  1232. * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
  1233. (built_java_source_files): New macro.
  1234. (nat_headers): Added built_java_source_files.
  1235. (javao_files): Likewise.
  1236. (EXTRA_libgcj_la_SOURCES): Likewise.
  1237. (libgcj.zip): Create built class files.
  1238. ($(built_java_source_files:.java=.class)): New target.
  1239. (jv_convert_LDADD): Added -L$(here)/.libs.
  1240. * configure.in: Create links for ConcreteProcess.java and
  1241. natConcreteProcess.cc.
  1242. * java/lang/Runtime.java (exec): Create a ConcreteProcess.
  1243. * java/lang/natEcosProcess.cc: New file.
  1244. * java/lang/EcosProcess.java: New file.
  1245. * java/lang/PosixProcess.java: New file.
  1246. * java/lang/natPosixProcess.cc: New file.
  1247. 1999-05-12 Warren Levy <warrenl@cygnus.com>
  1248. * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
  1249. * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
  1250. * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
  1251. (connect): Throw ConnectException.
  1252. 1999-05-11 Tom Tromey <tromey@cygnus.com>
  1253. * Makefile.in: Rebuilt.
  1254. * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
  1255. * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
  1256. our libraries.
  1257. * Makefile.in: Rebuilt.
  1258. * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
  1259. and it causes problems with libtool.
  1260. * Makefile.in, configure: Rebuilt.
  1261. * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
  1262. (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
  1263. (jv_convert_DEPENDENCIES): Added ZDEPS.
  1264. * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
  1265. directory.
  1266. (THREADSPEC): Added `-L' to point to qthreads build directory.
  1267. (ZLIBS): New subst.
  1268. (ZDEPS): New subst.
  1269. * configure, Makefile.in: Rebuilt.
  1270. * Makefile.am (toolexeclib_DATA): New macro.
  1271. * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
  1272. Recognize --with-system-zlib.
  1273. (GCSPEC): New subst.
  1274. (THREADSPEC): New subst.
  1275. (SYSTEMSPEC): New subst.
  1276. (ZLIBSPEC): New subst.
  1277. * libgcj.spec.in: New file.
  1278. 1999-05-10 Tom Tromey <tromey@cygnus.com>
  1279. * java/io/InputStreamReader.java (read): If length is 0, return
  1280. 0. Reset `wpos' and `wcount' when buffer has been filled and
  1281. emptied.
  1282. * java/util/Properties.java (save): Removed `FIXME' comment.
  1283. (load): Invalid characters in \u now treated as terminators.
  1284. Make sure to append character resulting from `\' handling.
  1285. Cast to `char' when appending to key or value.
  1286. (skip_ws): Inverted test for whitespace.
  1287. * java/io/RandomAccessFile.java (RandomAccessFile): Removed
  1288. `FIXME' comment.
  1289. (readLine): Likewise.
  1290. (readFully): Implemented.
  1291. * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
  1292. * java/awt/natToolkit.cc: Added copyright header.
  1293. * java/util/zip/InflaterInputStream.java: Added copyright header.
  1294. * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
  1295. comment.
  1296. * java/io/SequenceInputStream.java (SequenceInputStream): Removed
  1297. `FIXME' comment.
  1298. (getNextStream): Likewise.
  1299. * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
  1300. locale.toString().
  1301. (getBundle): Don't explicitly throw null pointer exception.
  1302. * gnu/gcj/RawData.java: Added copyright header.
  1303. * include/jni.h (_Jv_va_list): Always define as va_list.
  1304. 1999-05-9 Anthony Green <green@cygnus.com>
  1305. * java/text/DateFormat.java (computeInstance): Separate time
  1306. and date styles.
  1307. (getDateTimeInstance): Ditto.
  1308. (getDateTimeInstance(int,int)): New method.
  1309. * Makefile.in: Rebuilt.
  1310. * Makefile.am (ordinary_java_source_files): Add new classes.
  1311. * java/util/PropertyResourceBundle.java: New file.
  1312. * gnu/gcj/util/EnumerationChain.java: New file.
  1313. 1999-05-07 Tom Tromey <tromey@cygnus.com>
  1314. * acconfig.h (GCJVERSION): New undef.
  1315. * java/lang/natSystem.cc (init_properties): Define java.version,
  1316. java.class.version, os.name, os.arch, os.version.
  1317. Include <sys/utsname.h> if required.
  1318. * configure: Rebuilt.
  1319. * configure.in: Compute and define GCJVERSION.
  1320. * java/lang/natSystem.cc (default_file_encoding): Now static.
  1321. * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
  1322. * libtool-version: New file.
  1323. * Makefile.in: Rebuilt.
  1324. * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
  1325. -release.
  1326. * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
  1327. Comment out FieldPosition, ParsePosition, and SimpleDateFormat
  1328. again (oops).
  1329. * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
  1330. (we pick those up already).
  1331. 1999-05-05 Per Bothner <bothner@cygnus.com>
  1332. * java/awt/*: Check a bunch of classes, a few complete, but mostly
  1333. stub classes. (This is enough to get Kawa to compile against libgcj.)
  1334. * gnu/gcj/RawData.java: New class.
  1335. * doc/cni.sgml: Document RawData.
  1336. * java/util/zip/InflaterInputStream.java: New stub class.
  1337. * java/util/zip/ZipInputStream.java: New class. Partly works.
  1338. * java/util/zip/ZipConstants.java: Add two (internal) constants.
  1339. * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
  1340. * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
  1341. * java/util/zip/ZipOutputStream.java: Start implementation.
  1342. * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
  1343. (default_file_encoding): New global, initial value is above macro.
  1344. (init_properties): Default file.encoding to default_file_encoding.
  1345. * Makefile.am: Add new classes.
  1346. 1999-05-05 Tom Tromey <tromey@cygnus.com>
  1347. * Makefile.in: Rebuilt.
  1348. * Makefile.am (CLEANFILES): Don't mention $(class_files).
  1349. (clean-local): New target
  1350. * java/lang/natRuntime.cc: Include <ltdl.h> if required.
  1351. (load, loadLibrary): Now native.
  1352. (init): New method.
  1353. * java/lang/Runtime.java (load, loadLibrary): Now native.
  1354. (init): New native method.
  1355. (Runtime): Use init.
  1356. * prims.cc: Include <ltdl.h> if required.
  1357. (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
  1358. 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
  1359. * configure.in: Switch from irix threads to posix threads
  1360. * configure: Regenerate.
  1361. 1999-04-30 Tom Tromey <tromey@cygnus.com>
  1362. * Makefile.in: Rebuilt.
  1363. * Makefile.am (jv_convert_LDADD): Added -lgcc.
  1364. 1999-04-29 Tom Tromey <tromey@cygnus.com>
  1365. * java/lang/StringBuffer.java (ensureCapacity): Don't resize
  1366. vector when shared.
  1367. * java/util/Locale.java (Locale(String,String)): Implement in
  1368. terms of 3-argument version; variant now defaults to empty
  1369. string.
  1370. (toString): Assume variant is not null.
  1371. (equals): Assume all strings are not null.
  1372. (Locale): Throw NullPointerException if any argument is null.
  1373. * java/util/ResourceBundle.java (getBundle): Don't try the base
  1374. name; now implicit in partialGetBundle call.
  1375. (trySomeGetBundle): Search for parent bundles and call setParent
  1376. as required.
  1377. (partialGetBundle): Added `langStop' argument. Use
  1378. `Locale.toString' to compute bundleName.
  1379. (resource_cache): New static field.
  1380. (partialGetBundle): Cache the returned resource bundle. Now
  1381. synchronized.
  1382. * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
  1383. missing `<'.
  1384. * mauve-libgcj: Enable Collator and RuleBasedCollator.
  1385. * java/text/natCollator.cc (decomposeCharacter): `base' now
  1386. `const'.
  1387. * Makefile.in: Rebuilt.
  1388. * Makefile.am (ordinary_java_source_files): Added
  1389. CollationElementIterator, CollationKey, Collator,
  1390. RuleBasedCollator.
  1391. (nat_source_files): Added natCollator.cc.
  1392. * java/text/RuleBasedCollator.java (ceiNext): No longer static.
  1393. (compare): Pass `this' to CollationElementIterator constructor.
  1394. (getCollationElementIterator): Likewise.
  1395. (ceiNext): Fix off-by-one error when finding initial substring.
  1396. (next): Correctly mask off bits when computing return value.
  1397. Fixed return values when one string is shorter than the other.
  1398. * java/text/CollationElementIterator.java (collator): New field.
  1399. (CollationElementIterator): Added collator argument.
  1400. (next): Call ceiNext on collator object.
  1401. 1999-04-26 Tom Tromey <tromey@cygnus.com>
  1402. * natCollator.cc: New file.
  1403. * java/util/GregorianCalendar.java (setDefaultTime): New method.
  1404. (GregorianCalendar): Use it in all constructors.
  1405. * java/util/Calendar.java (Calendar): Changed argument name to
  1406. `zone' to match code.
  1407. * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
  1408. * java/text/CollationKey.java: New file.
  1409. * java/text/CollationElementIterator.java: New file.
  1410. * java/text/Collator.java: New file.
  1411. * java/text/RuleBasedCollator.java: New file.
  1412. * Makefile.in: Rebuilt.
  1413. * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
  1414. (jv_convert_LDADD): Explicltly add -lm -lc.
  1415. 1999-04-26 Tom Tromey <tromey@cygnus.com>
  1416. * configure, Makefile.in: Rebuilt.
  1417. * configure.in: Added AM_PROG_LIBTOOL.
  1418. (GCOBJS): Use `.lo' form of files.
  1419. (THREADOBJS): Likewise.
  1420. (GCDEPS): Use `.la' form of library.
  1421. (GCLIBS): Set to be the same as GCDEPS.
  1422. (THREADDEPS): Use `.la' form of library.
  1423. (THREADLIBS): Set to be the same as THREADDEPS.
  1424. * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
  1425. toolexeclib_LIBRARIES.
  1426. (libgcj_la_SOURCES): Renamed for libtoolization.
  1427. (EXTRA_libgcj_la_SOURCES): Likewise.
  1428. (libgcj_la_DEPENDENCIES): Likewise.
  1429. (libgcj_la_LIBADD): Likewise.
  1430. ($(nat_files)): Use LTCXXCOMPILE.
  1431. ($(c_files)): Use LTCOMPILE.
  1432. (GCJCOMPILE): New macro.
  1433. (.class.o): Use it.
  1434. (.java.o): Likewise.
  1435. ($(javao_files)): Likewise.
  1436. (jv_convert_LINK): Use LIBTOOL.
  1437. (nat_files): Use `.lo' files.
  1438. (c_files): Likewise.
  1439. (javao_files): Likewise.
  1440. (.class.lo): Renamed.
  1441. (.java.lo): Likewise.
  1442. ($(nat_files)): Depend on %.lo.
  1443. ($(c_files)): Likewise.
  1444. ($(javao_files)): Likewise.
  1445. (jv_convert_LDADD): Link against .lo files.
  1446. (jv_convert_DEPENDENCIES): Depend on .lo files.
  1447. (maintainer-check): Depend on libgcj.la, but examine .a file.
  1448. (jv_convert_DEPENDENCIES): Depend on libgcj.la.
  1449. (libgcj_la_LDFLAGS): New macro.
  1450. 1999-04-23 Warren Levy <warrenl@cygnus.com>
  1451. * Makefile.am: Added URLDecoder and URLEncoder.
  1452. * Makefile.in: Rebuilt.
  1453. * java/net/ServerSocket.java (setSocketFactory): Renamed from
  1454. setSocketImplFactory to match spec.
  1455. * java/net/Socket.java (getSoLinger): Changed return type to
  1456. match spec.
  1457. * java/net/URLDecoder.java: New file.
  1458. * java/net/URLEncoder.java: New file.
  1459. 1999-04-21 Tom Tromey <tromey@cygnus.com>
  1460. * java/lang/natString.cc (getBytes): Reverted earlier change and
  1461. applied correct fix from Per Bothner.
  1462. * java/lang/String.java: Don't throw
  1463. UnsupportedEncodingException.
  1464. * java/lang/natString.cc (getBytes): Correctly size result
  1465. buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
  1466. 1999-04-20 Andrew Haley <aph@cygnus.com>
  1467. * include/sparc-signal.h: new file.
  1468. * configure.in: include/sparc-signal.h added.
  1469. * configure: regenerated.
  1470. * prims.cc (JvRunMain): signal handling code rewritten to be more
  1471. portable.
  1472. (catch_segv): ditto.
  1473. (catch_fpe): ditto.
  1474. * include/i386-signal.h: reorganized.
  1475. * include/default-signal.h: reorganized.
  1476. 1999-04-19 Tom Tromey <tromey@cygnus.com>
  1477. * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
  1478. once. From Anthony Green.
  1479. 1999-04-19 Andrew Haley <aph@cygnus.com>
  1480. * Makefile.in: Processed with new automake.
  1481. 1999-04-19 Tom Tromey <tromey@cygnus.com>
  1482. * include/javaprims.h: Removed security namespace.
  1483. 1999-04-20 Anthony Green <green@cygnus.com>
  1484. * java/io/PrintStream.java (println): Remove extra println.
  1485. 1999-04-19 Anthony Green <green@cygnus.com>
  1486. * Makefile.in: Rebuilt.
  1487. * Makefile.am (ordinary_java_source_files): Add new security files.
  1488. * java/security/NoSuchAlgorithmException.java,
  1489. java/security/MessageDigest.java: New files.
  1490. * include/javaprims.h: Add security namespace.
  1491. 1999-04-16 Per Bothner <bothner@cygnus.com>
  1492. * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
  1493. * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
  1494. * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
  1495. * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
  1496. * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
  1497. * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
  1498. * gnu/gcj/convert/natInput_SJIS.cc: New file.
  1499. * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
  1500. * gnu/gcj/convert/natOutput_SJIS.cc: New file.
  1501. * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
  1502. * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
  1503. * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
  1504. * Makefile.am: Various changes for new files and conversions.
  1505. * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
  1506. New overloading, allows greater efficiency.
  1507. * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
  1508. New overloading (for efficiency - avoids copying).
  1509. * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
  1510. * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
  1511. * java/io/InputStreamReader.java (<init>): Set super.in correctly.
  1512. * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
  1513. (writeChars): Don't be quite so eager to flush.
  1514. * java/io/PrintStream.java: Rewrite. Now more similar to
  1515. OutputStreamWriter, using explicit UnicodeToBytes converter.
  1516. Also, autoflush does not need to flush so often.
  1517. * java/lang/natString.cc (getBytes): More efficient algorithm.
  1518. (init(jbyteArray,jint,jint,jstring)): More efficient.
  1519. 1999-04-15 Warren Levy <warrenl@cygnus.com>
  1520. * Makefile.am (ordinary_java_source_files): Added new Connection
  1521. and Handler classes in gnu.gcj.protocol.file package.
  1522. * Makefile.in: Rebuilt.
  1523. * gnu/gcj/protocol/file/Connection.java: New file.
  1524. * gnu/gcj/protocol/file/Handler.java: New file.
  1525. * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
  1526. if doInput allows input.
  1527. (getOutputStream): Check if doOutput allows output.
  1528. * java/net/URLStreamHandler.java (parseURL): Fix indentation.
  1529. 1999-04-14 Tom Tromey <tromey@cygnus.com>
  1530. * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
  1531. buffer larger to work around bug.
  1532. From Bryce McKinlay <bryce@albatross.co.nz>.
  1533. 1999-04-14 Andrew Haley <aph@cygnus.com>
  1534. * java/lang/natDouble.java (doubleToLongBits): ensure that all
  1535. NaNs are always converted to the same long value.
  1536. * java/lang/natFloat.java (floatToIntBits): ditto, but for float
  1537. converted to int.
  1538. 1999-04-13 Tom Tromey <tromey@cygnus.com>
  1539. * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
  1540. instead switch on actual element type.
  1541. * Makefile.in: Rebuilt.
  1542. * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
  1543. 1999-04-13 Andrew Haley <aph@cygnus.com>
  1544. * include/i386-signal.h, include/default-signal.h: New files.
  1545. * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
  1546. handler.
  1547. (catch_fpe): New function.
  1548. * configure.in: Make link to appropriate include/java-signal.h.
  1549. * configure: Rebuilt.
  1550. * Makefile.am: include/java-signal.h added to dependency list.
  1551. * Makefile.in: Rebuilt.
  1552. 1999-04-12 Urban Widmark <urban@svenskatest.se>
  1553. * java/io/DataInputStream.java (readLine): Corrected handling of
  1554. empty lines, from null to "".
  1555. 1999-04-12 Tom Tromey <tromey@cygnus.com>
  1556. * Makefile.in: Rebuilt.
  1557. * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
  1558. * java/lang/natSystem.cc (SystemClass): New define.
  1559. (init_properties): Synchronize.
  1560. 1999-04-08 Geoff Berry <gcb@gnu.org>
  1561. * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
  1562. * natPlainSocketImpl.cc (accept): Add missing else if check
  1563. for AF_INET6.
  1564. 1999-04-08 Tom Tromey <tromey@cygnus.com>
  1565. * java/lang/Long.java (parseLong): Corrected overflow detection
  1566. code.
  1567. * java/lang/Integer.java (parseInt): Corrected overflow detection
  1568. code.
  1569. * java/io/PrintStream.java (print): Handle null string argument.
  1570. (println): Likewise.
  1571. 1999-04-07 Warren Levy <warrenl@cygnus.com>
  1572. * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
  1573. Set count to 0 when InputStreamReader returns -1 for EOF.
  1574. 1999-04-07 Tom Tromey <tromey@cygnus.com>
  1575. * mauve-libgcj: Omit java.text.Collator,
  1576. java.text.RuleBasedCollator.
  1577. 1999-04-06 Tom Tromey <tromey@cygnus.com>
  1578. * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
  1579. IOException from getHttpHeaders().
  1580. (getHeaderFieldKey): Likewise.
  1581. * include/javaprims.h: Regenerated declarations.
  1582. * Makefile.in: Rebuilt.
  1583. * Makefile.am (ordinary_java_source_files): Updated for removed
  1584. files.
  1585. 1999-04-06 Per Bothner <bothner@cygnus.com>
  1586. * java/util/zip/Adler32.java: New class.
  1587. * java/util/zip/CRC32.java: Add working method bodies.
  1588. * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
  1589. * Makefile.in: Re-generate.
  1590. Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
  1591. * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
  1592. from version in removed www hierarchy.
  1593. * gnu/gcj/protocol/http/Handler.java: New file. Copied from
  1594. version in removed www hierarchy.
  1595. * gnu/gcj/www/protocol/http/Connection.java: Removed.
  1596. * gnu/gcj/www/protocol/http/Handler.java: Removed.
  1597. * gnu/gcj/www/protocol/http: Removed dir.
  1598. * gnu/gcj/www/protocol: Removed dir.
  1599. * gnu/gcj/www: Removed dir.
  1600. * java/net/HttpURLConnection.java: Revised comments to indicate
  1601. missing JDK 1.2 methods.
  1602. * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
  1603. hierarchy rather than the gnu/gcj/www/protocol one.
  1604. * java/net/URLConnection.java: Updated status comments.
  1605. (setContentHandler): Look in gnu/gcj/content hierarchy rather than
  1606. the gnu/gcj/www/content one.
  1607. 1999-04-06 Per Bothner <bothner@cygnus.com>
  1608. * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
  1609. The gen-from-JIS program is in $(CONVERT_DIR).
  1610. 1999-04-06 Tom Tromey <tromey@cygnus.com>
  1611. * mauve-libgcj: Renamed from mauve-libjava.
  1612. Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
  1613. * java/net/HttpURLConnection.java (getResponseCode): Implemented.
  1614. (getResponseMessage): Implemented.
  1615. (getResponseVals): New private method.
  1616. * java/net/URLConnection.java (getContent): Implemented.
  1617. (setContentHandler): Convert non-alphabetic/numeric chars per spec.
  1618. 1999-04-05 Tom Tromey <tromey@cygnus.com>
  1619. * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
  1620. (jv_convert_SOURCES): Renamed.
  1621. (EXTRA_jv_convert_SOURCES): Likewise.
  1622. (jv_convert_LDFLAGS): Likewise.
  1623. (jv_convert_LINK): Likewise.
  1624. (jv_convert_LDADD): Likewise.
  1625. (jv_convert_DEPENDENCIES): Likewise.
  1626. * Makefile.in: Rebuilt.
  1627. * Makefile.am (toolexeclibdir): Reference toolexecdir, not
  1628. tooldir.
  1629. Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
  1630. * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
  1631. method for comparison.
  1632. * java/net/URLConnection.java (getContentLength): Implemented.
  1633. (getContentType): Implemented.
  1634. (getContentEncoding): Implemented.
  1635. (getExpiration): Implemented.
  1636. (getDate): Implemented.
  1637. (getLastModified): Implemented.
  1638. (getHeaderFieldInt): Implemented.
  1639. (getHeaderFieldDate): Implemented.
  1640. Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
  1641. * java/net/URLConnection.java (toString): Implemented.
  1642. (setContentHandlerFactory): Implemented.
  1643. (setContentHandler): Wrote new private helper method.
  1644. 1999-04-01 Tom Tromey <tromey@cygnus.com>
  1645. * Makefile.in: Rebuilt.
  1646. * Makefile.am ($(java_source_files:.java=.class): Reverted change
  1647. of 1999-03-31; we always want to build all the .class files.
  1648. Depend on java_source_files, not libgcj.zip.
  1649. (nat_headers): Define in terms of ordinary_java_source_files.
  1650. 1999-03-31 Tom Tromey <tromey@cygnus.com>
  1651. * Makefile.in: Rebuilt.
  1652. * Makefile.am (special_java_source_files): New macro.
  1653. (java_source_files): Use it.
  1654. (ordinary_java_source_files): New macro.
  1655. (java_source_files): Use it.
  1656. ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
  1657. creating headers for those files with hand-maintained headers.
  1658. * include/javaprims.h: Regenerated namespace declarations.
  1659. * classes.pl (scan): Include [0-9] in regexp for matching class
  1660. names; for java.util.zip.CRC32.
  1661. * Makefile.in: Rebuilt.
  1662. * Makefile.am (nat_headers): Redefined to generate all possible
  1663. header files.
  1664. * java/util/zip/ZipException.java: In package java.util.zip, not
  1665. java.net.
  1666. 1999-03-30 Tom Tromey <tromey@cygnus.com>
  1667. * configure: Rebuilt.
  1668. * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
  1669. eh-common.h when not building in tree with gcc.
  1670. * Makefile.in: Rebuilt.
  1671. * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
  1672. $(libgcj_a_OBJECTS)): Changed how we list files that depend on
  1673. nat_headers.
  1674. ($(java_source_files:.java=.class)): New target.
  1675. * Makefile.in: Rebuilt.
  1676. * Makefile.am (java_source_files): Added
  1677. java/net/HttpURLConnection.java and
  1678. gnu/gcj/www/protocol/http/Connection.java.
  1679. Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
  1680. * gnu/gcj/www/protocol/http/Connection.java: New file.
  1681. * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
  1682. * java/net/HttpURLConnection.java: New file.
  1683. * java/net/URLConnection.java (getHeaderField): Implemented default.
  1684. (getHeaderFieldKey): Implemented default method.
  1685. 1999-03-30 Tom Tromey <tromey@cygnus.com>
  1686. * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
  1687. * java/util/zip/Deflater.java: Added copyright header.
  1688. * java/util/zip/CRC32.java: Added copyright header.
  1689. * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
  1690. that it is automatically generated.
  1691. ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
  1692. * gnu/gcj/convert/BytesToUnicode.java,
  1693. gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
  1694. gnu/gcj/convert/Input_EUCJIS.java,
  1695. gnu/gcj/convert/Input_UTF8.java,
  1696. gnu/gcj/convert/JIS0208_to_Unicode.cc,
  1697. gnu/gcj/convert/JIS0212_to_Unicode.cc,
  1698. gnu/gcj/convert/Output_8859_1.java,
  1699. gnu/gcj/convert/Output_JavaSrc.java,
  1700. gnu/gcj/convert/Output_UTF8.java,
  1701. gnu/gcj/convert/UnicodeToBytes.java,
  1702. gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
  1703. * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
  1704. * Makefile.in, configure: Rebuilt.
  1705. * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
  1706. not if test subdir exists.
  1707. (--enable-gcj-classes): Removed; gcj always used to generate
  1708. .class files.
  1709. (JAVA, JAVAC): Removed.
  1710. (--enable-single-compilation, --enable-source-compilation):
  1711. Removed.
  1712. (here): New subst.
  1713. (NATIVE): New conditional.
  1714. * Makefile.am (toolexecdir): Renamed from tooldir to allow
  1715. `install-exec' to work.
  1716. (toolexeclibdir): Likewise.
  1717. (toollib_LIBRARIES): Likewise.
  1718. (AM_MAKEFLAGS): Don't pass tooldir.
  1719. (JAVAC): New macro.
  1720. (javao_files): Redefined.
  1721. (java_source_files): New macro.
  1722. (c_source_files): New macro.
  1723. (c_files): Redefined in terms of c_source_files.
  1724. (java_io_files, java_lang_files, java_net_files, java_text_files,
  1725. java_util_files, gnu_files, java_files): Removed.
  1726. (class_io_files, class_lang_files, class_net_files,
  1727. class_text_files, class_util_files, class_gnu_files, class_files):
  1728. Removed.
  1729. (nat_source_files): New macro.
  1730. (nat_files): Redefined in terms of nat_source_files.
  1731. (EXTRA_libgcj_a_SOURCES): Added c_source_files,
  1732. java_source_files. Removed no-such-file.c.
  1733. (here): Removed.
  1734. (ETAGS_ARGS): Removed.
  1735. (TAGS_DEPENDENCIES): Likewise.
  1736. (libgcj.zip): Depend on java_source_files. Use $(here) and not
  1737. pwd in rule.
  1738. (src_io_files, src_lang_files, src_text_files, src_util_files,
  1739. src_gnu_files): Removed.
  1740. Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
  1741. (BUILT_SOURCES): Removed.
  1742. (header-check): New target.
  1743. (javadir): Removed.
  1744. (noinst_PROGRAMS): New macro.
  1745. ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
  1746. on MAINTAINER_MODE.
  1747. ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
  1748. (gen-from-JIS): Build in top directory.
  1749. (convert_source_files): New macro.
  1750. (convert_SOURCES): New macro.
  1751. (convert_LDFLAGS): Likewise.
  1752. (convert_LINK): Likewise.
  1753. (convert_LDADD): Likewise.
  1754. (convert_DEPENDENCIES): Likewise.
  1755. (convert): Removed.
  1756. (gen-from-JIS): Removed.
  1757. (gen_from_JIS_SOURCES): New macro.
  1758. (gen_from_JIS_LDADD): Likewise.
  1759. (gen_from_JIS_DEPENDENCIES): Likewise.
  1760. * configure: Rebuilt.
  1761. * configure.in (CANADIAN): Set to `yes', not `canadian'.
  1762. (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
  1763. when defining conditional.
  1764. Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
  1765. * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
  1766. The Unicode Consortium does not permit their re-distribution.
  1767. * Makefile.am, Makefile.in: Add comments with URLs for removed files.
  1768. (JIS0208.h, JIS0212.h): Do not depend on removed files.
  1769. Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
  1770. * natSystem.c (init_properties): Use malloc, realloc, free after all.
  1771. Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
  1772. * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
  1773. from Unicode Consortium.
  1774. * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
  1775. * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
  1776. * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
  1777. New tables, generated using gen-from-JIS.
  1778. * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
  1779. * gnu/gcj/convert/Output_UTF8.java: Fix bug.
  1780. * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
  1781. * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
  1782. * gnu/gcj/convert/Convert.java: New application.
  1783. * Makefile.am, Makefile.in (convert): New program, using Convert.
  1784. Build the various JIS conversion tables (in maintainer mode).
  1785. Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
  1786. * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
  1787. * java/net/URL.java (URL): Deal with null property value. Use "."
  1788. as separator in building class name.
  1789. * java/net/URLConnection.java: Implemented majority of stubbed methods.
  1790. * java/net/URLStreamHandler.java (parseURL): Use "" in string
  1791. manipulations instead of 'null'. Comment cleanup. Use 0 for the
  1792. beginning of the substring rather than 'start'.
  1793. 1999-03-26 Tom Tromey <tromey@cygnus.com>
  1794. * include/java-chartables.h: Rebuilt.
  1795. * include/java-chardecomp.h: New file.
  1796. * chartables.pl: Generate output files directly. Added support
  1797. for generating decomposition header.
  1798. (canonical_decomposition, full_decomposition): New globals.
  1799. (DECOMPOSITION): New constant.
  1800. (process_char): Call add_decomposition.
  1801. (add_decomposition): New sub.
  1802. (write_decompositions): New sub.
  1803. 1999-03-25 Tom Tromey <tromey@cygnus.com>
  1804. * java/text/CollationElementIterator.java: New file.
  1805. * mauve-libjava: Omit StringTest.
  1806. Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
  1807. * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
  1808. without a '/' when parsing protocol. Handle ref outside of parseURL.
  1809. (hashCode): Implemented.
  1810. (set): Don't expand -1 to default port.
  1811. (getDefaultPort): Removed.
  1812. * java/net/URLStreamHandler.java (parseURL): Implemented.
  1813. (toExternalForm): Implemented.
  1814. 1999-03-23 Tom Tromey <tromey@cygnus.com>
  1815. * java/text/BreakIterator.java (getSentenceInstance):
  1816. Implemented.
  1817. * gnu/gcj/text/SentenceBreakIterator.java: New file.
  1818. * Makefile.in: Rebuilt.
  1819. * Makefile.am (nat_headers): Added IllegalAccessException.
  1820. * java/lang/natClass.cc (newInstance): Throw
  1821. IllegalAccessException, not IllegalAccessError.
  1822. Include IllegalAccessException.h.
  1823. 1999-03-22 Tom Tromey <tromey@cygnus.com>
  1824. * gnu/gcj/text/LineBreakIterator.java: New file.
  1825. * java/text/BreakIterator.java (getLineInstance): Implemented.
  1826. * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
  1827. copy constructor private.
  1828. (previous, next): Removed erroneous comment about line
  1829. separators.
  1830. (previous): Correctly recognize break between non-letter on the
  1831. left and letter on the right. Handle apostrophes correctly.
  1832. * java/text/BreakIterator.java (getWordInstance): Implemented.
  1833. * gnu/gcj/text/WordBreakIterator.java: New file.
  1834. * gnu/gcj/text/CharacterBreakIterator.java: Extend
  1835. BaseBreakIterator.
  1836. * gnu/gcj/text/BaseBreakIterator.java: New file.
  1837. 1999-03-19 Tom Tromey <tromey@cygnus.com>
  1838. * java/text/BreakIterator.java: New file (partially stubbed out).
  1839. * gnu/gcj/text/CharacterBreakIterator.java: New file.
  1840. * include/config.h.in: Rebuilt.
  1841. * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
  1842. (HAVE_TIMEZONE): Likewise.
  1843. * configure: Rebuilt.
  1844. * configure.in: Added timezone checks.
  1845. * java/util/natGregorianCalendar.cc (computeTime): Adjust for
  1846. timezone.
  1847. Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
  1848. * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
  1849. * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
  1850. * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
  1851. * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
  1852. * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
  1853. * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
  1854. * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
  1855. * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
  1856. * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
  1857. (BSD_COMP): Kludge needed for Solaris2.
  1858. Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
  1859. * java/net/URL.java (URL(java.net.URL, string): Moved code to
  1860. URL(java.net.URL, string, URLStreamHandler) and call it with a
  1861. null handler. In latter constructor, added SecurityManager check.
  1862. (set): Expect null handler on bad protocol rather than an exception.
  1863. (setURLStreamHandler): Simplified exception handling; return null
  1864. on invalid protocol.
  1865. 1999-03-18 Tom Tromey <tromey@cygnus.com>
  1866. * java/text/DecimalFormat.java (format(long,...)): Rewrote.
  1867. * java/lang/natSystem.cc (setOut, setIn, setErr): New native
  1868. methods.
  1869. Include PrintStream.h, InputStream.h.
  1870. * java/lang/System.java (ForwardingInputStream,
  1871. ForwardingOutputStream): Removed.
  1872. (setErr, setIn, setOut): Now native.
  1873. Reverted patch from 1999-02-12 to work around problem in
  1874. libgcc2.c.
  1875. * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
  1876. (_Jv_eh_free): Use free.
  1877. * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
  1878. for path name. Minor formatting fixes.
  1879. * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
  1880. * prims.cc (fail_on_finalization): New function.
  1881. (_Jv_GCWatch): Likewise.
  1882. * prims.cc (JvRunMain): Initialize `nullp'.
  1883. (nullp): New global.
  1884. (catch_segv): Throw nullp.
  1885. * Makefile.in: Rebuilt.
  1886. * Makefile.am (ZIP): In "null target" case, zip is found in the
  1887. build tree.
  1888. * prims.cc (_Jv_PrimClass): Initialize all elements of class
  1889. object.
  1890. Include Modifier.h.
  1891. * java/lang/StringBuffer.java (StringBuffer): Don't use
  1892. ensureCapacity to set initial capacity.
  1893. (capacity): Subtract `length' from return result.
  1894. Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
  1895. * java/io/natFileDescriptorPosix.cc (open): Throw
  1896. FileNotFoundException, but with filename and errno in msg.
  1897. Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
  1898. * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
  1899. functionality folded into java/net/URL.java per spec.
  1900. * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
  1901. than EEXIST for throwing FileNotFoundException.
  1902. * java/net/URL.java: Folded in default URLStreamHandlerFactory
  1903. algorithm per JDK 1.2 doc. Added SecurityManager checks.
  1904. * java/net/URLStreamHandler.java (parseURL): Added stub.
  1905. 1999-03-15 Andrew Haley <aph@cygnus.com>
  1906. * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
  1907. by one errors.
  1908. 1999-03-15 Andrew Haley <aph@cygnus.com>
  1909. * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
  1910. support.
  1911. 1999-03-12 Tom Tromey <tromey@cygnus.com>
  1912. * prims.cc (catch_segv): New function.
  1913. Include <signal.h> if HANDLE_SEGV defined. Include
  1914. NullPointerException.h.
  1915. (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
  1916. handler.
  1917. * java/text/SimpleDateFormat.java (equals): Ensure that object is
  1918. a SimpleDateFormat, not just a DateFormat.
  1919. (defaultCenturyStart, formatData, pattern): Now private.
  1920. (append): Now `final'. Use `NumberFormat.format'.
  1921. (parse): Wrote.
  1922. (SimpleDateFormat): Turn off groupin in NumberFormat object.
  1923. * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
  1924. result.
  1925. * java/text/MessageFormat.java (format): Use default MessageFormat
  1926. constructor.
  1927. (parse, parseObject): Wrote.
  1928. * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
  1929. constructor.
  1930. 1999-03-12 Andrew Haley <aph@cygnus.com>
  1931. * java/lang/String.java (indexOf): Replace with native method for
  1932. better performance.
  1933. * java/lang/natString.cc (IndexOf): As above.
  1934. * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
  1935. Argument check corrected.
  1936. (init(jbyteArray,jint,jint,jstring)): Likewise.
  1937. * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
  1938. 1.2 compliant method.
  1939. * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
  1940. added.
  1941. * java/lang/Float.java (byteValue, shortValue): Likewise.
  1942. 1999-03-11 Tom Tromey <tromey@cygnus.com>
  1943. * java/text/DecimalFormat.java (parse): Wrote.
  1944. * java/text/ChoiceFormat.java (parse): Set error index on
  1945. ParsePosition object.
  1946. * java/lang/Integer.java (parseInt): Throw exception on overflow
  1947. when intermediate result is most negative number. Changed
  1948. overflow detection as well.
  1949. * java/lang/Long.java (parseLong): Likewise.
  1950. * configure, Makefile.in: Rebuilt.
  1951. * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
  1952. CANADIAN when building in source tree that doesn't include gcc.
  1953. * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
  1954. define.
  1955. * java/text/ChoiceFormat.java (nextDouble): Correct some
  1956. off-by-one errors when masking or adding.
  1957. * java/text/DecimalFormat.java (format): Fill in FieldPosition
  1958. parameter, if given. Use `%', not IEEEremainder.
  1959. (scanFix): Throw error if multiplier already set.
  1960. (computePattern): Wrote.
  1961. 1999-03-11 Andrew Haley <aph@cygnus.com>
  1962. * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
  1963. 52.
  1964. (nextDouble): Corrected masking logic. Handle interaction between
  1965. `next' and negative numbers.
  1966. Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
  1967. * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
  1968. * java/net/URL.java: Added general comments.
  1969. 1999-03-10 Tom Tromey <tromey@cygnus.com>
  1970. * java/text/ChoiceFormat.java (parse): Wrote.
  1971. * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
  1972. * java/text/MessageFormat.java (MessageFormatElement.setLocale):
  1973. Create ChoiceFormat objects.
  1974. (format): Special-case ChoiceFormat.
  1975. (scanFormatElement): Include { and } in generated style string.
  1976. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  1977. * java/text/ChoiceFormat.java: New file.
  1978. Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
  1979. * java/net/BindException.java: Created.
  1980. * java/net/ConnectException.java: Created.
  1981. * java/net/ContentHandler.java: Created.
  1982. * java/net/ContentHandlerFactory.java: Created.
  1983. * java/net/FileNameMap.java: Created.
  1984. * java/net/MalformedURLException.java: Created.
  1985. * java/net/NoRouteToHostException.java: Created.
  1986. * java/net/ProtocolException.java: Created.
  1987. * java/net/ServerSocket.java (@author): Fixed typo.
  1988. * java/net/Socket.java (@author): Fixed typo.
  1989. * java/net/SocketImpl.java (@author): Fixed typo.
  1990. * java/net/SocketImplFactory.java (@author): Fixed typo.
  1991. * java/net/URL.java: Created - nearly complete.
  1992. * java/net/URLConnection.java: Created - near-empty stub.
  1993. * java/net/URLStreamHandler.java: Created - incomplete stub.
  1994. * java/net/URLStreamHandlerFactory.java: Created.
  1995. * java/net/UnknownServiceException.java: Created.
  1996. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  1997. * java/lang/System.java (ForwardingInputStream): New class.
  1998. (ForwardingOutputStream): Likewise.
  1999. (in, out, err): Now `final' forwarding streams.
  2000. (setIn, setOut, setErr): Use appropriate method on forwarding
  2001. streams.
  2002. * java/text/MessageFormat.java (MessageFormatElement): Now `final'
  2003. class.
  2004. Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
  2005. * java/util/zip/CRC32.java: New class (just an incomplete stub).
  2006. * java/util/zip/Checksum.java: New interface (complete).
  2007. * java/util/zip/Deflater.java: New class (near-empty stub).
  2008. * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
  2009. * java/util/zip/ZipConstants.java: New interface (near-empty stub).
  2010. * java/util/zip/ZipEntry.java: New class (complete).
  2011. * java/util/zip/ZipException.java: New class (complete).
  2012. * java/util/zip/ZipFile.java: New class (incomplete stub).
  2013. * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
  2014. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  2015. * java/text/MessageFormat.java (MessageFormatElement): Removed
  2016. `public' specifiers.
  2017. * java/text/DecimalFormat.java (scanFormat): Increment index
  2018. before processing exponential format. Fixed a couple typos in
  2019. exception messages.
  2020. (format): Correct normalization of exponent.
  2021. 1999-03-08 Tom Tromey <tromey@cygnus.com>
  2022. * java/text/SimpleDateFormat.java (parse): Throw
  2023. IllegalArgumentException, not ParseException.
  2024. 1999-03-05 Tom Tromey <tromey@cygnus.com>
  2025. * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
  2026. when constructing DateFormatSymbols. Initialize numberFormat
  2027. field of superclass.
  2028. * java/text/DateFormat.java (equals): Rewrote.
  2029. (getAvailableLocales): New method.
  2030. (getDateInstance): New methods.
  2031. (getDateTimeInstance): Likewise.
  2032. (getTimeInstance): Likewise.
  2033. (getInstance): New method.
  2034. (computeInstance): New method.
  2035. * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
  2036. for US.
  2037. (safeGetResource): New method.
  2038. (DateFormatSymbols): Use Locale paramater.
  2039. (equals): Now protected.
  2040. Made instance variables private.
  2041. 1999-03-04 Tom Tromey <tromey@cygnus.com>
  2042. * java/text/DecimalFormat.java: New file.
  2043. * java/text/NumberFormat.java (groupingUsed,
  2044. maximumFractionDigits, maximumIntegerDigits,
  2045. minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
  2046. New fields.
  2047. (setDecimalSeparatorAlwaysShown, setMultiplier,
  2048. setPositivePrefix): Removed.
  2049. (setMinimumFractionDigits, setMaximumFractionDigits):
  2050. Implemented.
  2051. (format): Now final.
  2052. Added many new methods.
  2053. * Makefile.in: Rebuilt.
  2054. * Makefile.am (gnu_files): New macro.
  2055. (java_files): Added gnu_files.
  2056. (class_gnu_files): New macro.
  2057. (class_files): Use it.
  2058. (src_gnu_files): New macro.
  2059. (gnu.o): New target.
  2060. (javao_files): Added gnu.o.
  2061. * gnu/gcj/text/LocaleData_en_US.java: New file.
  2062. * gnu/gcj/text/LocaleData_en.java: New file.
  2063. * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
  2064. (DecimalFormatSymbols): Use ResourceBundle to find resources.
  2065. (safeGetString): New method.
  2066. (safeGetChar): Likewise.
  2067. 1999-03-03 Tom Tromey <tromey@cygnus.com>
  2068. * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
  2069. constants.
  2070. * java/text/FieldPosition.java (equals): Don't check for null
  2071. object; instanceof does this.
  2072. * java/util/Locale.java (clone): New method.
  2073. (equals): Likewise.
  2074. Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
  2075. * doc/cni.sgml: New file.
  2076. 1999-03-03 Tom Tromey <tromey@cygnus.com>
  2077. * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
  2078. * java/text/DecimalFormatSymbols.java: New file.
  2079. 1999-03-02 Tom Tromey <tromey@cygnus.com>
  2080. * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
  2081. exists.
  2082. * configure: Rebuilt.
  2083. * configure.in: Check for sys/filio.h.
  2084. * java/lang/Runtime.java (checkLink): Throw NullPointerException
  2085. if required.
  2086. (load): Always throw UnsatisfiedLinkError.
  2087. (loadLibrary): Likewise.
  2088. 1999-03-02 Anthony Green <green@cygnus.com>
  2089. * LIBGCJ_LICENSE: New file.
  2090. * LIBJAVA_LICENSE: Removed.
  2091. * Many files: libjava now libgcj.
  2092. 1999-03-02 Tom Tromey <tromey@cygnus.com>
  2093. * include/java-chartables.h: Rebuilt.
  2094. * chartables.pl (print_block): Make table `const'.
  2095. (print_numerics): Likewise.
  2096. (print_single_map): Likewise.
  2097. (print_all_block): Likewise.
  2098. (print_case_table): Likewise.
  2099. (print_fast_tables): Likewise.
  2100. * java/lang/natCharacter.cc (table_search): `table' argument now
  2101. const.
  2102. 1999-03-01 Tom Tromey <tromey@cygnus.com>
  2103. * java/util/Date.java (before, after): Inverted logic.
  2104. * java/util/Date.java (parse): Handle case where first character
  2105. in string is open parenthesis.
  2106. (skipParens): Rewrote.
  2107. * java/lang/reflect/natArray.cc: Include <stdlib.h>.
  2108. * java/lang/reflect/natField.cc: Include <stdlib.h>.
  2109. * java/util/Date.java (parse): Correctly compute beginning of
  2110. punctuation.
  2111. * java/util/Hashtable.java (get): Throw NullPointerException if
  2112. key is null.
  2113. (containsKey): Likewise.
  2114. * java/util/Properties.java (list): Truncate value to 37
  2115. characters and add `...'.
  2116. * java/lang/Byte.java (parseByte): Pass `radix' to
  2117. Integer.parseInt.
  2118. * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
  2119. fprintf.
  2120. Include System.h, PrintStream.h.
  2121. * java/lang/natSystem.cc (init_properties): Don't use malloc,
  2122. realloc, or free.
  2123. * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
  2124. exists.
  2125. * configure: Rebuilt.
  2126. * configure.in: Check for getpwuid_r. Look for `pwd.h', not
  2127. `pwd.d'.
  2128. * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
  2129. * java/lang/SecurityManager.java: Import java.net.*.
  2130. (checkMulticast): New methods.
  2131. Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
  2132. * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
  2133. (nat_files): Add java/lang/reflect/natArray.o.
  2134. (nat_headers): Add Field.h and NoSuchFieldException.h.
  2135. * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
  2136. _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
  2137. (_Jv_FromReflectedField): Fix buglet.
  2138. * include/jvm.h (_Jv_NewMultiArray): New declaration.
  2139. * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
  2140. * prims.cc (_Jv_Abort): Include message in print-out.
  2141. * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
  2142. (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
  2143. * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
  2144. * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
  2145. * include/config.h.in (HAVE_PWD_H): New feature macro.
  2146. * java/lang/natSystem.cc (init_properties): Set file.encoding,
  2147. user.name, user.home, user.dir.
  2148. * java/lang/reflect/Array.java: New class.
  2149. * java/lang/reflect/natArray.cc: New native methods.
  2150. * include/javaprims.h: Declare java::lang::reflect::Array.
  2151. * java/lang/Class.h (getField): New private method. Add friends.
  2152. * java/lang/Class.java (getField): Add private overload.
  2153. * java/lang/natClass.cc (getField, getField, getDeclaredField,
  2154. getDeclaredMethods): Add working implementations.
  2155. * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
  2156. Finish implementation, except for access control.
  2157. * java/lang/reflect/Modifier.java (toString): New overload.
  2158. * include/java-method.h: New file.
  2159. * java/lang/reflect/Method.java (index): Replaced by offset field.
  2160. Remove various private fields - get them from _Jv_Field instead.
  2161. * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
  2162. New method implementations.
  2163. * java/text/NumberFormat.java: Add a bunch of methods.
  2164. Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
  2165. * java/lang/StringBuffer.java (getChars): Fix bounds checks.
  2166. 1999-02-26 Tom Tromey <tromey@cygnus.com>
  2167. * include/config.h.in: Rebuilt.
  2168. * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
  2169. GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
  2170. HAVE_GETHOSTBYADDR_R): New defines.
  2171. * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
  2172. gethostbyaddr_r if available.
  2173. Include <errno.h>.
  2174. * configure: Rebuilt.
  2175. * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
  2176. * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
  2177. Don't use JvFree.
  2178. (lookup): Likewise.
  2179. Include <jvm.h>.
  2180. * include/jvm.h (_Jv_AllocBytesChecked): Declare.
  2181. * prims.cc (_Jv_AllocBytesChecked): New function.
  2182. * Makefile.in: Rebuilt.
  2183. * Makefile.am (SUBDIRS): Removed `test'.
  2184. * configure: Rebuilt.
  2185. * configure.in: Don't build test/Makefile.
  2186. * test/*: Removed all files.
  2187. Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
  2188. * java/lang/reflect/Constructor.java: Make class final to match spec.
  2189. * java/lang/reflect/Method.java: Ditto.
  2190. 1999-02-25 Tom Tromey <tromey@cygnus.com>
  2191. * java/net/natInetAddress.cc: Include <sys/types.h> before
  2192. <sys/socket.h>.
  2193. * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
  2194. <sys/socket.h>.
  2195. * java/net/natInetAddress.cc: Declare gethostname if required.
  2196. * include/config.h.in: Rebuilt.
  2197. * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
  2198. * configure: Rebuilt.
  2199. * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
  2200. declared in unistd.h.
  2201. 1999-02-24 Tom Tromey <tromey@cygnus.com>
  2202. * Makefile.in: Rebuilt.
  2203. * Makefile.am (java/io/FileDescriptor.h): Removed target.
  2204. * java/io/FileDescriptor.java (FileDescriptor): Changed protection
  2205. from private to "none".
  2206. * include/javaprims.h: Regenerated class declarations with new
  2207. classes.pl.
  2208. * classes.pl (scan): Only generate decls for java.lang, java.io,
  2209. and java.util.
  2210. 1999-02-24 Tom Tromey <tromey@cygnus.com>
  2211. * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
  2212. (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
  2213. 1999-02-23 Tom Tromey <tromey@cygnus.com>
  2214. * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
  2215. not already defined.
  2216. * java/io/natFile.cc (_REENTRANT): Only define if not already
  2217. defined.
  2218. * include/config.h.in: Rebuilt.
  2219. * acconfig.h (HAVE_BOEHM_GC): New define.
  2220. * configure: Rebuilt.
  2221. * configure.in: Define HAVE_BOEHM_GC if using it.
  2222. * posix-threads.cc: Include boehm-config.h and gc.h if
  2223. HAVE_BOEHM_GC.
  2224. * include/posix-threads.h: Added explanatory note about Boehm GC.
  2225. * java/io/BufferedReader.java (readLine): Only return null when
  2226. EOF seen before any characters read. (In particular, an empty
  2227. line should not return null.)
  2228. * java/io/BufferedInputStream.java (read): Only refill once per
  2229. invocation.
  2230. * mauve-libjava: Added java.text.StringCharacterIterator.iter,
  2231. java.lang.Character.classify12, java.lang.String.hash,
  2232. java.text.FieldPosition.Test, java.text.ParsePosition.Test,
  2233. java.text.SimpleDateFormat.getAndSet2DigitYearStart
  2234. * java/text/StringCharacterIterator.java (setIndex): No error if
  2235. index == end.
  2236. (next): Check for `pos == end', not `end - 1'.
  2237. (StringCharacterIterator): Allow `pos == end'. Explicitly check
  2238. for null text in each constructor.
  2239. (clone): Fixed order of arguments to constructor.
  2240. 1999-02-22 Tom Tromey <tromey@cygnus.com>
  2241. * include/config.h.in: Rebuilt.
  2242. * acconfig.h (HAVE_INET6): New define.
  2243. (HAVE_SOCKLEN_T): Likewise.
  2244. * java/net/PlainSocketImpl.java: Added copyright header.
  2245. * java/net/natPlainSocketImpl.cc: Added copyright header.
  2246. (union SockAddr): Use HAVE_INET6, not AF_INET6.
  2247. (bind): Likewise.
  2248. (connect): Likewise.
  2249. (accept): Likewise.
  2250. (socklen_t): New typedef.
  2251. (accept): Use socklen_t.
  2252. * java/net/natInetAddress.cc: Added copyright header.
  2253. (HAVE_GETHOSTNAME): Don't define.
  2254. (HAVE_INET_ADDR): Likewise.
  2255. (lookup): Fixed typo.
  2256. (aton): Don't use `address' as name of local variable.
  2257. (lookup): Use HAVE_INET6, not AF_INET6.
  2258. * configure: Rebuilt.
  2259. * configure.in: Look for functions inet_aton, inet_addr,
  2260. gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
  2261. Check for socklen_t typedef.
  2262. * exception.cc (__throw): Declare as __noreturn__.
  2263. Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
  2264. * Makefile.am, Makefile.in: Also build java/net.
  2265. (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
  2266. * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
  2267. * java/util/natGregorianCalendar.cc: #define _REENTRANT.
  2268. * prims.cc (_Jv_malloc, _Jv_Free): New functions.
  2269. * include/cni.h (JvMalloc, JvFree): New inline functions.
  2270. (JvThrow): Add __noreturn__ attribute.
  2271. * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
  2272. (_Jv_Throw): Add __noreturn__ attribute.
  2273. * java/net/PlainSocketImpl.java: Init fnum to -1.
  2274. * java/net/ServerSocket.java: Add missing throws clauses.
  2275. * java/lang/Socket.java: For the constructor taking a SocketImpl,
  2276. don't call create on the latter. Instead, other constructors
  2277. have to explicitly call SocketImpl.create.
  2278. * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
  2279. from size_t to int, to match ::accept prototype.
  2280. * java/net/natInetAddress.cc: Use JvFree rather than free.
  2281. 1999-02-22 Tom Tromey <tromey@cygnus.com>
  2282. * include/javaprims.h: Added new classes.
  2283. * java/text/StringCharacterIterator.java: New file.
  2284. * java/text/CharacterIterator.java: New file.
  2285. * java/text/ParseException.java (errorOffset): Now private.
  2286. Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
  2287. * java/net: New package.
  2288. * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
  2289. Socket.java,SocketException.java,SocketImpl.java,
  2290. SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
  2291. natPlainSocketImpl.cc}: New classes.
  2292. * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
  2293. <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
  2294. * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
  2295. HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
  2296. * classes.pl: Translate package into "namespace", not "class".
  2297. * include/javaprims.h: Update class list, using "namespace".
  2298. 1999-02-21 Tom Tromey <tromey@cygnus.com>
  2299. * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
  2300. Define when appropriate.
  2301. 1999-02-20 Tom Tromey <tromey@cygnus.com>
  2302. * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
  2303. as a single byte and \u07ff as two bytes.
  2304. (_Jv_GetStringUTFLength): Likewise.
  2305. * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
  2306. with 0x0f, not 0x1f.
  2307. 1999-02-19 Tom Tromey <tromey@cygnus.com>
  2308. * java/io/DataOutputStream.java (writeUTF): When encoding
  2309. character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
  2310. * java/io/DataInputStream.java (readUTF): Mask second byte of
  2311. 3-byte character with 0x3f, not 0x1f.
  2312. * java/io/DataInputStream.java (readLong): Cast result of
  2313. readUnsignedByte to long before using.
  2314. * java/io/FileInputStream.java (finalize): Only finalize `fd' if
  2315. it is not null.
  2316. * mauve-libjava: Re-enabled java.io.DataInputOutput.
  2317. * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
  2318. argument to avoid warning.
  2319. * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
  2320. argument to avoid warning.
  2321. 1999-02-18 Tom Tromey <tromey@cygnus.com>
  2322. * mauve-libjava: Omit java.io.DataInputOutput and
  2323. java.io.Utf8Encoding.
  2324. 1999-02-17 Tom Tromey <tromey@cygnus.com>
  2325. * Makefile.in: Rebuilt.
  2326. * Makefile.am (nat_headers): Added InterruptedIOException.h.
  2327. * java/io/natFileDescriptorPosix.cc: Include
  2328. InterruptedIOException.h, Thread.h.
  2329. (write): Throw InterruptedIOException when required.
  2330. (read): Likewise.
  2331. * posix-threads.cc: Include <signal.h>.
  2332. (_Jv_ThreadInterrupt): New function.
  2333. (INTR): New define.
  2334. (handle_intr): New function.
  2335. (_Jv_InitThreads): Register handle_intr via sigaction.
  2336. * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
  2337. * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
  2338. * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
  2339. * include/no-threads.h (_Jv_ThreadInterrupt): New function.
  2340. 1999-02-19 Andrew Haley <aph@cygnus.com>
  2341. * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
  2342. of subgroups.
  2343. (ThreadGroup (int)): Set the maximum priority of the initial
  2344. ThreadGroup.
  2345. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2346. * java/lang/natClass.cc (forName): Check for the case where a
  2347. classname is the name of an array and call FindClassFromSignature
  2348. to find the Class.
  2349. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2350. * java/lang/StringBuffer (insert (int, String)): Move up any
  2351. characters above the insert position and increase the length of
  2352. the string buffer by the length of the argument.
  2353. (insert (int, char[])): Likewise.
  2354. (insert (int, char)): Likewise.
  2355. (StringBuffer (String)): The initial capacity of the string buffer
  2356. is 16 plus the length of the argument.
  2357. (getChars): Add a JDK 1.2 FIXME.
  2358. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2359. * java/lang/Short.java (parseShort(String, int)): Pass radix to
  2360. Integer.parseInt.
  2361. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2362. * java/lang/Double.java (equals): Use a bit-by-bit comparision
  2363. instead of floating-point equality. This is necessary for
  2364. correct floating-point Hashtables.
  2365. * java/lang/Float.java (equals): Ditto.
  2366. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2367. * java/util/Properties.java (list): Truncate value to 37
  2368. characters and add "...".
  2369. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2370. * java/util/Vector.java (Vector): Throw IllegalArgumentException
  2371. if initCap is negative.
  2372. (contains): Implement JDK1.2-style handling of null argument.
  2373. (removeElement): Likewise.
  2374. (indexOf): Likewise. Also, correctly handle case where idx is
  2375. negative.
  2376. (lastIndexOf): Likewise.
  2377. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2378. * java/lang/natString.cc (init): Increment source pointer in
  2379. loop.
  2380. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2381. * exception.cc: Include NullPointerException.h.
  2382. (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
  2383. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2384. * Makefile.in: Rebuilt.
  2385. * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
  2386. Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
  2387. * configure.in: Don't undefine EH_COMMON_INCLUDE just because
  2388. we're compiling canadian.
  2389. * configure: Regenerated.
  2390. 1999-02-12 Andrew Haley <aph@cygnus.com>
  2391. * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
  2392. deleted from libgcj.
  2393. 1999-02-12 Tom Tromey <tromey@cygnus.com>
  2394. * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
  2395. (_Jv_eh_free): Don't call free.
  2396. Don't declare malloc or free.
  2397. 1999-02-11 Tom Tromey <tromey@cygnus.com>
  2398. * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
  2399. 1999-02-11 Andrew Haley <aph@cygnus.com>
  2400. * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
  2401. wf_fmod.c: Deleted. These are all files from fdlibm which aren't
  2402. needed by java.lang.*.
  2403. * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
  2404. wf_fmod.o: Removed from libjava.a.
  2405. 1999-02-11 Tom Tromey <tromey@cygnus.com>
  2406. * include/javaprims.h: Reverted previous change; with it
  2407. exception.cc can't compile.
  2408. * include/javaprims.h (_Jv_Throw): Mark as noreturn.
  2409. * include/config.h.in: Rebuilt.
  2410. * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
  2411. HAVE_SCHED_YIELD.
  2412. * configure: Rebuilt.
  2413. * configure.in: Check for sched_yield. Look in thread library for
  2414. all thread functions.
  2415. * posix-threads.cc (_Jv_MutexInit): Handle case where system has
  2416. no recursive mutexes.
  2417. (_Jv_MutexDestroy): Define when required.
  2418. (_Jv_MutexLock): Likewise.
  2419. (_Jv_MutexUnlock): Likewise.
  2420. (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
  2421. * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
  2422. (_Jv_Mutex_t): New structure.
  2423. (_Jv_MutexDestroy): Only define if recursive mutexes available.
  2424. (_Jv_MutexLock): Likewise.
  2425. (_Jv_MutexUnlock): Likewise.
  2426. 1999-02-10 Tom Tromey <tromey@cygnus.com>
  2427. * aclocal.m4, configure, Makefile.in: Rebuilt.
  2428. * acinclude.m4: Renamed libjava to libgcj. Updated to use
  2429. automake 1.4.
  2430. * configure.in: Changed to track library changes.
  2431. * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
  2432. (AM_CXXFLAGS): Likewise.
  2433. (data_DATA): Likewise.
  2434. (AM_CFLAGS): Likewise.
  2435. (JC1FLAGS): Likewise.
  2436. (libgcj_a_SOURCES): Likewise.
  2437. (EXTRA_libgcj_a_SOURCES): Likewise.
  2438. (libgcj_a_DEPENDENCIES): Likewise.
  2439. (libgcj_a_LIBADD): Likewise.
  2440. (libgcj.zip): Likewise.
  2441. (CLEANFILES): Likewise.
  2442. ($(nat_headers)): Likewise.
  2443. (java/lang/FirstThread.h): Likewise.
  2444. (java/lang/ThreadGroup.h): Likewise.
  2445. (java/lang/String.h): Likewise.
  2446. (java/lang/reflect/Field.h): Likewise.
  2447. (BUILT_SOURCES): Likewise.
  2448. (maintainer-check): Likewise.
  2449. (CONFIG_STATUS_DEPENDENCIES): Likewise.
  2450. Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
  2451. * java/util/natGregorianCalendar.cc (computeFields): Only use
  2452. gmtime_r and localtime_r when configured for posix threads.
  2453. * java/io/natFile.cc (get_entry): Only use readdir_r when
  2454. configured for posix threads.
  2455. * java/util/natGregorianCalendar.cc: Update copyright notice.
  2456. * java/util/TimeZone.java: Ditto.
  2457. * java/util/SimpleTimeZone.java: Ditto.
  2458. 1999-02-08 Tom Tromey <tromey@cygnus.com>
  2459. * java/io/PrintStream.java (line_separator): New constant.
  2460. (print): Use line_separator, not `file.separator' property.
  2461. (println): Use line_separator.
  2462. * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
  2463. when trying to instantiate Class.
  2464. * java/lang/ThreadGroup.java (ThreadGroup): Throw
  2465. NullPointerException if argument is null.
  2466. * java/lang/Thread.java (setName): Throw NullPointerException, not
  2467. IllegalArgumentException.
  2468. (Thread): Likewise.
  2469. 1999-02-08 Andrew Haley <aph@cygnus.com>
  2470. * java/lang/natClass.cc (newInstance): Don't allow anyone to
  2471. create new Classes with Class.newInstance().
  2472. * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
  2473. semiciolon to end of an array Class's signature if the elements of
  2474. the array aren't themselves arrays.
  2475. * java/lang/natSystem.cc (arraycopy): The size of an element of an
  2476. array of objects is always sizeof(jobject), not the size of the
  2477. object to which the reference points.
  2478. 1999-02-08 Tom Tromey <tromey@cygnus.com>
  2479. * java/util/BitSet.java (and): Throw NullPointerException when
  2480. required.
  2481. (or): Likewise.
  2482. (xor): Likewise.
  2483. * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
  2484. if argument is negative.
  2485. (clear): Correctly compute `offset'. Throw
  2486. IndexOutOfBoundsException when required.
  2487. (set): Likewise.
  2488. (get): Likewise. Also, return correct value.
  2489. (ensure): Changed meaning of argument.
  2490. (toString): Wrap contents in `{}'; put spaces after commas.
  2491. (hashCode): Don't try to examine elements off the end of array.
  2492. (or): Correctly include bits past the end of this bit set.
  2493. (xor): Likewise.
  2494. Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
  2495. * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
  2496. instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
  2497. 1999-02-04 Andrew Haley <aph@cygnus.com>
  2498. * java/lang/natClass.cc (Class::forName): Remove code which mapped
  2499. '/' in signatures to '.'
  2500. (Class::getName): Likewise,
  2501. (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
  2502. signature.
  2503. * java/lang/natFirstThread.cc (run): Change '/' in main's
  2504. signature to '.'.
  2505. 1999-02-03 Andrew Haley <aph@cygnus.com>
  2506. * configure.host: -ffloat-store added when compiling libjava on
  2507. x86. fdlibm apparently relies on this.
  2508. * java/lang/ThreadGroup.java (add): throw an exception if the
  2509. ThreadGroup has been destroyed.
  2510. * java/lang/natMath.cc (round): Ensure correct NaN and overflow
  2511. behaviour.
  2512. 1999-01-27 Tom Tromey <tromey@cygnus.com>
  2513. * java/lang/StringBuffer.java (StringBuffer): Handle null
  2514. argument.
  2515. 1999-01-21 Tom Tromey <tromey@cygnus.com>
  2516. * java/lang/natFirstThread.cc (run): Don't require main to be
  2517. public.
  2518. Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
  2519. * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
  2520. 1999-01-20 Tom Tromey <tromey@cygnus.com>
  2521. * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
  2522. StringClass.
  2523. (rehash): Likewise.
  2524. (intern): Likewise.
  2525. (unintern): Likewise.
  2526. (_Jv_NewStringUtf8Const): Likewise.
  2527. * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
  2528. Character.isLetter, to see if character is self-quoting. Also,
  2529. correctly handle quoted characters.
  2530. (parse): Fixed typo. Also now throws ParseException.
  2531. 1999-01-15 Tom Tromey <tromey@cygnus.com>
  2532. * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
  2533. * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
  2534. _Jv_SyncInfo has `init' member.
  2535. * include/quick-threads.h (_Jv_MutexUnlock): Return result of
  2536. coop_mutex_unlock.
  2537. * java/lang/natObject.cc (_Jv_MonitorExit): Throw
  2538. IllegalMonitorStateException if unlock fails.
  2539. * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
  2540. zero.
  2541. (_Jv_NewObjectArray): Likewise.
  2542. 1999-01-14 Tom Tromey <tromey@cygnus.com>
  2543. * java/lang/Character.java (isJavaIdentifierPart): Allow
  2544. LETTER_NUMBER characters.
  2545. * chartables.pl (process_char): Fixed error messages.
  2546. * include/java-chartables.h: Rebuilt with UniData 2.1.8.
  2547. * chartables.pl: Updated comments. Changed detection of non-digit
  2548. numeric values (no longer miss \u00b2 and friends).
  2549. * java/lang/Character.java (isJavaIdentifierPart): Recognize
  2550. currency symbols and connector punctuation.
  2551. (isIdentifierIgnorable): Make 7f-9f ignorable.
  2552. * prims.cc (_Jv_NewObjectArray): Check for overflow.
  2553. (_Jv_NewPrimArray): Likewise.
  2554. (SIZE_T_MAX): New define.
  2555. * java/lang/ClassLoader.java (system): Now private and final.
  2556. * boehm.cc (_Jv_MarkObj): Handle case where object's class is
  2557. null.
  2558. * configure: Rebuilt.
  2559. * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
  2560. well.
  2561. * exception.cc: Include gansidecl.h.
  2562. 1999-01-14 Andrew Haley <aph@cygnus.com>
  2563. * java/lang/Math.java, java/lang/natMath.cc: min and max routines
  2564. corrected: they didn't treat -0.0 and NaNs correctly.
  2565. Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
  2566. * nogc.cc: Use calloc to zero out memory.
  2567. 1999-01-11 Tom Tromey <tromey@cygnus.com>
  2568. * java/lang/natClass.cc (isInstance): Return false if this class
  2569. is primitive, not if class of `obj' is primitive.
  2570. (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
  2571. * java/io/SequenceInputStream.java (close): Handle case where `in'
  2572. is already null.
  2573. * java/text/DateFormat.java (format): New method.
  2574. * mauve-libjava: Omit java.text.DateFormat.
  2575. 1999-01-08 Tom Tromey <tromey@cygnus.com>
  2576. * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
  2577. argument.
  2578. * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
  2579. argument.
  2580. (_Jv_CondNotifyAll): Likewise.
  2581. * configure: Rebuilt.
  2582. * configure.in: Change --enable-source-compilation logic to work
  2583. correctly.
  2584. 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
  2585. * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
  2586. and RUNTESTFLAGS from AM_MAKEFLAGS.
  2587. * configure.in: AM_RUNTESTFLAGS added.
  2588. * configure.host: AM_RUNTESTFLAGS added.
  2589. * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
  2590. * configure: rebuilt.
  2591. * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
  2592. * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
  2593. argv[] made conditional because embedded targets may not have
  2594. argv[].
  2595. * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
  2596. explanatory comments added in call to super.
  2597. * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
  2598. exception thrown in the test harness itself added.
  2599. * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
  2600. Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
  2601. * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
  2602. 1999-01-06 Tom Tromey <tromey@cygnus.com>
  2603. * java/io/natFile.cc (get_entry): New function.
  2604. (performList): Use get_entry.
  2605. * include/config.h.in: Rebuilt.
  2606. * acconfig.h (HAVE_READDIR_R): New define.
  2607. * configure: Rebuilt.
  2608. * configure.in: Look for readdir_r.
  2609. * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
  2610. * java/util/natDate.cc: Added copyright header.
  2611. 1999-01-05 Tom Tromey <tromey@cygnus.com>
  2612. * include/config.h.in: Rebuilt.
  2613. * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
  2614. HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
  2615. * configure: Rebuilt.
  2616. * configure.in: Check for access, stat, mkdir, rename, rmdir,
  2617. unlink, and realpath.
  2618. * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
  2619. (stat): Conditionalize on HAVE_STAT.
  2620. (attr): Likewise.
  2621. (getCanonicalPath): Conditionalize on HAVE_REALPATH.
  2622. (performMkdir): Conditionalize on HAVE_MKDIR.
  2623. (performRenameTo): Conditionalize on HAVE_RENAME.
  2624. (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
  2625. * include/config.h.in: Rebuilt.
  2626. * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
  2627. * configure: Rebuilt.
  2628. * configure.in: Check for gmtime_r and localtime_r. For cross
  2629. builds, assume they exist.
  2630. * mauve-libjava: Include java.text.DateFormatSymbols again.
  2631. * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
  2632. from setAmPmStrings.
  2633. * mauve-libjava: Omit java.text.DateFormatSymbols.
  2634. 1999-01-04 Tom Tromey <tromey@cygnus.com>
  2635. * java/io/PushbackReader.java: `off' already includes `numBytes'.
  2636. * java/io/LineNumberReader.java (read): Decrement `count' in
  2637. loop.
  2638. * java/io/BufferedWriter.java (write): Correctly determine when
  2639. incoming data would overrun buffer. Flush buffer if write causes
  2640. it to become full.
  2641. * java/io/BufferedOutputStream.java (write): Increment `count'
  2642. after copying data into buffer.
  2643. * java/io/FilterOutputStream.java (close): Call flush first.
  2644. * java/io/PipedReader.java (read): If read causes `out' to catch
  2645. up with `in', then set `in' to -1.
  2646. * java/io/LineNumberInputStream.java (read): If no bytes read,
  2647. return -1. If no bytes requested, return 0.
  2648. * java/lang/StringBuffer.java (insert): If `str' is null, use
  2649. string "null".