ChangeLog-1998 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602
  1. 1998-12-30 Anthony Green <green@cygnus.com>
  2. * README: Removed.
  3. * LIBJAVA_LICENSE, COPYING.LIB: Created.
  4. 1998-12-23 Tom Tromey <tromey@cygnus.com>
  5. * java/io/PushbackInputStream.java (read): `off' already includes
  6. `numBytes'.
  7. 1998-12-17 Tom Tromey <tromey@cygnus.com>
  8. * Makefile.in: Rebuilt.
  9. * Makefile.am (GCJ_canadian): Include target_alias.
  10. * java/lang/natFirstThread.cc (run): Require main's class to be
  11. public.
  12. 1998-12-16 Tom Tromey <tromey@cygnus.com>
  13. * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
  14. * java/util/ResourceBundle.java (getBundle): Throw
  15. NullPointerException if locale argument is null.
  16. * java/lang/natClass.cc (forName): Throw NullPointerException if
  17. argument is null.
  18. Include NullPointerException.h.
  19. 1998-12-14 Tom Tromey <tromey@cygnus.com>
  20. * java/lang/Character.java (Character): Implement Comparable.
  21. (compareTo): New methods.
  22. * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
  23. correct country and language codes.
  24. (UK, US): New constants.
  25. (setDefault): Language codes are lower-case.
  26. * java/lang/natClass.cc (getDeclaredConstructor): New method.
  27. (getDeclaredConstructors): Likewise.
  28. (getDeclaredField): Likewise.
  29. (getDeclaredFields): Likewise.
  30. (getDeclaredMethod): Likewise.
  31. (getDeclaredMethods): Likewise.
  32. (getField): Likewise.
  33. (getFields): Likewise.
  34. (getMethod): Likewise.
  35. (getMethods): Likewise.
  36. * java/lang/Class.java: Declare new methods.
  37. * java/lang/Class.h: Declare new methods.
  38. * java/lang/natString.cc: Removed `#pragma implementation'.
  39. * include/cni.h (_Jv_GetStringChars): New function.
  40. * Makefile.in: Rebuilt.
  41. * Makefile.am (java/lang/String.h): Don't generate definition for
  42. _Jv_GetStringChars.
  43. * java/lang/natString.cc: Added `#pragma implementation'.
  44. * Makefile.in: Rebuilt.
  45. * Makefile.am (libjava.zip): Put build directory first in class
  46. path to avoid bug in compiler.
  47. 1998-12-14 Anthony Green <green@cygnus.com>
  48. * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
  49. * include/javaprims.h: Add EventObject, ListResourceBundle and
  50. ResourceBundle.
  51. 1998-12-13 Anthony Green <green@cygnus.com>
  52. * mauve-libjava: Run the ResourceBundle tests.
  53. * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
  54. NULL.
  55. Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
  56. * configure.in, configure: Make --enable-gcj-classes and
  57. --enable-source-compilation the default. (Nervously...) Yeah!
  58. Based on a patch from Tom Tromey.
  59. 1998-12-13 Tom Tromey <tromey@cygnus.com>
  60. * java/util/EventObject.java: New file.
  61. * java/util/EventListener.java: New file.
  62. * include/javaprims.h: Updated class declarations.
  63. * Makefile.in: Rebuilt.
  64. * Makefile.am (nat_headers): Added Constructor.h.
  65. (java/lang/String.h): Don't inline String::length().
  66. * java/lang/Class.h (getConstructor, getConstructors): Declare.
  67. * java/lang/Class.java (initializeClass, hackRunInitializers,
  68. hackTrampoline): No need to mark `final'.
  69. (getConstructor, getConstructors): Declare.
  70. * java/lang/reflect/Field.java (equals): New method.
  71. * java/lang/natClass.cc (getConstructor): New method.
  72. (getConstructors): Likewise.
  73. Include Method.h, Field.h, Constructor.h.
  74. * java/lang/reflect/Constructor.java: New file.
  75. * java/lang/reflect/Method.java (toString): No space before open
  76. paren.
  77. (equals): Simplified.
  78. 1998-12-13 Anthony Green <green@cygnus.com>
  79. * java/util/ResourceBundle.java: New file.
  80. * java/util/ListResourceBundle.java: New file.
  81. 1998-12-12 Tom Tromey <tromey@cygnus.com>
  82. * java/lang/System.java (in, out, err): Now buffered streams by
  83. default.
  84. * include/javaprims.h: Updated class declarations.
  85. * Makefile.in: Rebuilt.
  86. * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
  87. InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
  88. Long.h, Boolean.h.
  89. (nat_files): Added natMethod.o.
  90. * java/lang/reflect/natMethod.cc: New file.
  91. * java/lang/reflect/Field.java (Field): Now extends
  92. AccessibleObject.
  93. * java/lang/reflect/AccessibleObject.java: New file.
  94. * java/lang/reflect/InvocationTargetException.java: New file.
  95. 1998-12-11 Tom Tromey <tromey@cygnus.com>
  96. * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
  97. java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
  98. Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
  99. * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
  100. 1998-12-09 Tom Tromey <tromey@cygnus.com>
  101. * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
  102. HAVE_CTIME_R.
  103. * java/lang/natCharacter.cc (toTitleCase): Handle case where
  104. character is already titlecase.
  105. * java/lang/Character.java (isJavaLetter): Follow spec.
  106. (isJavaLetterOrDigit): Likewise.
  107. * java/util/GregorianCalendar.java (gregorianCutover): Append
  108. `L'.
  109. * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
  110. 1998-12-08 Tom Tromey <tromey@cygnus.com>
  111. * java/lang/reflect/Modifier.java (toString): Replace second
  112. `static' with `synchronized'.
  113. * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
  114. * java/lang/Object.h (Object::hack12_6): Declare.
  115. * java/lang/Object.java (hack12_6): New function.
  116. 1998-12-07 Tom Tromey <tromey@cygnus.com>
  117. * include/java-array.h (__JArray::clone): Removed decl.
  118. * prims.cc (__JArray::clone): Removed.
  119. * java/lang/natObject.cc (clone): Incorporate code to clone an
  120. array.
  121. * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
  122. (_Jv_FindArrayClass): Set dtable_method_count on new class.
  123. Correctly use dtable_method_count.
  124. 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
  125. * java/lang/Double.java (isInfinite, isNaN): Handle correct
  126. IEEE754 values.
  127. 1998-12-06 Anthony Green <green@cygnus.com>
  128. * mauve-libjava: Don't test ResourceBundle.
  129. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  130. More JDK 1.2 spec fixes:
  131. * java/util/Date.java (millis): Now private.
  132. * java/text/DateFormat.java (DateFormat): Constructor now
  133. protected.
  134. * java/lang/Void.java (Void): New private constructor.
  135. * java/lang/System.java (System): New private constructor.
  136. * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
  137. body.
  138. (currentClassLoader): New method.
  139. (currentLoadedClass): New method.
  140. * java/lang/Math.java (Math): New private constructor.
  141. * java/lang/Compiler.java (Compiler): New private constructor.
  142. * java/lang/Class.java (Class): New private constructor.
  143. * java/lang/Double.java (toString): Removed access specifier from
  144. two-argument `toString' method.
  145. 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
  146. * java/lang/s_rint.c (rint): Make the variable w volatile; this
  147. causes it to be flushed from an fp register (where it may be
  148. longer than double precision) to a double in memory. This is
  149. essential to ensure correct rounding behaviour.
  150. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  151. * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
  152. function.
  153. * java/lang/Character.java (isIdentifierIgnorable): Added comment
  154. explaining apparent divergence from JDK 1.2.
  155. 1998-12-04 Per Bothner <bothner@cygnus.com>
  156. * include/no-threads.h: Remove unused parameter names.
  157. This silences a bunch of warnings.
  158. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  159. * include/config.h.in: Rebuilt.
  160. * acconfig.h (HAVE_CTIME_R): New symbol.
  161. 1998-12-03 Tom Tromey <tromey@cygnus.com>
  162. * mauve-libjava: Added many more categories to reject.
  163. Changes to follow JDK1.2 spec:
  164. * java/lang/System.java (arraycopy, init_properties, checkSetIO,
  165. setErr, setIn, setOut): No need to be `final'.
  166. * java/lang/natObject.cc (wait): `nanos' argument is an int.
  167. * java/lang/Object.h (Object::wait): `nanos' argument is an int.
  168. * java/lang/Object.java (wait): `nanos' argument is an int.
  169. * java/lang/VirtualMachineError.java: Class is abstract.
  170. * java/lang/ThreadDeath.java: Made constructors public.
  171. * java/io/FileDescriptor.java (FileDescriptor): Added missing
  172. constructor.
  173. Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
  174. * java/text/DateFormatSymbols.java (getAmPmStrings,
  175. getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
  176. Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
  177. * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
  178. writeDouble, writeByte, writeBytes, writeChar, writeChars,
  179. writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
  180. and 1.2.
  181. * java/lang/IllegalThreadStateException.java
  182. (IllegalThreadStateException): Changed extending class to match spec.
  183. * java/lang/NumberFormatException.java
  184. (java/lang/NumberFormatException): Changed extending class to match
  185. spec.
  186. * java/util/Observer.java (Observer): Changed sig to match JCL.
  187. Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
  188. * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
  189. writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
  190. signature to match JDK 1.1 and 1.2.
  191. Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
  192. * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
  193. * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
  194. * Makefile.in, configure: Rebuilt.
  195. * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
  196. name.
  197. 1998-12-02 Tom Tromey <tromey@cygnus.com>
  198. * mauve-libjava: New file.
  199. The remaining `-W -Wall' fixes:
  200. * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
  201. avoid warning.
  202. * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
  203. `else'.
  204. * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
  205. warning.
  206. * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
  207. avoid warning.
  208. * java/lang/e_log.c (__ieee754_log): Added braces to avoid
  209. ambiguous `else'.
  210. * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
  211. warning.
  212. * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
  213. suggestion.
  214. * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
  215. suggestion.
  216. * java/lang/mprec.c (Balloc): Removed unused variable.
  217. (mult): Added parentheses per gcc suggestion.
  218. (pow5mult): Likewise.
  219. (lshift): Likewise.
  220. (ulp): Likewise.
  221. (b2d): Likewise.
  222. (d2b): Likewise.
  223. * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
  224. suggestion. Added cast to `int' to avoid signed/unsigned
  225. comparison.
  226. * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
  227. parameter.
  228. (IsAssignableFrom): Likewise.
  229. (_Jv_JNI_GetObjectField): Likewise.
  230. (_Jv_JNI_GetByteField): Likewise.
  231. (_Jv_JNI_GetShortField): Likewise.
  232. (_Jv_JNI_GetIntField): Likewise.
  233. (_Jv_JNI_GetLongField): Likewise.
  234. (_Jv_JNI_GetStringLength): Likewise.
  235. (_Jv_JNI_ToReflectedField): Likewise.
  236. (_Jv_JNI_FromReflectedField): Likewise.
  237. (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
  238. * Makefile.in: Rebuilt.
  239. * Makefile.am (AM_CFLAGS): Define conditionally.
  240. (WARNINGS): New macro.
  241. (AM_CXXFLAGS): Include WARNINGS.
  242. * configure: Rebuilt.
  243. * configure.in (USING_GCC): New conditional.
  244. * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
  245. * java/lang/Character.java: Changed classification constants to
  246. type `byte' to match JDK 1.2 docs.
  247. 1998-12-01 Tom Tromey <tromey@cygnus.com>
  248. Some fixes to be `-W -Wall' clean:
  249. * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
  250. (_Jv_MarkArray): Likewise.
  251. * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
  252. (to_upper_title): Likewise.
  253. (isTitleCase): Likewise.
  254. (toTitleCase): Likewise.
  255. (getNumericValue): Likewise.
  256. (isLowerCase): Likewise.
  257. * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
  258. (avoids compiler warning).
  259. * java/lang/natClass.cc (getDeclaredClasses): Always return a
  260. value.
  261. (getDeclaringClass): Likewise.
  262. (_Jv_LookupInterfaceMethod): Likewise.
  263. (_Jv_NewClass): Removed name of unused parameter.
  264. * exception.cc (_Jv_type_matcher): Removed unused variable.
  265. (_Jv_setup_eh_info): Removed name of unused parameter.
  266. * prims.cc (_Jv_NewArray): Always return a value.
  267. (_Jv_FindClassFromSignature): Likewise.
  268. * include/java-field.h (getNameUtf8Const): Removed name of unused
  269. parameter.
  270. * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
  271. unused parameter.
  272. (_Jv_ThreadSetPriority): Likewise.
  273. * java/lang/natString.cc (hashChars): Now static.
  274. * java/lang/FirstThread.java (FirstThread): Now final.
  275. * java/io/File.java (performMkdir, performRenameTo): Now private.
  276. * java/lang/natSystem.cc (currentTimeMillis): Return a value even
  277. if no time function defined.
  278. * configure: Rebuilt.
  279. * configure.in: Look for ctime_r, ctime.
  280. * java/util/Date.java (toString): Now native.
  281. * java/util/natDate.cc (toString): Rewrote.
  282. 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
  283. * Add LDFLAGS line to allow TX39 test cases to link when cross
  284. compiling.
  285. 1998-11-23 Anthony Green <green@cygnus.com>
  286. * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
  287. no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
  288. quick-threads.cc, include/boehm-gc.h, include/cni.h,
  289. include/java-array.h, include/java-assert.h, include/java-field.h,
  290. include/javaprims.h, include/jni.h, include/jvm.h,
  291. include/no-gc.h, include/no-threads.h, include/posix-threads.h,
  292. include/quick-threads.h, java/io/BufferedInputStream.java,
  293. java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
  294. java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
  295. java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
  296. java/io/CharArrayWriter.java,
  297. java/io/CharConversionException.java, java/io/DataInput.java,
  298. java/io/DataInputStream.java, java/io/DataOutput.java,
  299. java/io/DataOutputStream.java, java/io/EOFException.java,
  300. java/io/File.java, java/io/FileDescriptor.java,
  301. java/io/FileInputStream.java, java/io/FileNotFoundException.java,
  302. java/io/FileOutputStream.java, java/io/FileReader.java,
  303. java/io/FileWriter.java, java/io/FilenameFilter.java,
  304. java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
  305. java/io/FilterReader.java, java/io/FilterWriter.java,
  306. java/io/IOException.java, java/io/InputStream.java,
  307. java/io/InputStreamReader.java,
  308. java/io/InterruptedIOException.java,
  309. java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
  310. java/io/OutputStream.java, java/io/OutputStreamWriter.java,
  311. java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
  312. java/io/PipedReader.java, java/io/PipedWriter.java,
  313. java/io/PrintStream.java, java/io/PrintWriter.java,
  314. java/io/PushbackInputStream.java, java/io/PushbackReader.java,
  315. java/io/RandomAccessFile.java, java/io/Reader.java,
  316. java/io/SequenceInputStream.java, java/io/Serializable.java,
  317. java/io/StreamTokenizer.java,
  318. java/io/StringBufferInputStream.java, java/io/StringReader.java,
  319. java/io/StringWriter.java, java/io/SyncFailedException.java,
  320. java/io/UTFDataFormatException.java,
  321. java/io/UnsupportedEncodingException.java, java/io/Writer.java,
  322. java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
  323. java/io/natFileDescriptorPosix.cc,
  324. java/lang/AbstractMethodError.java,
  325. java/lang/ArithmeticException.java,
  326. java/lang/ArrayIndexOutOfBoundsException.java,
  327. java/lang/ArrayStoreException.java, java/lang/Boolean.java,
  328. java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
  329. java/lang/Class.java, java/lang/ClassCastException.java,
  330. java/lang/ClassCircularityError.java,
  331. java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
  332. java/lang/ClassNotFoundException.java,
  333. java/lang/CloneNotSupportedException.java,
  334. java/lang/Cloneable.java, java/lang/Comparable.java,
  335. java/lang/Compiler.java, java/lang/Double.java,
  336. java/lang/Error.java, java/lang/Exception.java,
  337. java/lang/ExceptionInInitializerError.java,
  338. java/lang/FirstThread.java, java/lang/Float.java,
  339. java/lang/IllegalAccessError.java,
  340. java/lang/IllegalAccessException.java,
  341. java/lang/IllegalArgumentException.java,
  342. java/lang/IllegalMonitorStateException.java,
  343. java/lang/IllegalStateException.java,
  344. java/lang/IllegalThreadStateException.java,
  345. java/lang/IncompatibleClassChangeError.java,
  346. java/lang/IndexOutOfBoundsException.java,
  347. java/lang/InstantiationError.java,
  348. java/lang/InstantiationException.java, java/lang/Integer.java,
  349. java/lang/InternalError.java, java/lang/InterruptedException.java,
  350. java/lang/LinkageError.java, java/lang/Long.java,
  351. java/lang/Math.java, java/lang/NegativeArraySizeException.java,
  352. java/lang/NoClassDefFoundError.java,
  353. java/lang/NoSuchFieldError.java,
  354. java/lang/NoSuchFieldException.java,
  355. java/lang/NoSuchMethodError.java,
  356. java/lang/NoSuchMethodException.java,
  357. java/lang/NullPointerException.java, java/lang/Number.java,
  358. java/lang/NumberFormatException.java, java/lang/Object.h,
  359. java/lang/Object.java, java/lang/OutOfMemoryError.java,
  360. java/lang/Process.java, java/lang/Runnable.java,
  361. java/lang/Runtime.java, java/lang/RuntimeException.java,
  362. java/lang/SecurityException.java, java/lang/SecurityManager.java,
  363. java/lang/Short.java, java/lang/StackOverflowError.java,
  364. java/lang/String.java, java/lang/StringBuffer.java,
  365. java/lang/StringIndexOutOfBoundsException.java,
  366. java/lang/System.java, java/lang/Thread.java,
  367. java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
  368. java/lang/Throwable.java, java/lang/UnknownError.java,
  369. java/lang/UnsatisfiedLinkError.java,
  370. java/lang/UnsupportedOperationException.java,
  371. java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
  372. java/lang/Void.java, java/lang/natCharacter.cc,
  373. java/lang/natClass.cc, java/lang/natDouble.cc,
  374. java/lang/natFirstThread.cc, java/lang/natFloat.cc,
  375. java/lang/natMath.cc, java/lang/natObject.cc,
  376. java/lang/natRuntime.cc, java/lang/natString.cc,
  377. java/lang/natSystem.cc, java/lang/natThread.cc,
  378. java/lang/reflect/Field.java, java/lang/reflect/Member.java,
  379. java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
  380. java/text/DateFormat.java, java/text/DateFormatSymbols.java,
  381. java/text/FieldPosition.java, java/text/Format.java,
  382. java/text/NumberFormat.java, java/text/ParseException.java,
  383. java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
  384. java/util/BitSet.java, java/util/Calendar.java,
  385. java/util/ConcurrentModificationException.java,
  386. java/util/Date.java, java/util/Dictionary.java,
  387. java/util/EmptyStackException.java, java/util/Enumeration.java,
  388. java/util/GregorianCalendar.java, java/util/Hashtable.java,
  389. java/util/Locale.java, java/util/MissingResourceException.java,
  390. java/util/NoSuchElementException.java, java/util/Observable.java,
  391. java/util/Observer.java, java/util/Properties.java,
  392. java/util/Random.java, java/util/SimpleTimeZone.java,
  393. java/util/Stack.java, java/util/StringTokenizer.java,
  394. java/util/TimeZone.java, java/util/TooManyListenersException.java,
  395. java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
  396. copyright notices.
  397. * exception.cc: Include eh-common.h instead of duplicating
  398. code.
  399. 1998-11-23 Tom Tromey <tromey@cygnus.com>
  400. * configure.host: Don't add `-O2' to libjava_flags. Only add
  401. `-Os' to libjava_flags once.
  402. 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
  403. * Makefile.am: add LIBJAVA_JAVAFLAGS.
  404. * Makefile.in: likewise
  405. * acconfig.h: add ECOS conditional for configure.h
  406. * config.h.in: likewise
  407. * configure: add test for --with-ecos
  408. * configure.in: likewise
  409. * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
  410. rename call to avoid name clash.
  411. * java/lang/natSystem.cc: add eCos clock support.
  412. * java/util/natGregorianCalendar.cc: add eCos support.
  413. 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  414. * Makefile.am, Makefile.in, configure.host: tx39 build option
  415. "-G 0" added.
  416. Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
  417. * java/io/BufferedReader.java: Added more comments for clarity.
  418. (mark): Used more mnemonic name for local var extraBuffSpace.
  419. * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
  420. confusion with private method of same name in superclass.
  421. (skipRedundantLF): Set fields in special case to avoid infinite
  422. recursion. Check if markPos has been invalidated in special case.
  423. (readLine): Rewritten to use readLine method of superclass.
  424. (skip): Incorporated code from lineEnd.
  425. Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
  426. * java/io/BufferedReader.java (readLine): New method.
  427. (lineEnd): new private method.
  428. (mark): Track special case for readLine of getting '\r' at the
  429. end of the buffer.
  430. (reset): Ditto.
  431. (read): Ditto.
  432. (fill): Ditto.
  433. (skip): Ditto.
  434. * java/io/InputStreamReader.java (read): Return number chars skipped
  435. rather than requested.
  436. * java/lang/StringBuffer.java (append): Update count and differentiate
  437. between field and local variable.
  438. * java/util/Date.java (parseTz): Evaluate in minutes rather than
  439. seconds. Deal with military style time.
  440. (parse): Consistently treat all timezones in minutes until final
  441. calculation. Flag as non-local timezone. Return value in milliseconds.
  442. (setTime): Adjust for year offset from 1900.
  443. (UTC): Adjust for year offset from 1900.
  444. 1998-11-17 Tom Tromey <tromey@cygnus.com>
  445. * configure: Rebuilt.
  446. * configure.in: Switch on host, not target.
  447. * Makefile.in: Rebuilt.
  448. * Makefile.am (GCJ_no): New macro.
  449. (GCJ): Use @CANADIAN@.
  450. (GCJH_no): New macro
  451. (GCJH_canadian): New macro.
  452. (GCJH): Use @CANADIAN@.
  453. (ZIP_no): New macro.
  454. (ZIP_canadian): New macro.
  455. (ZIP): Use @CANADIAN@.
  456. * aclocal.m4, configure: Rebuilt.
  457. * configure.in (CANADIAN): Compute and subst.
  458. Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
  459. * java/io/FileDescriptor.java (finalize): Only close file
  460. descriptor if valid.
  461. 1998-11-17 Tom Tromey <tromey@cygnus.com>
  462. * prims.cc (_Jv_InitRuntime): Removed.
  463. 1998-11-16 Tom Tromey <tromey@cygnus.com>
  464. * java/io/FileOutputStream.java (close): Only close file
  465. descriptor if valid.
  466. (finalize): New method.
  467. * prims.cc (_Jv_NewObjectArray): Set vtbl last.
  468. (_Jv_NewPrimArray): Likewise.
  469. * boehm.cc (_Jv_RegisterFinalizer): Use
  470. GC_REGISTER_FINALIZER_NO_ORDER.
  471. (GC_GENERIC_MALLOC): New define.
  472. (_Jv_AllocObj): Use it.
  473. (_Jv_AllocArray): Likewise.
  474. (_Jv_AllocBytes): Likewise.
  475. (_Jv_MarkObj): Just return if vtbl not set.
  476. (_Jv_MarkArray): Likewise.
  477. (MAYBE_MARK): New macro; use everywhere.
  478. (_Jv_MarkObj): Mark fields belonging to superclasses as well.
  479. Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
  480. * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
  481. to a jlong before calculation to prevent overflow.
  482. 1998-11-16 Tom Tromey <tromey@cygnus.com>
  483. * Makefile.in: Rebuilt.
  484. * Makefile.am (nat_headers): Fixed typo.
  485. 1998-11-15 Tom Tromey <tromey@cygnus.com>
  486. * java/lang/Class.h (Class::getName): Removed definition.
  487. * Makefile.in: Rebuilt.
  488. * Makefile.am (nat_headers): Added InstantiationException.h,
  489. NoSuchMethodException.h.
  490. * java/lang/natClass.cc (clinit_name): Renamed from init_name.
  491. (init_name): New global.
  492. (hackRunInitializers): Use clinit_name.
  493. Include InstantiationException.h, NoSuchMethodException.h.
  494. (newInstance): Do some error checking (but not all). Call
  495. constructor.
  496. (forName): Throw exception if class not found.
  497. (getName): New method.
  498. (forName): Transform class name from external format to internal
  499. format before lookup.
  500. 1998-11-15 Anthony Green <green@cygnus.com>
  501. * java/lang/Class.h (Class::forName): Method is static.
  502. * java/lang/natClass.cc (newInstance): Add simple implementation.
  503. (forName): Ditto.
  504. Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
  505. * java/lang/Class.h (Class::accflags): Must be unsigned short (not
  506. int), for compatibility with jc1.
  507. 1998-11-14 Tom Tromey <tromey@cygnus.com>
  508. * include/config.h.in: Rebuilt.
  509. * acconfig.h (LINUX_THREADS): New define.
  510. * configure: Rebuilt.
  511. * configure.in: Define LINUX_THREADS if using POSIX threads on
  512. Linux. Look for pthread_mutexattr_setkind_np function.
  513. * posix-threads.cc (throw_cleanup): New function.
  514. (really_start): Push cleanup function.
  515. (_Jv_ThreadCancel): New function.
  516. (daemon_mutex, daemon_cond, non_daemon_count): New globals.
  517. (_Jv_ThreadInitData): Set `exception' field in new structure.
  518. (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
  519. thread.
  520. (_Jv_ThreadWait): New function.
  521. (_Jv_InitThreads): Initialize daemon globals.
  522. (FLAG_DAEMON): New macro.
  523. (really_start): Notify daemon_cond when non-daemon thread exits.
  524. Include <java/lang/System.h>.
  525. (struct starter): `object' field now a thread.
  526. (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
  527. * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
  528. (_Jv_ThreadWait): Removed definition.
  529. (_Jv_Thread_t): Added `exception' field.
  530. (_Jv_ThreadCancel): Removed definition.
  531. 1998-11-13 Tom Tromey <tromey@cygnus.com>
  532. * Makefile.in: Rebuilt.
  533. * Makefile.am (libjava.zip): Compute javac before changing
  534. directory.
  535. * Makefile.in: Rebuilt.
  536. * Makefile.am (libjava.zip): Include directory entries.
  537. * Makefile.in: Rebuilt.
  538. * Makefile.am (expanded): New macro.
  539. (GCJ): Use it.
  540. 1998-11-12 Tom Tromey <tromey@cygnus.com>
  541. * prims.cc (clone): New function.
  542. * include/java-array.h (__JArray::clone): Removed definition.
  543. * java/lang/natObject.cc (clone): Don't assert that class is not
  544. an array; array's `clone' method just calls this one.
  545. * Makefile.in: Rebuilt.
  546. * Makefile.am (libjava.zip): Renamed target from classes.stamp.
  547. Now creates zip file. Changed all users.
  548. (ZIP): New macro.
  549. (data_DATA): New macro.
  550. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  551. * configure: Rebuilt.
  552. * configure.in: Recognize --enable-java-gc, not --enable-gc.
  553. Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
  554. * java/io/InputStream.java (reset): Add msg to thrown exception.
  555. Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
  556. * java/io/LineNumberInputStream.java: Rewritten.
  557. * java/io/StringBufferInputStream.java: Removed extraneous import.
  558. Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
  559. * java/io/StringBufferInputStream.java: Rewritten.
  560. * java/util/Date.java (parseMonth): Optimize.
  561. (parseDayOfWeek): Created.
  562. (parse): Optimize to use parseDayOfWeek.
  563. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  564. * java/lang/StringBuffer.java (append): Handle case where STR is
  565. `null'.
  566. * include/javaprims.h: Regenerated class declarations.
  567. * configure: Rebuilt.
  568. * configure.in: Added --enable-gcj-classes,
  569. --enable-single-compilation, --enable-source-compilation flags.
  570. * Makefile.in: Rebuilt.
  571. * Makefile.am (java_io_files): New macro.
  572. (java_lang_files): Likewise.
  573. (java_text_files): Likewise.
  574. (java_util_files): Likewise.
  575. (java_files): Use new macros.
  576. (java-io.o): New target.
  577. (java-lang.o): Likewise.
  578. (java-text.o): Likewise.
  579. (java-util.o): Likewise.
  580. (src_io_files): New macro.
  581. (src_lang_files): Likewise.
  582. (src_text_files): Likewise.
  583. (src_util_files): Likewise.
  584. (class_io_files): New macro.
  585. (class_lang_files): Likewise.
  586. (class_text_files): Likewise.
  587. (class_util_files): Likewise.
  588. (class_files): Use new macros.
  589. (javao_files): Define conditionally.
  590. (.java.o): New target.
  591. ($(javao_files)): New target.
  592. (GCJ): new macro.
  593. (GCJH): Added $(EXEEXT).
  594. (CLASSPATH_ENV): Removed.
  595. (GCJCOMPILE): New macro.
  596. Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
  597. * java/util/Date.java (parse): Written from scratch.
  598. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  599. * java/lang/Throwable.java (toString): Correct sense of test for
  600. determining when to include detail message in result.
  601. * java/lang/ThreadDeath.java (ThreadDeath): Added missing
  602. constructor.
  603. Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
  604. * java/lang/Class.h: Use _Jv_RegisterClasses, not
  605. _Jv_RegisterClass.
  606. * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
  607. (_Jv_RegisterClass): Use it.
  608. * include/jvm.h (_Jv_RegisterClasses): Declare.
  609. * java/lang/natObject.cc (init): Removed.
  610. (sync_init): Never call _Jv_InitializeSyncMutex.
  611. (_Jv_InitializeSyncMutex): Don't set `init'.
  612. * prims.cc (JvRunMain): Don't run init functions.
  613. Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
  614. * java/lang/natClass.cc (initializeClass): Set state before
  615. resolving constants.
  616. * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
  617. (STATE_RESOLVED): New macro.
  618. (initializeClass): Call resolveConstants.
  619. (hackRunInitializers): Don't call resolveConstants.
  620. (_Jv_FindArrayClass): Move short-circuit return for primitive
  621. element types earlier in function.
  622. 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
  623. * prims.cc (no_memory): New global.
  624. (_Jv_makeUtf8Const): Throw no_memory.
  625. (_Jv_AllocObject): Likewise.
  626. (_Jv_NewObjectArray): Likewise.
  627. (_Jv_NewPrimArray): Likewise.
  628. (JvRunMain): Initialize no_memory.
  629. Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
  630. * java/io/FileInputStream.java: Corrected date comment.
  631. * java/io/SequenceInputStream.java: Rewritten.
  632. Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
  633. * java/lang/FirstThread.java (die): New method.
  634. * java/lang/natFirstThread.cc (die): Removed.
  635. (DIE): New macro.
  636. (run): Use `DIE', not `die'.
  637. Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
  638. * java/io/CharArrayReader.java (read): Move check into synchronized
  639. block to prevent a close while in progress.
  640. (reset): Ditto.
  641. (skip): Ditto.
  642. * java/io/PushbackReader.java (read): Ditto.
  643. (ready): Ditto.
  644. (unread): Ditto.
  645. * java/io/StringReader.java (mark): Ditto.
  646. (read): Ditto.
  647. (reset): Ditto.
  648. (skip): Ditto.
  649. Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
  650. * java/io/PipedInputStream.java: Updated status.
  651. (connect): Added code to prevent infinite recursion and to
  652. differentiate exception causes.
  653. (read): Added code to differentiate exception causes.
  654. (receive): Made exception pass string with the cause.
  655. * java/io/PipedOutputStream.java: Updated status.
  656. (connect): Added code to call connect at the other end of the pipe.
  657. Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
  658. * java/io/PipedInputStream.java (connect): Throw exception if
  659. already connected to the same output stream.
  660. (read): Do bounds checking first.
  661. Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
  662. * java/io/PipedInputStream.java: Added private boolean outClosed.
  663. (available): Removed check if output stream is open.
  664. (close): Mark the buffer as empty so available returns 0.
  665. (read): Check if the output stream was closed and then return EOF
  666. when the buffer is empty.
  667. (receive): Mark the output stream as closed when passed a -1.
  668. * java/io/PipedOutputStream.java (close): Notify the input stream
  669. that there's no more data coming.
  670. (connect): Added a FIXME comment to note more coordination needed
  671. with PipedInputStream.
  672. (flush): Added a FIXME comment to mark what this method might do
  673. instead of nothing.
  674. Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
  675. * java/io/PipedInputStream.java: Rewritten.
  676. 1998-10-30 Tom Tromey <tromey@cygnus.com>
  677. * java/lang/Throwable.java: Rewrote from scratch.
  678. * java/lang/Class.h (Class): Don't mention newMultiArray.
  679. * prims.cc (newMultiArray): Removed.
  680. (_Jv_NewMultiArray): Removed.
  681. (newArray): Removed.
  682. (new_multi_array): New function.
  683. (_Jv_NewMultiArray): Rewrote from scratch.
  684. * include/javaprims.h: Regenerated class declarations.
  685. * classes.pl (scan): Don't declare PrimClass.
  686. * include/cni.h (JvPrimClass): Use new names for classes.
  687. * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
  688. added _Jv_PrimClass.
  689. * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
  690. (_Jv_initPrimClass): Removed.
  691. (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
  692. (_Jv_AllocObject): Added comment.
  693. (_Jv_NewObjectArray): Likewise.
  694. (_Jv_NewPrimArray): Likewise.
  695. 1998-10-29 Tom Tromey <tromey@cygnus.com>
  696. * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
  697. (_Jv_FindArrayClass): Use dtable_method_count to compute size of
  698. new dtable.
  699. * java/lang/Class.h (Class): Added `dtable_method_count' field.
  700. * java/lang/natObject.cc (init): New global.
  701. (sync_init): Call _Jv_InitializeSyncMutex if required.
  702. * Makefile.in: Rebuilt.
  703. * Makefile.am (nat_headers): Added ClassLoader.h.
  704. * include/jvm.h (_Jv_FindClassFromSignature): Declare.
  705. * java/lang/Class.h (Class): simpleLookupClass, insertClass,
  706. internalAddClass, lookupArray no longer friends.
  707. _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
  708. _Jv_FindArrayClass now friends.
  709. * java/lang/natClass.cc (HASH_LEN): New macro.
  710. (HASH_UTF): Likewise.
  711. (loaded_classes): New global.
  712. (_Jv_FindClass): New function.
  713. (ClassClass): New define.
  714. (_Jv_FindClassInCache): New function.
  715. (_Jv_RegisterClass): Likewise.
  716. (_Jv_NewClass): Likewise.
  717. Include <string.h>
  718. (ObjectClass): New define.
  719. (CloneableClass): New define.
  720. * prims.cc (_Jv_FindClass): Removed.
  721. (simpleLookupClass): Removed.
  722. (insertClass): Removed.
  723. (CLASSHASHSZ): Removed.
  724. (classPool): Removed.
  725. (_Jv_RegisterClass): Removed.
  726. (internalAddClass): Removed.
  727. (ClassClass): Removed.
  728. (RuntimeClass): Removed.
  729. (lookupArray): Removed.
  730. (CloneableClass): Removed.
  731. (CLASSMAXSIG): Removed.
  732. Rearranged file to group related functions together.
  733. (_Jv_IsInstanceOf): Moved to natClass.cc.
  734. (abort_final): Removed.
  735. Removed some unused includes.
  736. (classFromSig): Removed.
  737. (_Jv_FindClassFromSignature): New function.
  738. (_Jv_initPrimClass): Renamed.
  739. (getClass): Removed.
  740. Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
  741. * java/io/FileDescriptor.java (finalize): Throws IOException
  742. instead of Throwable.
  743. * java/io/FileInputStream.java: Rewritten.
  744. * java/io/StreamTokenizer.java (nextToken): Unread newline character
  745. at the end of a comment.
  746. 1998-10-29 Tom Tromey <tromey@cygnus.com>
  747. * include/javaprims.h: Regenerated class declarations.
  748. * classes.pl (scan): Don't special-case ClassLoader.
  749. * prims.cc (processClass): Removed.
  750. (_Jv_InitClass): Removed.
  751. Removed all CSTATE_ macros.
  752. (resolveConstants): Removed.
  753. (MAXDIMS): Removed.
  754. (_Jv_NewMultiArray): Cleaned up.
  755. * Makefile.in: Rebuilt.
  756. * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
  757. * java/lang/Class.h (Class): Declare new methods. processClass no
  758. longer a friend.
  759. * java/lang/Class.java (hackTrampoline): New method.
  760. (initializeClass): Declare.
  761. (hackRunInitializers): Declare.
  762. * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
  763. (initializeClass): New method.
  764. (hackRunInitializers): New method.
  765. (init_name, void_signature): Moved from prims.cc.
  766. (_Jv_InitClass): New function.
  767. (isAssignableFrom): Don't call processClass.
  768. (STATE_NOTHING): New macro.
  769. (resolveConstants): New function.
  770. Include Thread.h.
  771. (ErrorClass): New define.
  772. * java/lang/Class.java (getClassLoader): Declare.
  773. * java/lang/ClassLoader.java: Rewrote from scratch.
  774. * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
  775. AbstractMethodError.h, IllegalAccessError.h,
  776. NoClassDefFoundError.h.
  777. * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
  778. * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
  779. longer static. Changed return type.
  780. * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
  781. * java/lang/Class.h (Class): findMethodLocal no longer a friend.
  782. * prims.cc (findMethodLocal): Removed.
  783. (processClass): Use _Jv_GetMethodLocal.
  784. 1998-10-28 Tom Tromey <tromey@cygnus.com>
  785. * prims.cc (_Jv_LookupInterfaceMethod): Removed.
  786. * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
  787. friend.
  788. * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
  789. (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
  790. * include/jni.h: Added copyright header.
  791. * include/javaprims.h: Added copyright header.
  792. * include/java-field.h: Added copyright header.
  793. * include/java-array.h: Added copyright header.
  794. * include/cni.h: Added copyright header.
  795. * include/javaprims.h: Regenerated class declarations using
  796. classes.pl; now they are complete.
  797. * classes.pl: New file.
  798. * java/lang/natMath.cc: Include <config.h>.
  799. * java/lang/reflect/natField.cc: Include <config.h>.
  800. * java/util/NativeUtil.java: Removed.
  801. * Makefile.in: Rebuilt.
  802. * Makefile.am (nat_headers): Added Math.h.
  803. * java/lang/Math.h: Removed.
  804. * java/util/natGregorianCalendar.cc: Added copyright header.
  805. Include <config.h>.
  806. * java/lang/natFloat.cc: Added copyright header.
  807. * java/lang/Byte.java: Added copyright header.
  808. * java/lang/Void.java: Added copyright header.
  809. * java/lang/Short.java: Added copyright header.
  810. Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
  811. * include/javaprims.h (java::io): Added bunch of missing classes.
  812. * java/io/DataInputStream.java (readLine): Added a special case
  813. for handling BufferedInputStream data to reduce the likelihood
  814. of a pushback error.
  815. (skipBytes): Added code to handle negative number of skip bytes.
  816. * java/io/StreamTokenizer.java: Rewritten.
  817. 1998-10-28 Tom Tromey <tromey@cygnus.com>
  818. * java/util/natGregorianCalendar.cc (computeFields): Call
  819. getRawOffset as a method.
  820. * include/javaprims.h (java::io): Added FilterOutputStream.
  821. * Makefile.in: Rebuilt.
  822. * Makefile.am (nat_headers): Added PrintStream.h,
  823. FilterOutputStream.h.
  824. * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
  825. PrintStream.h.
  826. (die): New function.
  827. (run): Die if `main' not found, is not public, or is not static.
  828. * boehm.cc (_Jv_MarkObj): Use new field names.
  829. * include/java-field.h (JvGetFirstInstanceField): Use new field
  830. names.
  831. (JvNumInstanceFields): Likewise.
  832. * java/lang/natClass.cc (isAssignableFrom): Use new field names.
  833. (getInterfaces): Likewise.
  834. * prims.cc (CLASS_CONSTANTS): Removed.
  835. (CLASS_CONST_SIZE): Likewise.
  836. (CLASS_CONST_TAG): Likewise.
  837. (CLASS_CONST_DATA): Likewise.
  838. (CLASS_CONST_UTF8): Likewise.
  839. (WORD2UTF): Likewise.
  840. (CLASS_CLASS): Likewise.
  841. (CLASS_PRIM_SIG): Likewise.
  842. (CLASS_ARRAY_CACHE): Likewise.
  843. (HASH_CHARS): Likewise.
  844. (hashClassName): Likewise.
  845. Many changes to use new field names.
  846. * java/lang/Class.h (Class): Renamed fields to track compiler.
  847. 1998-10-27 Tom Tromey <tromey@cygnus.com>
  848. * java/lang/natClass.cc: Use #pragma implementation.
  849. (getComponentType): Moved into header.
  850. (getModifiers): Likewise.
  851. (getName): Likewise.
  852. (getSuperclass): Likewise.
  853. (isArray): Likewise.
  854. (isPrimitive): Likewise.
  855. * include/jvm.h (_Jv_FindClass): Declare.
  856. * java/lang/natFirstThread.cc (run): Updated for new Class.h.
  857. * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
  858. * include/javaprims.h: Use _Jv_Method, not JvMethod.
  859. * java/lang/Class.h: Rewrote from scratch.
  860. * prims.cc: Many changes to work with new Class.h.
  861. * include/java-field.h (CLASS_FIELDS): Removed.
  862. (CLASS_SFIELDS): Likewise.
  863. (CLASS_IFIELDS): Likewise.
  864. (CLASS_NFIELDS): Likewise.
  865. (CLASS_NIFIELDS): Likewise.
  866. (CLASS_NSFIELDS): Likewise.
  867. (CLASS_FSIZE): Likewise.
  868. (JvGetFirstInstanceField): Rewrote.
  869. (JvNumInstanceFields): Likewise.
  870. * java/lang/Object.h: Added copyright comment.
  871. Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
  872. * java/text: New package directory.
  873. * java/text/FieldPosition.java: New class.
  874. * java/text/ParsePosition.java: New class.
  875. * java/text/ParseException.java: New Exception class.
  876. * java/text/Format.java: New class.
  877. * java/text/NumberFormat.java: New (empty placeholder) class.
  878. * java/text/DateFormatSymbols.java: New class (no Locales support).
  879. * java/text/DateFormat.java: New Format class (incomplete).
  880. * java/text/SimpleDateFormat.java: New DateFormat class.
  881. * include/javaprims.h (java::test): Added new package and classes.
  882. * java/util/Calendar.java (clone): New method.
  883. * java/util/Date.java (toString): Added non-native implementation.
  884. (parse): Made public instead of synchronized.
  885. * java/util/natDate.cc (toString): Removed.
  886. * java/util/natGregorianCalendar.cc (computeFields):
  887. Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
  888. 1998-10-27 Tom Tromey <tromey@cygnus.com>
  889. * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
  890. * prims.cc (lookupArray): Added explanatory comment.
  891. * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
  892. class. Mark the class of each object.
  893. (_Jv_MarkArray): Mark the object's class.
  894. * configure: Rebuilt.
  895. * configure.in: Create java-gc.h.
  896. * include/boehm-gc.h: New file.
  897. * include/no-gc.h: New file.
  898. * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
  899. defined.
  900. * java/lang/Object.h: Include java-gc.h.
  901. (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
  902. friends, if defined.
  903. * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
  904. signature.
  905. (_Jv_MarkArray): Renamed from mark_array; changed signature.
  906. 1998-10-26 Tom Tromey <tromey@cygnus.com>
  907. * java/lang/natCharacter.cc (isSpaceChar): Look for line and
  908. paragraph separators, not numbers.
  909. * java/io/Writer.java (write): Removed write(char) to avoid
  910. ambiguity.
  911. * java/util/Properties.java: Rewrote from scratch.
  912. * include/javaprims.h (java::io): Added PrintWriter,
  913. BufferedWriter, PushbackReader.
  914. Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
  915. * java/lang/System.java: exit() is a static method.
  916. 1998-10-26 Tom Tromey <tromey@cygnus.com>
  917. * java/lang/natString.cc (_Jv_NewStringUTF): Use
  918. _Jv_strLengthUtf8.
  919. (_Jv_NewStringUtf8Const): Likewise.
  920. * include/jvm.h (_Jv_strLengthUtf8): Declare.
  921. * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
  922. * java/lang/Object.h (Object): Add mark_array as friend function.
  923. * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
  924. _Jv_AllocBytes, to ensure that header is marked.
  925. * boehm.cc (mark_obj): Push sync_info field for all objects, not
  926. just Objects.
  927. (mark_array): Push sync_info field for array.
  928. 1998-10-24 Tom Tromey <tromey@cygnus.com>
  929. * java/lang/String.java (String): Updated for StringBuffer
  930. change.
  931. * java/util/BitSet.java: Renamed field (data->bits) to conform to
  932. serialization spec.
  933. * java/lang/StringBuffer.java: Renamed fields to conform to
  934. serialization spec: buffer->value, next->count, copy->shared.
  935. Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
  936. * java/util/TimeZone.java: New class.
  937. * java/util/SimpleTimeZone.java: New class.
  938. * java/util/Locale.java: New file.
  939. * java/util/Calendar.java: Make almost complete.
  940. * java/util/GregorianCalendar.java
  941. * java/util/natGregorianCalendar.cc: New file.
  942. * java/util/Date.java: Re-written from scratch.
  943. * java/util/natDate.cc (setTime): Removed - no longer native.
  944. * include/javaprims.h (java::util): Add new classes.
  945. * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
  946. (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
  947. Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
  948. * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
  949. returning it as a jint.
  950. 1998-10-23 Tom Tromey <tromey@cygnus.com>
  951. * prims.cc (arg_vec, main_group, main_thread): New globals.
  952. (JvRunMain): Use them.
  953. Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
  954. * java/io/DataInputStream.java: Rewritten.
  955. * java/io/DataOutputStream.java (writeUTF): OR secondary and
  956. tertiary bytes with 0x80 per spec.
  957. 1998-10-23 Tom Tromey <tromey@cygnus.com>
  958. * java/lang/String.java (init): Changed name of `copy' argument.
  959. * java/lang/natString.cc (init): Inverted sense of `copy'
  960. argument.
  961. * java/lang/Object.h (Object): Declare mark_obj as a friend.
  962. * java/lang/Class.h (Class): Declare mark_obj as a friend.
  963. * boehm.cc (ObjectClass): New define.
  964. (ClassClass): Likewise.
  965. (mark_obj): Special-case Object and Class.
  966. * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
  967. * java/util/BitSet.java: Rewrote from scratch.
  968. * prims.cc (lookupArray): Removed useless cast.
  969. * java/lang/natObject.cc: Use `#pragma implementation'.
  970. * java/lang/String.java (init): Added `copy' argument.
  971. (String): Look in StringBuffer to find char array.
  972. * java/lang/natString.cc (init): Added `copy' argument.
  973. * java/lang/StringBuffer.java: Rewrote from scratch.
  974. * java/lang/Compiler.java: Rewrote from scratch.
  975. * java/lang/Throwable.java: Don't use NativeLang.
  976. * include/javaprims.h (java::lang): Don't mention NativeLang.
  977. * java/lang/Process.java: Rewrote from scratch.
  978. * java/lang/SecurityManager.java (classLoaderDepth): Commented
  979. out.
  980. (currentClassLoader): Likewise.
  981. (currentLoadedClass): Likewise.
  982. * java/lang/natClass.cc (getClassLoader): Commented out.
  983. * java/lang/Class.java (getClassLoader): Commented out.
  984. * java/lang/Compiler.java: Removed.
  985. * java/lang/NativeLang.java: Removed.
  986. * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
  987. * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
  988. * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
  989. (_Jv_hashUtf8String): Now static.
  990. * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
  991. name of return type.
  992. * java/lang/Class.h (Class): Declare checkMemberAccess.
  993. * Makefile.in: Rebuilt.
  994. * Makefile.am (nat_headers): Added Member.h.
  995. * java/lang/natClass.cc: Include Member.h.
  996. (getDeclaredClasses): Call checkMemberAccess.
  997. * java/lang/Class.java (checkMemberAccess): Call
  998. SecurityManager.checkMemberAccess.
  999. Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
  1000. * java/lang/SecurityManager.java: Rewritten.
  1001. Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
  1002. * java/applet/Applet.java, java/applet/AppletContext.java,
  1003. java/applet/AppletStub.java, java/applet/AudioClip.java,
  1004. java/awt/AWTError.java, java/awt/AWTException.java,
  1005. java/awt/BorderLayout.java, java/awt/Button.java,
  1006. java/awt/Canvas.java, java/awt/CardLayout.java,
  1007. java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
  1008. java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
  1009. java/awt/Color.java, java/awt/Component.java,
  1010. java/awt/Container.java, java/awt/Dialog.java,
  1011. java/awt/Dimension.java, java/awt/Event.java,
  1012. java/awt/FileDialog.java, java/awt/FlowLayout.java,
  1013. java/awt/Font.java, java/awt/FontMetrics.java,
  1014. java/awt/Frame.java, java/awt/Graphics.java,
  1015. java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
  1016. java/awt/GridLayout.java, java/awt/Image.java,
  1017. java/awt/Insets.java, java/awt/Label.java,
  1018. java/awt/LayoutManager.java, java/awt/List.java,
  1019. java/awt/MediaTracker.java, java/awt/Menu.java,
  1020. java/awt/MenuBar.java, java/awt/MenuComponent.java,
  1021. java/awt/MenuContainer.java, java/awt/MenuItem.java,
  1022. java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
  1023. java/awt/Rectangle.java, java/awt/Scrollbar.java,
  1024. java/awt/TextArea.java, java/awt/TextComponent.java,
  1025. java/awt/TextField.java, java/awt/Toolkit.java,
  1026. java/awt/Window.java, java/awt/image/ColorModel.java,
  1027. java/awt/image/CropImageFilter.java,
  1028. java/awt/image/DirectColorModel.java,
  1029. java/awt/image/FilteredImageSource.java,
  1030. java/awt/image/ImageConsumer.java,
  1031. java/awt/image/ImageFilter.java,
  1032. java/awt/image/ImageObserver.java,
  1033. java/awt/image/ImageProducer.java,
  1034. java/awt/image/IndexColorModel.java,
  1035. java/awt/image/MemoryImageSource.java,
  1036. java/awt/image/PixelGrabber.java,
  1037. java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
  1038. java/awt/peer/CanvasPeer.java,
  1039. java/awt/peer/CheckboxMenuItemPeer.java,
  1040. java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
  1041. java/awt/peer/ComponentPeer.java,
  1042. java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
  1043. java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
  1044. java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
  1045. java/awt/peer/MenuBarPeer.java,
  1046. java/awt/peer/MenuComponentPeer.java,
  1047. java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
  1048. java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
  1049. java/awt/peer/TextAreaPeer.java,
  1050. java/awt/peer/TextComponentPeer.java,
  1051. java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
  1052. java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
  1053. java/net/DatagramPacket.java, java/net/DatagramSocket.java,
  1054. java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
  1055. java/net/MalformedURLException.java, java/net/NativeNet.java,
  1056. java/net/ProtocolException.java, java/net/ServerSocket.java,
  1057. java/net/Socket.java, java/net/SocketException.java,
  1058. java/net/SocketImpl.java, java/net/SocketImplFactory.java,
  1059. java/net/URL.java, java/net/URLConnection.java,
  1060. java/net/URLEncoder.java, java/net/URLStreamHandler.java,
  1061. java/net/URLStreamHandlerFactory.java,
  1062. java/net/UnknownHostException.java,
  1063. java/net/UnknownServiceException.java: Removed.
  1064. 1998-10-22 Tom Tromey <tromey@cygnus.com>
  1065. * prims.cc (_Jv_AllocObject): Register finalizer if class'
  1066. finalizer is not Object.finalize.
  1067. (internalAddClass): Don't set `final' member of class.
  1068. * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
  1069. other places that know about finalize() location.
  1070. * java/lang/Class.h (Class): Removed `final' field.
  1071. * aclocal.m4, configure: Rebuilt.
  1072. * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
  1073. AC_CHECK_PROGS; otherwise the CXX cache variable might not be
  1074. set.
  1075. * configure.in (AC_OUTPUT): Pass CXX to config.status.
  1076. * Makefile.in: Rebuilt.
  1077. * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
  1078. 1998-10-21 Tom Tromey <tromey@cygnus.com>
  1079. * java/lang/Object.java (finalize): Move to be first method in
  1080. class.
  1081. * configure: Rebuilt.
  1082. * configure.in (GCINCS): Include contents of boehm-cflags file.
  1083. Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1084. * java/lang/ArrayIndexOutOfBoundsException.java
  1085. (ArrayIndexOutOfBoundsException): Fixed string literal.
  1086. * java/lang/StringIndexOutOfBoundsException.java
  1087. (StringIndexOutOfBoundsException): Fixed string literal.
  1088. 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  1089. * natFileDescriptorEcos.cc added.
  1090. * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
  1091. 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  1092. * acconfig.h: test for __int32_t and __uint32_t added.
  1093. * include/config.h.in: test for __int32_t and __uint32_t added.
  1094. * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
  1095. * java/lang/mprec.h: test for __int32_t and __uint32_t added.
  1096. * configure.in: test for __int32_t and __uint32_t added.
  1097. * configure: test for __int32_t and __uint32_t added.
  1098. * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
  1099. * configure.in: Test for --enable ecos and link
  1100. natFileDescriptor.cc to natFileDescriptorEcos.cc or
  1101. natFileDescriptorPosix.cc
  1102. * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
  1103. Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
  1104. * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
  1105. in isn't negative.
  1106. * java/io/CharArrayReader.java (close): Synchronize on lock
  1107. object per Reader contract.
  1108. (read): Synchronize on lock obj. Verify that reader wasn't closed.
  1109. (reset): Synchronize on lock obj. Verify that reader wasn't closed.
  1110. (skip): Synchronize on lock obj. Verify that reader wasn't closed.
  1111. Ensure that arg passed in isn't negative.
  1112. * java/io/FilterReader.java (FilterReader): Use the lock obj when
  1113. constructing the superclass.
  1114. * java/io/PushbackReader.java (close): Synchronize on lock
  1115. object per Reader contract.
  1116. (read): Synchronize on lock obj. Verify that reader wasn't closed.
  1117. (ready): Synchronize on lock obj. Throw IOException if reader
  1118. wasn't closed.
  1119. (reset): Synchronize on lock obj. Verify that reader wasn't closed.
  1120. (skip): Synchronize on lock obj. Verify that reader wasn't closed.
  1121. Ensure that arg passed in isn't negative.
  1122. (unread): Synchronize on lock obj. Verify that reader wasn't closed.
  1123. * java/io/StringReader.java: Created.
  1124. Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
  1125. * java/io/CharArrayReader.java (mark): Removed synchronized modifier
  1126. to match JCL.
  1127. (read): Removed synchronized modifier to match JCL.
  1128. (reset): Removed synchronized modifier to match JCL.
  1129. (skip): Removed synchronized modifier to match JCL.
  1130. Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
  1131. * java/io/PushbackReader.java (PushbackReader): Made
  1132. constructors public.
  1133. 1998-10-17 Tom Tromey <tromey@cygnus.com>
  1134. * java/io/PushbackInputStream.java (PushbackInputStream): Made
  1135. constructors public.
  1136. 1998-10-16 Anthony Green <green@cygnus.com>
  1137. * aclocal.m4, configure: Rebuilt.
  1138. * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
  1139. configure.host.
  1140. * configure.host: Rewrote.
  1141. * Makefile.in: Rebuilt.
  1142. * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
  1143. (AM_CFLAGS): New macro.
  1144. ($(c_files)): Use COMPILE macro.
  1145. (EXTRA_libjava_a_SOURCES): Added dummy file to work around
  1146. automake problem(s).
  1147. Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
  1148. * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
  1149. * java/io/CharArrayReader.java: Created.
  1150. Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
  1151. * java/io/PushbackInputStream.java (PushbackInputStream): Changed
  1152. size check to allow 0 per JCL.
  1153. * java/io/PushbackReader.java: Created.
  1154. 1998-10-16 Tom Tromey <tromey@cygnus.com>
  1155. * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
  1156. <sys/time.h> includes.
  1157. * java/io/natFile.cc: Conditionalize <unistd.h> include.
  1158. * include/no-threads.h: Conditionalize <unistd.h> include on
  1159. HAVE_UNISTD_H.
  1160. Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
  1161. * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
  1162. is defined.
  1163. Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
  1164. * java/io/FilterReader.java: Created.
  1165. Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
  1166. * java/io/PushbackInputStream.java: Rewritten.
  1167. * java/io/BufferedInputStream.java (BufferedInputStream): Check
  1168. that size passed to constructor is legal.
  1169. (read): Check that args passed in are legal.
  1170. (skip): Rewritten to get rid of the temporary buffer.
  1171. (refill): Added marklimit check to grow the buffer.
  1172. * java/io/ByteArrayInputStream.java (read): Optimized invalid args
  1173. check.
  1174. (bytesAvail): Removed.
  1175. (read): Changed bytesAvail to Math.min.
  1176. (skip): Changed bytesAvail to Math.min.
  1177. * java/io/InputStream.java (read): Got rid of extraneous exceptions
  1178. from the throws clause.
  1179. (skip): Rewritten to use a temporary buffer.
  1180. Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
  1181. * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
  1182. some target OSes
  1183. * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
  1184. * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
  1185. to write the double one word at a time.
  1186. Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
  1187. * java/io/BufferedInputStream.java: Rewritten.
  1188. 1998-10-12 Tom Tromey <tromey@cygnus.com>
  1189. * jni.cc: Include config.h and stddef.h.
  1190. * java/lang/Class.h (_dispatchTable): Removed again.
  1191. Removed all ACC_* defines again.
  1192. Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
  1193. * Makefile.am (nat_files): Add netField.o.
  1194. (libjava_a_SOURCES): Add jni.cc.
  1195. (java/lang/reflect/Field.h): New rule.
  1196. * Makefile.in: Re-generated.
  1197. * include/javaprims.h: Add some extra class and typedefs.
  1198. * include/jni.h: New file.
  1199. * jni.cc: New file.
  1200. * include/java-field.h: New file.
  1201. * include/jvm.h: #include <java-field.h>.
  1202. * boehm.cc: #include <java-field.h>.
  1203. * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
  1204. * java/lang/reflect/Member.java: New class.
  1205. * java/lang/reflect/Field.java: New class. (Very incomplete.)
  1206. * java/lang/reflect/natField.cc: New file. (Very incomplete.)
  1207. Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
  1208. * Makefile.in, aclocal.m4, configure, test/Makefile.in,
  1209. testsuite/Makefile.in: Rebuilt.
  1210. * Makefile.am, acinclude.m4, configure.in: Add multilib support.
  1211. * configure.host: Created.
  1212. 1998-10-10 Tom Tromey <tromey@cygnus.com>
  1213. * java/lang/natObject.cc (sync_init): Always allocate a new
  1214. sync_info.
  1215. 1998-10-09 Tom Tromey <tromey@cygnus.com>
  1216. * java/io/ByteArrayInputStream.java (mark): Renamed from
  1217. `mark_FIXME'.
  1218. * java/io/FileOutputStream.java (finalize): Removed.
  1219. * java/io/FileDescriptor.java (finalize): New method.
  1220. Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
  1221. * ByteArrayInputStream.java: Corrected status comment.
  1222. Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
  1223. * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
  1224. 1998-10-08 Tom Tromey <tromey@cygnus.com>
  1225. * prims.cc (lookupArray): Use static array to initialize list of
  1226. interfaces.
  1227. Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
  1228. * prims.cc (lookupArray): Initialize the msize for new
  1229. array classes.
  1230. Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
  1231. * configure: Rebuilt.
  1232. * configure.in: Check for fsync and sleep.
  1233. * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
  1234. * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
  1235. HAVE_SLEEP. Include config.h.
  1236. * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
  1237. * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
  1238. with HAVE_FSYNC.
  1239. 1998-10-08 Tom Tromey <tromey@cygnus.com>
  1240. * java/io/natFile.cc: Don't include SecurityManager.h.
  1241. (performList): Renamed.
  1242. (performMkdir): Likewise.
  1243. (performRenameTo): Likewise.
  1244. (performDelete): Likewise.
  1245. Include <stdlib.h>.
  1246. * java/io/File.java (performDelete): Renamed from natDelete.
  1247. (list): Now written in Java.
  1248. (performList): New method.
  1249. (performMkdir): New method.
  1250. (mkdir): Now written in Java.
  1251. (performRenameTo): New method.
  1252. (renameTo): Now written in Java.
  1253. 1998-10-06 Tom Tromey <tromey@cygnus.com>
  1254. * Makefile.in: Rebuilt.
  1255. * Makefile.am (ETAGS_ARGS): New macro.
  1256. (TAGS_DEPENDENCIES): Likewise.
  1257. Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
  1258. * Makefile.in: Rebuilt.
  1259. * Makefile.am: Use -classpath option with javac.
  1260. Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
  1261. * java/io/FileOutputStream.java (finalize): Call
  1262. super.finalize().
  1263. Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
  1264. * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
  1265. with newlib's libm.
  1266. * java/lang/mprec.c: Ditto.
  1267. * java/lang/mprec.h: Include math.h for HUGE_VAL when
  1268. cross-compiling.
  1269. Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
  1270. * java/io/InputStream.java (skip): Make local var i a long.
  1271. Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
  1272. * java/lang/natObject.cc (clone): Use memcpy, not memmove.
  1273. * prims.cc (lookupArray): Use memcpy, not memmove.
  1274. * include/config.h.in: Rebuilt.
  1275. * acconfig.h (HAVE_MEMCPY): Added.
  1276. * configure: Rebuilt.
  1277. * configure.in: Check for memcpy again.
  1278. * java/io/RandomAccessFile.java (RandomAccessFile): Use
  1279. String.compareTo, not ==.
  1280. * java/lang/Class.h (Class): Use _Jv_DispatchTable.
  1281. (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
  1282. * java/lang/natObject.cc (struct _dispatchTable): Removed.
  1283. * include/jvm.h (struct _Jv_DispatchTable): New structure.
  1284. * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
  1285. into new array's dtable.
  1286. (_Jv_AllocObject): Use _Jv_DispatchTable.
  1287. (_Jv_NewPrimArray): Likewise.
  1288. (_Jv_NewObjectArray): Likewise.
  1289. Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1290. * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
  1291. offending index value.
  1292. (_Jv_NewPrimArray): Throw NegativeArraySizeException when
  1293. appropriate.
  1294. * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
  1295. * java/lang/Throwable.java: (Throwable): fixed argument to this().
  1296. Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
  1297. * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
  1298. * java/io/OutputStream.java (write): Use off and len parameters to
  1299. output partial byte array.
  1300. * java/io/BufferedReader.java, java/io/FileReader.java,
  1301. java/io/InputStreamReader.java, java/io/LineNumberReader.java,
  1302. java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
  1303. java/io/Reader.java, java/io/UnsupportedEncodingException.java,
  1304. java/io/Writer.java: Added COPYRIGHT-TBD comment.
  1305. * include/javaprims.h (java::lang): Added
  1306. ExceptionInInitializerError, IllegalStateException,
  1307. NoSuchFieldException, and UnsupportedOperationException.
  1308. Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
  1309. * java/lang/natObject.cc (CloneableClass): Is a Class, not a
  1310. Class*.
  1311. * include/java-array.h (__JArray): Added clone method.
  1312. * prims.cc (CloneableClass): New define.
  1313. (lookupArray): Initialize array class to indicate that it
  1314. implements Cloneable.
  1315. * java/lang/Class.h: Removed all ACC_* defines.
  1316. * prims.cc: Include Modifier.h.
  1317. (_Jv_LookupInterfaceMethod): Use methods in
  1318. java.lang.reflect.Modifier, not ACC_ defines.
  1319. * java/lang/Class.h (Class): Declare getClasses,
  1320. getDeclaredClasses, getDeclaringClass, getModifiers,
  1321. * java/lang/Class.java: Rewrote from scratch.
  1322. * include/javaprims.h (java::lang): Added reflect and
  1323. reflect::Modifier.
  1324. * Makefile.in: Rebuilt.
  1325. * Makefile.am (nat_headers): Added Modifier.h.
  1326. * prims.cc (_Jv_IsInstanceOf): Return false if class is
  1327. primitive.
  1328. Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
  1329. * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
  1330. instead of test and abort.
  1331. * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
  1332. remove compiler warning.
  1333. Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  1334. * java/lang/natDouble.cc: zero terminate string.
  1335. * strtod.c: Set errno if no digits are found in fraction.
  1336. Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
  1337. * java/lang/reflect/Modifier.java: New file.
  1338. * java/lang/VirtualMachineError.java: Rewrote from scratch.
  1339. * java/lang/VerifyError.java: Rewrote from scratch.
  1340. * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
  1341. * java/lang/UnknownError.java: Rewrote from scratch.
  1342. * java/lang/StackOverflowError.java: Rewrote from scratch.
  1343. * java/lang/OutOfMemoryError.java: Rewrote from scratch.
  1344. * java/lang/InternalError.java: Rewrote from scratch.
  1345. * java/lang/IllegalAccessError.java: Rewrote from scratch.
  1346. * java/lang/ExceptionInInitializerError.java: New file.
  1347. * java/lang/Error.java: Rewrote from scratch.
  1348. * java/lang/ClassFormatError.java: Rewrote from scratch.
  1349. * java/lang/ClassCircularityError.java: Rewrote from scratch.
  1350. * java/lang/AbstractMethodError.java: Rewrote from scratch.
  1351. * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
  1352. * java/lang/NoSuchFieldError.java: Rewrote from scratch.
  1353. * java/lang/LinkageError.java: Rewrote from scratch.
  1354. * java/lang/IncompatibleClassChangeError.java: Rewrote from
  1355. scratch.
  1356. * java/lang/NoSuchMethodError.java: Rewrote from scratch.
  1357. * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
  1358. * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
  1359. friend.
  1360. * include/cni.h (JvAllocObject): Moved from prims.cc.
  1361. Include Class.h.
  1362. * prims.cc (JvAllocObject): Moved to cni.h.
  1363. (_Jv_AllocObject): Use _Jv_FinalizeObject.
  1364. (finalize_name): Removed.
  1365. Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
  1366. * java/lang/Class.h (Class): Added size() method.
  1367. * prims.cc (_Jv_MonitorEnter): Removed.
  1368. (_Jv_MonitorExit): Removed.
  1369. * java/lang/Object.h (JvSyncInfo): Removed.
  1370. * Makefile.in: Rebuilt.
  1371. * Makefile.am (nat_headers): Added Cloneable.h,
  1372. CloneNotSupportedException.h.
  1373. * java/lang/Object.h: Rewrote.
  1374. * java/lang/natObject.cc: Rewrote from scratch.
  1375. * java/lang/Object.java: Rewrote from scratch.
  1376. * java/io/natFile.cc: Conditionally include <dirent.h>.
  1377. (list): If no <dirent.h>, always return NULL.
  1378. * configure: Rebuilt.
  1379. * configure.in: Check for dirent.h.
  1380. * prims.cc (lookupArray): Don't use sprintf.
  1381. * java/util/Hashtable.java (containsKey): Use `abs' to compute
  1382. initial index.
  1383. (get): Likewise.
  1384. (put): Likewise.
  1385. (rehash): Likewise.
  1386. (remove): Likewise.
  1387. * java/util/Hashtable.java (hsize): Renamed from size to avoid
  1388. name conflict with method.
  1389. * include/javaprims.h (java::util): Added HashtableEntry.
  1390. Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
  1391. * java/util/Hashtable.java: Rewritten.
  1392. Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
  1393. * java/io/natFileDescriptor.cc (write): Correctly test `write'
  1394. return value.
  1395. (write): Likewise.
  1396. * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
  1397. not `curr_nt'.
  1398. * posix-threads.cc (_Jv_CondWait): Now returns int.
  1399. * include/javaprims.h (java::lang): Added
  1400. IllegalMonitorStateException.
  1401. * Makefile.in: Rebuilt.
  1402. * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
  1403. * include/no-threads.h (_Jv_CondDestroy): Removed.
  1404. (_Jv_MutexDestroy): Removed.
  1405. (_Jv_CondWait): Now returns int.
  1406. (_Jv_CondNotify): Likewise. Added mutex argument.
  1407. (_Jv_CondNotifyAll): Likewise.
  1408. (_Jv_MutexLock): Always succeed.
  1409. (_Jv_MutexUnlock): Likewise.
  1410. * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
  1411. (_Jv_HaveMutexDestroy): Define.
  1412. (_Jv_CondNotify): Now returns int. Added mutex argument.
  1413. (_Jv_CondNotifyAll): Likewise.
  1414. * include/quick-threads.h (_Jv_CondDestroy): Removed.
  1415. (_Jv_MutexDestroy): Removed.
  1416. (_Jv_CondWait): Now returns int.
  1417. (_Jv_CondNotify): Likewise. Added mutex argument.
  1418. (_Jv_CondNotifyAll): Likewise.
  1419. * java/lang/natObject.cc (finalize_sync_info): New function.
  1420. (init_mutex): Initialize `init' and register finalizer if
  1421. required.
  1422. (CHECK): New macro.
  1423. (init_mutex): Use it.
  1424. (notify): Use it.
  1425. (notifyAll): Use it.
  1426. (wait): Use it.
  1427. (notify): Throw IllegalMonitorStateException on failure.
  1428. (notifyAll): Likewise.
  1429. (wait): Likewise. Also, throw InterruptedException if
  1430. appropriate.
  1431. Include cni.h, Thread.h, IllegalMonitorStateException.h,
  1432. InterruptedException.h, IllegalArgumentException.h.
  1433. * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
  1434. * java/lang/natString.cc: Renamed all `JvPriv' functions.
  1435. * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
  1436. * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
  1437. * java/lang/natObject.cc: Renamed all `JvPriv' functions.
  1438. * java/lang/natThread.cc: Renamed all `JvPriv' functions.
  1439. * quick-threads.cc: Renamed all `JvPriv' functions.
  1440. * prims.cc: Renamed all `JvPriv' functions.
  1441. * posix-threads.cc: Renamed all `JvPriv' functions.
  1442. * nogc.cc: Renamed all `JvPriv' functions.
  1443. * no-threads.cc: Renamed all `JvPriv' functions.
  1444. * boehm.cc: Renamed all `JvPriv' functions.
  1445. * include/quick-threads.h: Renamed all `JvPriv' functions.
  1446. * include/posix-threads.h: Renamed all `JvPriv' functions.
  1447. * include/no-threads.h: Renamed all `JvPriv' functions.
  1448. * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
  1449. * include/no-threads.h (JvPrivCondWait): Wrote minimal
  1450. implementation.
  1451. (JvPrivCondNotify): Do nothing.
  1452. (JvPrivCondNotifyAll): Do nothing.
  1453. * prims.cc (processClass): Handle case where state is
  1454. DOING_CONSTINIT.
  1455. * java/lang/natFirstThread.cc: Include <stdlib.h>
  1456. * configure: Rebuilt.
  1457. * configure.in: Fixed sense of --enable-libjava-debug.
  1458. * java/lang/natThread.cc (join): Declare `t' outside the loop so
  1459. it can be used afterward by the assertion.
  1460. * configure: Rebuilt.
  1461. * configure.in: When cross-compiling, assume alloca.
  1462. * java/lang/natDouble.cc: Updated alloca magic to avoid use of
  1463. __builtin_alloca (autoconf docs are wrong here).
  1464. * java/io/natFileDescriptor.cc (close): Set fd to -1 before
  1465. closing.
  1466. (available): Use `FD_ZERO' (typo fix).
  1467. Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
  1468. * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
  1469. java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
  1470. struct _Jv_Bigint.
  1471. * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
  1472. java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
  1473. struct _Jv_reent.
  1474. * java/lang/natDouble.cc: layout changed to match GNU coding standard.
  1475. Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
  1476. * java/lang/natDouble.cc: Declare alloca safely.
  1477. * configure, include/config.h.in: Rebuilt.
  1478. * configure.in: Add alloca check.
  1479. Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
  1480. * java/lang/natThread.cc (finish_): Hold mutex for interrupt
  1481. condition while calling notify.
  1482. (join): Remove `curr_nt' from `nt's join list, not vice versa.
  1483. (interrupt): Hold mutex for interrupt condition while calling
  1484. notify.
  1485. * java/lang/natString.cc (init): Allocate and try to read `count'
  1486. characters, not `count - offset' characters.
  1487. * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
  1488. Correctly compute `count'.
  1489. * java/lang/Boolean.java (getBoolean): Return false if property
  1490. not found.
  1491. * java/lang/System.java (setProperties): Set prop_init.
  1492. Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
  1493. * java/io/PrintStream.java (println): Use line.separator, not
  1494. file.separator.
  1495. * java/lang/System.java (out, err): Make both autoflush streams.
  1496. * java/io/ByteArrayOutputStream.java (write): Increment `count'.
  1497. * include/config.h.in: Rebuilt.
  1498. * acconfig.h (HAVE_MEMCPY): Removed.
  1499. * configure: Rebuilt.
  1500. * configure.in: Never define HAVE_MEMCPY.
  1501. * java/lang/natString.cc: Don't include OutOfMemoryError.h or
  1502. Class.h.
  1503. (_Jv_AllocString): Use JvAllocObject again.
  1504. * java/lang/Class.h (thread): New field.
  1505. (_Jv_AllocString): No longer a friend.
  1506. * prims.cc (processClass): Removed dead code. Changed to more
  1507. closely follow the Java Language Specification.
  1508. (processClass): Return early if already at the right state.
  1509. * prims.cc (JvNewStringUTF): Removed.
  1510. * include/cni.h (JvNewStringUTF): New function.
  1511. (_Jv_NewStringUTF): Declare as `extern "C"'.
  1512. * java/lang/natString.cc (_Jv_NewStringUTF): New function.
  1513. * java/lang/natDouble.cc: Added copyright info and header
  1514. comment. Include <stdlib.h>.
  1515. (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
  1516. bytes as are chars in string.
  1517. Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
  1518. * java/util/Hashtable.java (hkeys): Member renamed from to avoid
  1519. clash with method.
  1520. (hsize): Likewise.
  1521. * java/lang/System.java (init_properties): Now native.
  1522. * java/lang/natSystem.cc (init_properties): New method.
  1523. Include java/util/Properties.h.
  1524. * Makefile.in: Rebuilt.
  1525. * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
  1526. OutputStreamWriter.h, ByteArrayInputStream.h,
  1527. InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
  1528. Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
  1529. SyncFailedException.h, EOFException.h, FileNotFoundException.h,
  1530. Properties.h, Hashtable.h, Dictionary.h.
  1531. (CFLAGS): Removed.
  1532. * include/javaprims.h (java::io): Added Reader, Writer,
  1533. InputStreamReader, OutputStreamWriter,
  1534. UnsupportedEncodingException, ByteArrayInputStream,
  1535. ByteArrayOutputStream, EOFException, SyncFailedException,
  1536. PushbackInputStream.
  1537. (java::lang): Added Cloneable.
  1538. (java::util): Added NoSuchElementException, VectorEnumeration,
  1539. Dictionary, HashtableEnumeration, PropertiesEnumeration.
  1540. * java/io/PipedReader.java: New file.
  1541. Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
  1542. * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
  1543. up A-Z.
  1544. * java/io/io-defs.h: Removed.
  1545. * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
  1546. (FileInputStream): Use new constructor. Can throw IOException.
  1547. * java/lang/System.java (getProperty): Don't throw
  1548. NullPointerException.
  1549. * java/io/RandomAccessFile.java: Rewrote from scratch.
  1550. * java/io/natFileDescriptor.cc: Include EOFException.h.
  1551. (seek): New method.
  1552. (length): New method.
  1553. (getFilePointer): New method.
  1554. (read): New method.
  1555. (available): New method.
  1556. * java/io/FileDescriptor.java (SET, CUR): New constants.
  1557. (seek, length, getFilePointer, read, available): New decls.
  1558. * java/io/PipedWriter.java: New file.
  1559. * java/io/StringWriter.java: New file.
  1560. * java/io/CharArrayWriter.java: New file.
  1561. * java/io/CharConversionException.java: New file.
  1562. * java/io/BufferedWriter.java: New file.
  1563. * java/io/FilterWriter.java: New file.
  1564. * java/io/FileWriter.java: New file.
  1565. * java/lang/natString.cc: Include ByteArrayOutputStream.h,
  1566. OutputStreamWriter.h, NullPointerException.h,
  1567. ByteArrayInputStream.h, InputStreamReader.h.
  1568. (getBytes): New method.
  1569. (init): Throw NullPointerException.
  1570. (init): New function.
  1571. * java/lang/String.java (getBytes): Added missing decl.
  1572. (getBytes): New method.
  1573. (String): Added byte[]-based constructors.
  1574. (copyValueOf): Wrote.
  1575. (init): Declare variant which takes byte array and encoding.
  1576. Import java.io.UnsupportedEncodingException.
  1577. * java/io/File.java: Rewrote from scratch.
  1578. * java/io/natFileDescriptor.cc: Rewrote from scratch.
  1579. * java/io/FileDescriptor.java: Rewrote from scratch.
  1580. * java/io/FilenameFilter.java: Rewrote from scratch.
  1581. Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
  1582. * java/io/SyncFailedException.java: New file.
  1583. * java/io/UTFDataFormatException.java: Rewrote from scratch.
  1584. * java/io/InterruptedIOException.java: Rewrote from scratch.
  1585. * java/io/FileNotFoundException.java: Rewrote from scratch.
  1586. * java/io/EOFException.java: Rewrote from scratch.
  1587. * java/io/IOException.java: Rewrote from scratch.
  1588. * java/io/PrintStream.java: Rewrote from scratch.
  1589. * java/io/DataOutputStream.java: Rewrote from scratch.
  1590. * java/io/BufferedOutputStream.java: Rewrote from scratch.
  1591. * java/io/FilterOutputStream.java: Rewrote from scratch.
  1592. * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
  1593. * java/io/PipedOutputStream.java: Rewrote from scratch.
  1594. * java/io/FileOutputStream.java: Rewrote from scratch.
  1595. * java/io/OutputStream.java: Rewrote from scratch.
  1596. * java/io/DataOutput.java: Rewrote from scratch.
  1597. Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
  1598. * prims.cc (_Jv_CheckCast): Add missing ! operator.
  1599. Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
  1600. * configure.in: Add --enable-libjava-debug
  1601. * Makefile.am (nat_headers): Add java/lang/Float.h and
  1602. java/lang/Double.h
  1603. * acconfig.h: Add DEBUG and HAVE_MEMCPY.
  1604. * Makefile.in, configure, include/config.h.in: Rebuilt.
  1605. Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  1606. * java/lang/Float.java: Rewritten
  1607. * java/lang/Double.java: Rewritten
  1608. * java/lang/natFloat.cc: toString() added.
  1609. * java/lang/natDouble.cc: toString() added.
  1610. * java/lang/natDouble.cc: doubleValueOf() added.
  1611. * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
  1612. java/lang/strtod.c: added.
  1613. * ieeefp.h: __sparc added.
  1614. * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
  1615. Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
  1616. * include/javaprims.h (java::lang): Added
  1617. CloneNotSupportedException.
  1618. * java/lang/Object.java (clone): No longer native. Implemented.
  1619. * java/lang/natObject.cc (clone): Removed.
  1620. Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
  1621. * prims.cc: Don't make definitions `extern "C"'.
  1622. (_Jv_RegisterClass): Renamed from registerClass.
  1623. * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
  1624. (_Jv_NewArray): Likewise.
  1625. (_Jv_NewMultiArray): Likewise.
  1626. (_Jv_CheckCast): Likewise.
  1627. (_Jv_LookupInterfaceMethod): Likewise.
  1628. (_Jv_CheckArrayStore): Likewise.
  1629. (_Jv_RegisterClass): Likewise.
  1630. * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
  1631. * configure: Rebuilt.
  1632. * configure.in: Don't check for fmod; it is provided by the fdlibm
  1633. code.
  1634. * prims.cc (fmod): Removed.
  1635. * java/lang/natString.cc (charAt): Use _Jv_uint.
  1636. * java/lang/Class.h (class JvField): Use _Jv_ushort.
  1637. * prims.cc (HASH_CHARS): Use _Jv_ushort.
  1638. (equalUtf8Consts): Likewise.
  1639. (internalAddClass): Use _Jv_uint.
  1640. (processClass): Likewise.
  1641. * include/javaprims.h (_Jv_ushort): Renamed from uint16.
  1642. (_Jv_uint): Renamed from uint32.
  1643. (struct _Jv_Utf8Const): Changed members to use new type names.
  1644. * configure: Rebuilt.
  1645. * configure.in: Don't check for memcpy. Require memmove and a way
  1646. to get the time.
  1647. * java/lang/natSystem.cc (arraycopy): Removed dead code, and
  1648. #error.
  1649. (currentTimeMillis): Don't use #error.
  1650. Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  1651. * java/lang/Math.java: static member random renamed to random_ to
  1652. avoid conflict with member function of the same name.
  1653. * include/javaprims.h: java.util.Random added.
  1654. Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
  1655. * include/java-chartables.h: Regenerated.
  1656. * chartables.pl: End COMPACT_CHARACTER #if after fast tables
  1657. printed.
  1658. Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
  1659. * java/lang/Math.java: Rewritten.
  1660. * java/lang/natMath.cc: New file.
  1661. * Files added from fdlibm:
  1662. java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
  1663. java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
  1664. java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
  1665. java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
  1666. java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
  1667. java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
  1668. java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
  1669. java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
  1670. java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
  1671. java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
  1672. java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
  1673. java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
  1674. java/lang/k_cos.c, java/lang/sf_ceil.c,
  1675. java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
  1676. java/lang/ieeefp.h, java/lang/fdlibm.h
  1677. * Makefile.am: rules added for compiling C files from fdlibm.
  1678. Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
  1679. * chartables.pl: Minor documentation fixes.
  1680. * configure: Rebuilt.
  1681. * configure.in: Fixed --help output for --enable-fast-character.
  1682. Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
  1683. * configure: Rebuilt.
  1684. * configure.in: Recognize --enable-fast-character.
  1685. * acconfig.h (COMPACT_CHARACTER): New define.
  1686. * include/config.h.in: Rebuilt.
  1687. * include/java-chartables.h: New file.
  1688. * Makefile.in: Rebuilt.
  1689. * Makefile.am (nat_files): Added natCharacter.o.
  1690. * java/lang/natCharacter.cc: New file.
  1691. * chartables.pl (set_attribute): New function.
  1692. (@attributes, @second_attributes): New globals.
  1693. ($ROMAN_START, $ROMAN_END): Likewise.
  1694. (process_char): Call set_attribute when required.
  1695. (print_char): Just print hex value.
  1696. (print_block): Generate C++ syntax.
  1697. (print_numerics): Likewise.
  1698. (print_single_map): Likewise.
  1699. (print_all_block): Likewise.
  1700. (print_case_table): Likewise.
  1701. (print_fast_tables): New function.
  1702. Generate C++ code suitable for a header file.
  1703. * java/lang/Character.java (table_search): Removed.
  1704. (digit_value): Now native.
  1705. (getNumericValue): Likewise.
  1706. (getType): Likewise.
  1707. Removed all automatically-generated tables.
  1708. (Tamil_Digit_One): Removed.
  1709. (isSpaceChar): Now native.
  1710. (isTitleCase): Likewise.
  1711. (isLowerCase): Likewise.
  1712. (isUpperCase): Likewise.
  1713. (toLowerCase): Likewise.
  1714. (toTitleCase): Likewise.
  1715. (toUpperCase): Likewise.
  1716. (isDefined): Fixed sense of test.
  1717. Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
  1718. * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
  1719. FIXME comment.
  1720. (regionMatches): Likewise.
  1721. Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
  1722. * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
  1723. * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
  1724. a friend.
  1725. * java/lang/natString.cc (_Jv_AllocString): For now, don't call
  1726. _Jv_AllocObject.
  1727. * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
  1728. not a char.
  1729. * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
  1730. Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
  1731. * prims.cc (instanceof_class): Removed.
  1732. (instanceof_array): Likewise.
  1733. (instanceof): Likewise.
  1734. (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
  1735. (_Jv_CheckCast): Likewise.
  1736. * java/lang/natClass.cc (isAssignableFrom): New method.
  1737. * java/lang/Class.java (isAssignableFrom): Now native.
  1738. * include/cni.h (JvThrow): Use `extern inline'.
  1739. (JvAllocObject): Likewise.
  1740. (JvInitClass): Likewise.
  1741. * java/lang/natSystem.cc (arraycopy): Only check class of source
  1742. object if not null.
  1743. * prims.cc (_Jv_CheckArrayStore): Wrote.
  1744. (_Jv_MonitorEnter): Prefer `JvThrow'.
  1745. Include ArrayStoreException.h.
  1746. (_Jv_CheckCast): Indentation cleanup.
  1747. Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
  1748. * chartables.pl: New file.
  1749. * java/lang/Character.java: Rewrote from scratch.
  1750. Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
  1751. * java/lang/ArithmeticException.java,
  1752. java/lang/ArrayIndexOutOfBoundsException.java,
  1753. java/lang/ArrayStoreException.java,
  1754. java/lang/ClassCastException.java,
  1755. java/lang/ClassNotFoundException.java,
  1756. java/lang/CloneNotSupportedException.java,
  1757. java/lang/Exception.java, java/lang/IllegalAccessException.java,
  1758. java/lang/IllegalArgumentException.java,
  1759. java/lang/IllegalMonitorStateException.java,
  1760. java/lang/IllegalThreadStateException.java,
  1761. java/lang/IndexOutOfBoundsException.java,
  1762. java/lang/InstantiationException.java,
  1763. java/lang/InterruptedException.java,
  1764. java/lang/NegativeArraySizeException.java,
  1765. java/lang/NoSuchMethodException.java,
  1766. java/lang/NullPointerException.java,
  1767. java/lang/NumberFormatException.java,
  1768. java/lang/RuntimeException.java, java/lang/SecurityException.java,
  1769. java/lang/StringIndexOutOfBoundsException.java: Rewritten.
  1770. * java/lang/IllegalStateException.java,
  1771. java/lang/NoSuchFieldException.java,
  1772. java/lang/UnsupportedOperationException.java: Created.
  1773. Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
  1774. * java/lang/Integer.java, java/lang/Long.java: Rewritten.
  1775. * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
  1776. Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
  1777. * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
  1778. Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
  1779. * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
  1780. * Makefile.in: Rebuilt.
  1781. * include/javaprims.h (java::lang): Added
  1782. StringIndexOutOfBoundsException.
  1783. * java/lang/String.java: Added header comment and FIXME comment for
  1784. missing constructors/methods.
  1785. (endsWith): Adjusted offset into string to look at just the last chars.
  1786. Commented out undocumented method.
  1787. * java/lang/natString.cc: Added includes for
  1788. ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
  1789. (String::init): Throw StringIndexOutOfBoundsException.
  1790. (String::charAt): Throw StringIndexOutOfBoundsException.
  1791. (String::substring): Throw StringIndexOutOfBoundsException.
  1792. (String::getChars): Throw ArrayIndexOutOfBoundsException.
  1793. (String::getBytes): Throw ArrayIndexOutOfBoundsException.
  1794. (String::compareTo): Return difference/offset between chars/strings.
  1795. Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
  1796. * java/lang/Boolean.java (TYPE): Added comment.
  1797. * java/lang/Byte.java (decode): Added - commented out until dependent
  1798. code for Integer is written.
  1799. (compareTo): JDK 1.2 methods written.
  1800. (hashCode): Added comment to note that values have been verified.
  1801. * java/lang/Short.java (decode): Added - commented out until dependent
  1802. code for Integer is written.
  1803. (compareTo): JDK 1.2 methods written.
  1804. (hashCode): Added comment to note that values have been verified.
  1805. * java/lang/Comparable.java: Created - JDK 1.2 interface.
  1806. Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
  1807. * include/javaprims.h (java::lang): Added VirtualMachineError,
  1808. OutOfMemoryError.
  1809. * Makefile.in: Rebuilt.
  1810. * Makefile.am (nat_headers): Added OutOfMemoryError.h,
  1811. VirtualMachineError.h.
  1812. * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
  1813. (lookupArray): Likewise.
  1814. (makeUtf8Const): Likewise.
  1815. (_Jv_AllocObject): Likewise.
  1816. (_Jv_NewObjectArray): Likewise.
  1817. Include OutOfMemoryError.h.
  1818. * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
  1819. to use JvNewStringLatin1.
  1820. * java/io/io-defs.h: Include java/lang/IOException.h.
  1821. * Makefile.in: Rebuilt.
  1822. * Makefile.am (nat_headers): Added
  1823. ArrayIndexOutOfBoundsException.h,
  1824. ClassFormatError.h,ClassNotFoundException.h,
  1825. ClassCircularityError.h, ClassCastException.h,
  1826. IncompatibleClassChangeError.h, AbstractMethodError.h,
  1827. IllegalAccessError.h, LinkageError.h, Error.h,
  1828. NegativeArraySizeException.h, IOException.h.
  1829. * include/cni.h (SignalError): Removed declaration.
  1830. * java/util/natDate.cc (setTime): Use JvFail, not sorry.
  1831. * java/lang/natObject.cc (clone): Use JvFail, not sorry.
  1832. * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
  1833. (newInstance): Likewise.
  1834. (forName): Likewise.
  1835. * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
  1836. sorry.
  1837. (read): Use JvThrow, not SignalError.
  1838. (read): Likewise.
  1839. (write): Likewise.
  1840. (skip): Likewise.
  1841. (close): Likewise.
  1842. (open_read): Likewise.
  1843. (open_write): Likewise.
  1844. (ftell): Likewise.
  1845. (fseek): Likewise.
  1846. (newstr): New function.
  1847. * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
  1848. sorry.
  1849. (lastModifiedUnchecked): Likewise.
  1850. (lengthUnchecked): Likewise.
  1851. * include/javaprims.h (sorry): Removed declaration.
  1852. (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
  1853. ClassFormatError, ClassNotFoundException, ClassCircularityError,
  1854. ClassCastException, IncompatibleClassChangeError,
  1855. AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
  1856. * prims.cc (instanceof_array): Use JvFail, not sorry.
  1857. (sorry): Removed.
  1858. Include ArrayIndexOutOfBoundsException.h,
  1859. ClassFormatError.h,ClassNotFoundException.h,
  1860. ClassCircularityError.h, ClassCastException.h,
  1861. IncompatibleClassChangeError.h, AbstractMethodError.h,
  1862. IllegalAccessError.h, NegativeArraySizeException.h.
  1863. (_Jv_ThrowBadArrayIndex): Implemented.
  1864. (JvNewStringUTF): Use JvFail, not sorry.
  1865. (_Jv_FindClass): Likewise.
  1866. (_Jv_NewArray): Likewise.
  1867. (throwException): Removed.
  1868. (getClass): Use JvThrow.
  1869. (processClass): Likewise.
  1870. (_Jv_NewObjectArray): Likewise.
  1871. (_Jv_NewMultiArray): Likewise.
  1872. (_Jv_CheckCast): Likewise.
  1873. (_Jv_LookupInterfaceMethod): Likewise.
  1874. (SignalError): Removed.
  1875. (getClass): Use _Jv_NewStringUtf8Const to create String.
  1876. * java/lang/natSystem.cc (arraycopy): Throw
  1877. ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
  1878. * Makefile.in: Rebuilt.
  1879. * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
  1880. users.
  1881. * include/java-array.h: Mention gcjh, not gjavah.
  1882. * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
  1883. (canReadUnchecked): Likewise.
  1884. (canWriteUnchecked): Likewise.
  1885. (isFileUnchecked): Likewise.
  1886. * java/io/natFileDescriptor.cc: Don't include cni.h.
  1887. * java/lang/Thread.java (run__): Declare.
  1888. * java/lang/natThread.cc (run__): New method, to avoid compiler
  1889. warning.
  1890. (start): Use run__, not run_.
  1891. * java/io/io-defs.h: Include cni.h and jvm.h.
  1892. Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
  1893. Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
  1894. * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
  1895. to natString.cc (with suitable renaming, inlines etc).
  1896. (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
  1897. * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
  1898. * java/lang/String.h: Removed - now generated using gjavah.
  1899. * java/lang/String.java: Re-written from scratch. Many native methods.
  1900. * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
  1901. * java/lang/natString.cc: Many functions re-written for "compact
  1902. strings" representation, or native java.lang.String methods added.
  1903. (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
  1904. (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
  1905. * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
  1906. * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
  1907. * include/cni.h: Add inline method.
  1908. * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
  1909. * include/javaprims.h: Moved some stuff frm String.h.
  1910. * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
  1911. * Makefile.am (nat_header): Added Character.h and String.h.
  1912. (String.h): Add new rule.
  1913. Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
  1914. * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
  1915. java-assert.h.
  1916. * posix-threads.cc: Include cni.h, jvm.h.
  1917. * quick-threads.cc: Include cni.h, jvm.h.
  1918. * nogc.cc: Include cni.h, not javaprims.h.
  1919. * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
  1920. * java/lang/natThread.cc: Rearranged #include ordering. Don't
  1921. include java-assert.h.
  1922. * java/lang/natSystem.cc: Include cni.h. Don't include
  1923. java-assert.h.
  1924. * java/lang/natRuntime.cc: Include cni.h. Don't include
  1925. java-assert.h.
  1926. * prims.cc: Rearranged #include ordering. Don't include
  1927. java-array.h or java-assert.h.
  1928. * boehm.cc: Include config.h, cni.h.
  1929. * exception.cc: Include config.h, cni.h.
  1930. * include/jvm.h: Include java-assert.h.
  1931. * include/cni.h: Include java/lang/Object.h. Don't include
  1932. java-threads.h or java-array.h.
  1933. Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
  1934. * java/lang/Boolean.java: Rewritten.
  1935. Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
  1936. * java/lang/natFirstThread.cc (main_func): New typedef.
  1937. (run): Use main_func, not JvPrivThreadStartFunc.
  1938. * include/no-threads.h (JvPrivThreadStartFunc): Use correct
  1939. argument type.
  1940. * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
  1941. argument type.
  1942. * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
  1943. argument type.
  1944. Can't throw Java exceptions with C++ `throw':
  1945. * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
  1946. * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
  1947. (setPriority): Likewise.
  1948. (sleep): Likewise.
  1949. (start): Likewise.
  1950. (stop): Likewise.
  1951. * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
  1952. * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
  1953. Can't catch Java exceptions from C++:
  1954. * java/lang/natThread.cc (finish_): New method.
  1955. (run_): Removed.
  1956. * java/lang/Thread.java (run_): Rewrote in Java.
  1957. (finish_): New native method.
  1958. Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
  1959. * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
  1960. * include/javaprims.h (java::io): Added Serializable.
  1961. Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
  1962. * java/util/EmptyStackException.java,
  1963. java/util/NoSuchElementException.java: Rewritten.
  1964. * java/util/ConcurrentModificationException.java,
  1965. java/util/MissingResourceException.java,
  1966. java/util/TooManyListenersException.java: Created.
  1967. Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
  1968. * include/cni.h (JvThrow): New function.
  1969. * include/javaprims.h (_Jv_Throw): Declare.
  1970. Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
  1971. * java/util/Observable.java: Rewritten.
  1972. Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
  1973. * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
  1974. (_Jv_MonitorEnter): Throw NullPointerException if object is null.
  1975. Include NullPointerException.h.
  1976. Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
  1977. * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
  1978. assignability checks. Don't bother using memcpy.
  1979. * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
  1980. (started): Removed.
  1981. * include/quick-threads.h (JvPrivThreadWait): New function.
  1982. * include/no-threads.h (JvPrivThreadWait): New function.
  1983. * include/posix-threads.h (JvPrivThreadWait): New function.
  1984. * prims.cc (JvRunMain): Call JvPrivThreadWait.
  1985. * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
  1986. * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
  1987. offsets by size of type that is being copied.
  1988. * java/lang/natThread.cc (start): Don't pass `object' argument to
  1989. JvPrivThreadStart.
  1990. * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
  1991. * posix-threads.cc (JvPrivThreadStart): Removed `object'
  1992. argument.
  1993. * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
  1994. always pass thread as object.
  1995. * include/quick-threads.h, include/posix-threads.h,
  1996. include/no-threads.h (JvPrivThreadStart): Removed `object'
  1997. argument.
  1998. Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
  1999. * java/util/Dictionary.java: Rewritten.
  2000. Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
  2001. * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
  2002. (JvPrivThreadDestroy): Likewise.
  2003. Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
  2004. * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
  2005. Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
  2006. * java/lang/natSystem.cc: Rewrote from scratch.
  2007. * java/lang/System.java: Rewrote from scratch.
  2008. * java/lang/Class.h (Class): Declare isAssignableFrom.
  2009. * include/javaprims.h (java::lang): Added ArrayStoreException,
  2010. IndexOutOfBoundsException.
  2011. * Makefile.in: Rebuilt.
  2012. * Makefile.am (nat_headers): Added ArrayStoreException.h,
  2013. IndexOutOfBoundsException.h.
  2014. * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
  2015. * include/jvm.h (_Jv_HashCode): New function.
  2016. * java/lang/natThread.cc (suspend): Call checkAccess.
  2017. (resume): Likewise.
  2018. * java/lang/Thread.java (setDaemon): Call checkAccess.
  2019. Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
  2020. * java/lang/Runtime.java: Rewrote from scratch.
  2021. * java/lang/natRuntime.cc: Rewrote from scratch.
  2022. * nogc.cc (JvPrivGCTotalMemory): New function.
  2023. (JvPrivGCFreeMemory): Likewise.
  2024. (total): New global.
  2025. (JvPrivAllocObj): Increment total.
  2026. (JvPrivAllocArray): Likewise.
  2027. (JvPrivAllocBytes): Likewise.
  2028. * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
  2029. * boehm.cc (JvPrivGCTotalMemory): New function.
  2030. (sum_blocks): Likewise.
  2031. (JvPrivGCFreeMemory): Likewise.
  2032. Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
  2033. * include/javaprims.h (java::lang): Added FirstThread.
  2034. * java/lang/natFirstThread.cc: New file.
  2035. * java/lang/FirstThread.java: New file.
  2036. * prims.cc (main_signature): Removed.
  2037. (main_name): Removed.
  2038. #include FirstThread.h.
  2039. * Makefile.in: Rebuilt.
  2040. * Makefile.am (TFRIEND): Removed.
  2041. (java/lang/Thread.h): Likewise.
  2042. (FTFRIEND): New macro.
  2043. (java/lang/FirstThread.h): New target.
  2044. (nat_files): Added natFirstThread.o.
  2045. (nat_headers): Added FirstThread.h.
  2046. * include/jvm.h (_Jv_StartFirstThread): Don't declare.
  2047. * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
  2048. * java/lang/Thread.java (setName): Throw IllegalArgumentException
  2049. if name is null.
  2050. (Thread): Likewise.
  2051. * java/lang/natThread.cc (start): Synchronize the thread.
  2052. (stop): Synchronize the thread.
  2053. * java/lang/ThreadDeath.java: Rewrote from scratch.
  2054. * Makefile.in: Rebuilt.
  2055. * Makefile.am (TGFRIEND): New macro.
  2056. (java/lang/ThreadGroup.h): New target.
  2057. ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
  2058. native headers.
  2059. ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
  2060. * nogc.cc: Include config.h.
  2061. * java/lang/ThreadGroup.java: Rewrote from scratch.
  2062. Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
  2063. * java/lang/Thread.java (checkAccess): Only call in to security
  2064. manager if it exists.
  2065. (Thread): Don't check access when creating the first thread. Add
  2066. this thread to the appropriate ThreadGroup.
  2067. * java/lang/natThread.cc (run_): Call uncaughtException method on
  2068. the ThreadGroup.
  2069. * java/lang/Runnable.java: Rewrote from scratch.
  2070. * java/lang/Thread.java: Updated copyright comment to correct
  2071. form.
  2072. Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
  2073. * java/util/Random.java: Rewritten.
  2074. Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  2075. * prims.cc (_Jv_NewMultiArray): Need one more slot to store
  2076. trailing 0 in array[].
  2077. Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
  2078. * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
  2079. and RUNTESTFLAGS from AM_MAKEFLAGS.
  2080. (SUBDIRS): Conditionally include testsuite.
  2081. * Makefile.in: Rebuilt.
  2082. Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
  2083. * java/lang/Object.h: Include java-assert.h.
  2084. Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
  2085. * Makefile.am: Add testsuite directory.
  2086. * configure.in: Build testsuite/Makefile.
  2087. * Makefile.in, configure: Rebuilt.
  2088. Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
  2089. * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
  2090. * include/jvm.h (_Jv_StartFirstThread): Declare.
  2091. * include/javaprims.h (java::lang): Added Exception,
  2092. RuntimeException.
  2093. * Makefile.in: Rebuilt.
  2094. * Makefile.am (nat_headers): Added NullPointerException.h,
  2095. InterruptedException.h, IllegalArgumentException.h, Exception.h,
  2096. Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
  2097. (java/lang/Thread.h): New target.
  2098. (TFRIEND): New macro
  2099. * include/java-assert.h (JvFail): Use 0 and not NULL.
  2100. * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
  2101. instead of assuming we are a friend of Thread.
  2102. * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
  2103. instead of assuming we are a friend of Thread.
  2104. Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
  2105. * java/lang/natThread.cc: Rewrote from scratch.
  2106. * java/lang/Thread.java: Rewrote from scratch.
  2107. * prims.cc (JvRunMain): Use new Thread constructor.
  2108. * include/javaprims.h (java::lang): Added InterruptedException.
  2109. * Makefile.in: Rebuilt.
  2110. * Makefile.am (nat_headers): Added java/lang/Thread.h.
  2111. * java/lang/Thread.h: Removed.
  2112. * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
  2113. * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
  2114. argument.
  2115. * posix-threads.cc (JvPrivThreadJoin): Removed.
  2116. (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
  2117. (really_start): Don't notify join_cond.
  2118. (JvPrivThreadStart): Added `data' argument.
  2119. * include/no-threads.h (JvPrivThreadInterrupt): Removed.
  2120. (JvPrivThreadJoin): Likewise.
  2121. Use JvFail instead of sorry.
  2122. (JvPrivThreadSuspend): Removed.
  2123. (JvPrivThreadResume): Removed.
  2124. * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
  2125. (JvPrivThreadJoin): Likewise.
  2126. (JvPrivThreadSuspend): Use JvFail.
  2127. (JvPrivThreadResume): Likewise.
  2128. (JvPrivThreadSuspend): Removed.
  2129. (JvPrivThreadResume): Likewise.
  2130. * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
  2131. (JvPrivThread_t): Removed join_mutex, join_cond.
  2132. Use JvFail instead of sorry.
  2133. (JvPrivThreadSuspend): Removed.
  2134. (JvPrivThreadResume): Likewise.
  2135. Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
  2136. * java/util/Observer.java: Rewritten
  2137. * java/util/Enumeration.java: Rewritten
  2138. Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
  2139. * java/util/StringTokenizer.java: Rewritten
  2140. * java/util/Stack.java: Added COPYRIGHT-TBD comment
  2141. * java/util/Vector.java: Added COPYRIGHT-TBD comment
  2142. * java/io/Serializable.java: Added COPYRIGHT-TBD comment
  2143. Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
  2144. * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
  2145. not defined.
  2146. * no-threads.cc (JvPrivThreadStart): Use JvAssert.
  2147. Include java-assert.h.
  2148. * include/java-assert.h: New file.
  2149. * prims.cc (_Jv_Abort): New function.
  2150. Include java-assert.h, not assert.h.
  2151. (_Jv_MonitorExit): Use JvAssert.
  2152. (resolveConstants): Likewise.
  2153. (processClass): Likewise.
  2154. (JvRunMain): Assert that method is found.
  2155. * configure: Rebuilt.
  2156. * configure.in: Check for test subdir.
  2157. * Makefile.in: Rebuilt.
  2158. * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
  2159. * prims.cc (JvRunMain): Use NORM_PRIORITY.
  2160. * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
  2161. * prims.cc (resolveConstants): Removed unused variables.
  2162. (processClass): Likewise.
  2163. * include/quick-threads.h (JvPrivThreadCurrent): Use
  2164. coop_getspecific.
  2165. * quick-threads.cc (destroy_data): New function.
  2166. (JvPrivInitThreads): Create key.
  2167. (JvPrivThreadKey): New global.
  2168. (JvPrivThreadStart): Use coop_setspecific.
  2169. * include/quick-threads.h, include/posix-threads.h,
  2170. include/no-threads.h, no-threads.cc, quick-threads.cc,
  2171. posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
  2172. Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
  2173. * include/no-threads.h (JvPrivThreadInitData): Don't set
  2174. JvPrivOnlyThread.
  2175. * include/quick-threads.h (JvPrivCondWait): coop function now
  2176. takes microseconds.
  2177. (JvPrivThreadJoin): Likewise.
  2178. * java/lang/Thread.h (Thread): Updated declaration of
  2179. JvPrivThreadStart.
  2180. * include/quick-threads.h, include/posix-threads.h: Updated
  2181. declaration of JvPrivThreadStart.
  2182. * include/no-threads.h (JvPrivThreadStart): Changed definition
  2183. into declaration.
  2184. * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
  2185. * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
  2186. * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
  2187. Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
  2188. * quick-threads.cc (qthrow): New function.
  2189. (JvPrivInitThreads): New function.
  2190. (started): New global.
  2191. (JvPrivThreadStart): Call coop_start if required.
  2192. * include/quick-threads.h (JvPrivThreadCancel): Implement.
  2193. (JvPrivThreadDestroy): Likewise.
  2194. (JvPrivInitThreads): Removed.
  2195. * include/posix-threads.h (JvPrivThreadCancel): Added error
  2196. argument.
  2197. * java/lang/natThread.cc (stop_): Pass exception to
  2198. JvPrivThreadCancel.
  2199. Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
  2200. * include/javaprims.h (java::lang): Added
  2201. IllegalArgumentException, IllegalThreadStateException, Math,
  2202. NullPointerException, ThreadDeath.
  2203. (java::util): Added Enumeration.
  2204. * Makefile.in: Rebuilt.
  2205. * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
  2206. * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
  2207. now public.
  2208. (threadsv): Renamed from threads to avoid clash in C++ header.
  2209. (groupsv): Likewise.
  2210. * include/no-threads.h (JvPrivThreadStart): Removed.
  2211. * no-threads.cc (JvPrivThreadStart): New function.
  2212. * java/lang/Thread.java (Thread): New constructor for internal use.
  2213. * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
  2214. (Thread): Declare constructor.
  2215. * prims.cc (JvRunMain): Create the initial Thread and
  2216. ThreadGroup.
  2217. Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
  2218. * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
  2219. Removed `daemon' argument.
  2220. * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
  2221. * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
  2222. a friend.
  2223. * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
  2224. * Makefile.in: Rebuilt.
  2225. * Makefile.am (INCLUDES): Include THREADINCS.
  2226. * configure: Rebuilt.
  2227. * configure.in: Recognize `qt' as a threads package.
  2228. Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
  2229. * java/util/Stack.java (pop): Null out topmost node for robustness.
  2230. Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
  2231. * java/util/Stack.java: Rewritten.
  2232. * java/util/Vector.java (isEmpty): Simplified expression.
  2233. Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
  2234. * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
  2235. (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
  2236. * include/java-array.h (JvNewObjectArray): Created inline to
  2237. _Jv_NewObjectArray.
  2238. * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
  2239. JvNewObjectArray.
  2240. Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
  2241. * java/util/Vector.java: Rewritten.
  2242. * java/io/Serializable.java: Created.
  2243. Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
  2244. * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
  2245. Infinity is 1/0, not 1/1.
  2246. * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
  2247. * configure: Rebuilt.
  2248. * configure.in: Removed duplicate AC_ARG_WITH.
  2249. Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
  2250. * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
  2251. soft_badarrayindex.
  2252. (_Jv_InitClass): Renamed from soft_initialise_class.
  2253. (_Jv_NewMultiArray): Renamed from soft_multianewarray.
  2254. (_Jv_CheckCast): Renamed from soft_checkcast.
  2255. (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
  2256. (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
  2257. (JvRunMain): Call JvInitClass instead of soft_initialise_class.
  2258. * include/cni.h (JvInitClass): New function.
  2259. (_Jv_InitClass): Renamed from soft_initialise_class.
  2260. Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
  2261. * configure: Rebuilt.
  2262. * configure.in (CXX): Don't set.
  2263. * Makefile.in: Rebuilt.
  2264. * Makefile.am (AM_CXXFLAGS): New macro.
  2265. * Makefile.in: Rebuilt.
  2266. * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
  2267. nogc.o): New target.
  2268. * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
  2269. GC.
  2270. (mark_array): Likewise.
  2271. Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
  2272. * java/lang/Class.h (JvMethod): Removed some unused fields.
  2273. (JvField.info): Removed unused idx union variant.
  2274. Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
  2275. * prims.cc (makeUtf8Const): Mask off high bits of hash value to
  2276. match compiler.
  2277. Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
  2278. * configure.in, configure (CXX): Add -fvtable-thunks.
  2279. Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
  2280. * java/lang/Object.java (finalize): Move first.
  2281. * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
  2282. (Object): Re-arrange order to match Object.java.
  2283. Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
  2284. * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
  2285. * java/lang/natString.cc (hashChars): Likewise.
  2286. * prims.cc (RuntimeClass): New macro.
  2287. (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
  2288. Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
  2289. * Makefile.in: Rebuilt.
  2290. * Makefile.am (AM_MAKEFLAGS): New macro.
  2291. Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
  2292. * nogc.cc: Include <javaprims.h>.
  2293. * Makefile.in: Rebuilt.
  2294. * Makefile.am (GJAVAH): gjavah no longer in java subdir.
  2295. Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
  2296. * exception.cc (terminate): Removed.
  2297. (unexpected): Removed.
  2298. * configure: Rebuilt.
  2299. * configure.in: Handle case where target subdir is ".".
  2300. * configure: Rebuilt.
  2301. * configure.in: Compute COMPPATH based on --with-target-subdir
  2302. option. Added --with-target-subdir and --with-cross-host. Use
  2303. --with-cross-host to determine when a cross compiler is in use.
  2304. * Makefile.in: Rebuilt.
  2305. * Makefile.am (GJAVAH): Include COMPPATH.
  2306. * configure: Rebuilt.
  2307. * configure.in: Subst COMPPATH.
  2308. Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
  2309. * prims.cc (lockMutex): Removed.
  2310. (unlockMutex): Likewise.
  2311. (processClass): Lock the class using a JvSynchronize object.
  2312. Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
  2313. * java/lang/natString.cc (gc_calloc_fixed): Removed.
  2314. (gc_free_fixed): Removed.
  2315. (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
  2316. freeing old value of strhash.
  2317. * exception.cc (_Jv_type_matcher): Cast first argument to
  2318. _Jv_IsInstanceOf.
  2319. Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
  2320. * include/java-array.h (jstringArray): New type.
  2321. * java/lang/natSystem.cc (setProperty): Removed.
  2322. (initProperties): Directly call JvNewStringLatin1 for arguments.
  2323. * java/util/natDate.cc: Include java/util/Date.h, not
  2324. java-util.h.
  2325. (setTime): Removed.
  2326. * java/io/FileDescriptor.java (available): No longer static.
  2327. * java/lang/natDouble.cc (Double): Removed class definition.
  2328. * include/javaprims.h (java::lang::Number): Declare.
  2329. (java::lang::NumberFormatException): Likewise.
  2330. (java::io::FilenameFilter): Likewise.
  2331. (java::lang::Character): Likewise.
  2332. (java::lang::Error): Likewise.
  2333. (java::lang::SecurityManager): Likewise.
  2334. (java::util::Vector): Likewise.
  2335. (java::io::FileNotFoundException): Likewise.
  2336. (java::io::IOException): Likewise.
  2337. (java::lang::NativeLang): Likewise.
  2338. (java::lang::UnsatisfiedLinkError): Likewise.
  2339. (java::util::StringTokenizer): Likewise.
  2340. (java::io::InputStream, java::io::OutputStream): Likewise.
  2341. (java::io::PrintStream, java::lang::SecurityException): Likewise.
  2342. (java::util::Hashtable): Likewise.
  2343. * Makefile.in: Rebuilt.
  2344. * Makefile.am (nat_headers): Added java/lang/Double.h,
  2345. java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
  2346. (MOSTLYCLEANFILES): Added nat_headers.
  2347. * include/jvm.h: Moved many defines, declarations, and functions
  2348. to java/lang/Class.h.
  2349. (struct JvSyncInfo): Moved to java/lang/Object.h.
  2350. (UTF8_GET): Moved to java/lang/String.h.
  2351. Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
  2352. * java/io/io-defs.h: Don't include java-io.h.
  2353. * include/java-io.h: Removed.
  2354. * include/javaprims.h: Include java::io.
  2355. Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
  2356. * include/java-io.h (File): Removed
  2357. (FileDescriptor): Likewise.
  2358. * java/io/io-defs.h: Include java/io/File.h and
  2359. java/io/FileDescriptor.h.
  2360. * Makefile.in: Rebuilt.
  2361. * Makefile.am (GJAVAH): New macro.
  2362. (.class.h): New rule.
  2363. (SUFFIXES): Added .h.
  2364. (nat_headers): New macro.
  2365. ($(nat_headers)): New target.
  2366. (BUILT_SOURCES): Added nat_headers.
  2367. * include/java-util.h: Removed.
  2368. Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
  2369. * include/java-io.h: Changed to avoid java-lang.h.
  2370. * java/lang/natThread.cc: Include java/lang/Thread.h, not
  2371. java-lang.h.
  2372. * java/lang/natSystem.cc: Include java/lang/System.h, not
  2373. java-lang.h.
  2374. * java/lang/natString.cc: Include java/lang/String.h, not
  2375. java-lang.h.
  2376. * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
  2377. java-lang.h.
  2378. * java/lang/natClass.cc: Include java/lang/Class.h, not
  2379. java-lang.h.
  2380. * java/lang/natDouble.cc: Include java/lang/Object.h, not
  2381. java-lang.h.
  2382. * java/lang/natObject.cc: Include java/lang/Object.h, not
  2383. java-lang.h.
  2384. * exception.cc: Don't include java-lang.h.
  2385. * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
  2386. * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
  2387. * nogc.cc: Don't include java-lang.h.
  2388. * boehm.cc: Include java/lang/Class.h, not java-lang.h.
  2389. * prims.cc (processClass): Don't use `init_type'; just cast to
  2390. type directly.
  2391. Include java/lang/Class.h and jvm.h, not java-lang.h.
  2392. (JvAllocObject): Wrote single-argument version.
  2393. (PrimClass): Inherit from Class.
  2394. (initPrimClass): Removed.
  2395. * include/java-lang.h: Removed.
  2396. * include/jvm.h: Declare struct _dispatchTable.
  2397. * include/cni.h: Don't declare _Jv_MonitorEnter,
  2398. _Jv_MonitorExit, struct _dispatchTable.
  2399. * include/javaprims.h: Moved all typedefs here, from cni.h.
  2400. * java/lang/Class.h: New file.
  2401. * include/java-array.h: New file.
  2402. * java/lang/Object.h: New file.
  2403. * prims.cc (classFromSig): Now static.
  2404. Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
  2405. * include/cni.h: Don't mention soft_new.
  2406. * include/java-lang.h (Object): Don't mention soft_new. Mention
  2407. _Jv_NewPrimArray, not newPrimArray.
  2408. * prims.cc (soft_new): Removed.
  2409. (_Jv_NewArray): Renamed from soft_newarray.
  2410. (soft_anewarray): Use JvNewObjectArray.
  2411. (newArray): Likewise.
  2412. (newRefArray): Removed.
  2413. (_Jv_NewPrimArray): Renamed from newPrimArray.
  2414. (equalUtf8Consts): Now static.
  2415. (soft_instanceof): Removed.
  2416. * java/lang/natDouble.cc (doubleToString): Now static.
  2417. * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
  2418. java_lang_Double_longBitsToDouble, java_lang_Double_toString):
  2419. Removed.
  2420. Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
  2421. * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
  2422. _Jv_MonitorExit.
  2423. * include/cni.h: Renamed functions to _Jv_MonitorEnter and
  2424. _Jv_MonitorExit.
  2425. * include/no-threads.h (JvPrivMutexLock): Always return -1.
  2426. (JvPrivMutexUnlock): Likewise.
  2427. * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
  2428. Return value now jint.
  2429. (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
  2430. now jint.
  2431. * Makefile.in: Rebuilt.
  2432. * Makefile.am: Don't allow `jV' names.
  2433. (maintainer-check): Depend on libjava.a.
  2434. * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
  2435. * Makefile.in: Rebuilt.
  2436. * Makefile.am (NM): New macro.
  2437. (maintainer-check): New target.
  2438. * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
  2439. * configure: Rebuilt.
  2440. * configure.in: Use --enable-threads, not --enable-gc. Fix
  2441. documentation for --enable-threads. Changed option to work like
  2442. identical option in gcc/configure.
  2443. Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
  2444. * boehm.cc (mark_array): Use JvGetArrayLength.
  2445. Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
  2446. * exception.cc: New file (mostly written by Andrew MacLeod),
  2447. exception handling support.
  2448. * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
  2449. Remove -fexceptions - it is now the default.
  2450. * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
  2451. (JvAllocObject): Renamed to _Jv_AllocObject.
  2452. (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
  2453. (loadClass): Renamed to _Jv_FindClass.
  2454. * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
  2455. inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
  2456. * include/java-lang.h (JvGetArrayLength): New CNI function.
  2457. * include/jvm.h (_Jv_FindClass): Added declaration.
  2458. * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
  2459. Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
  2460. * java/lang/natClass.cc (getName): Add implementation.
  2461. * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
  2462. Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
  2463. * Makefile.in: Rebuilt.
  2464. * Makefile.am (.class.o): Added -fexceptions.
  2465. Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
  2466. * configure: Rebuilt.
  2467. * configure.in: Don't check for __nanosleep.
  2468. * posix-threads.cc (nanosleep): Never define.
  2469. Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
  2470. * posix-threads.cc (JvPrivCondWait): Fixed computation of
  2471. timespec.
  2472. Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
  2473. * java/lang/natThread.cc (enumerate): Uncommented.
  2474. * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
  2475. (interrupt): Call it.
  2476. Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
  2477. * configure: Rebuilt.
  2478. * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
  2479. Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
  2480. * include/no-threads.h (JvPrivThreadInterrupt): New method.
  2481. * include/java-lang.h (Thread): Added `interrupted_' method.
  2482. * java/lang/Thread.java (interrupted_): New method.
  2483. * java/lang/natThread.cc (join): Possibly throw interrupted
  2484. exception after join finishes.
  2485. (interrupted_): New method.
  2486. * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
  2487. join_cond.
  2488. (JvPrivThreadJoin): New function.
  2489. (really_start): Notify all threads waiting for this thread.
  2490. (struct starter): Added `data' member.
  2491. (JvPrivThreadStart): Set it.
  2492. * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
  2493. join_cond.
  2494. (JvPrivThreadJoin): No longer inline.
  2495. (JvPrivThreadInterrupt): New function.
  2496. * include/no-threads.h (JvPrivThreadSleep): Removed.
  2497. * posix-threads.cc (JvPrivThreadSleep): Removed.
  2498. Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
  2499. * configure: Rebuilt.
  2500. * configure.in (THREADOBJS): Initialize to no-threads.o in
  2501. no-threads case.
  2502. * posix-threads.cc (key): New global.
  2503. (JvPrivInitThreads): New function.
  2504. (really_start): Set thread-specific data to point to object.
  2505. (JvPrivThreadStart): Added `daemon' argument.
  2506. (JvPrivThreadSleep): Added `data' argument.
  2507. * include/posix-threads.h (JvPrivInitThreads): Removed
  2508. implementation.
  2509. (JvPrivThreadCurrent): New function.
  2510. * include/no-threads.h (JvPrivThreadInitData): Initialize
  2511. JvPrivOnlyThread. Added `thread' argument.
  2512. (JvPrivThreadCurrent): New function.
  2513. (JvPrivThreadStart): Added `daemon' argument.
  2514. * no-threads.cc: New file.
  2515. * java/lang/natThread.cc (init_data): New function.
  2516. (isAlive): Removed.
  2517. (start): Set `alive' member.
  2518. (stop_): Clear `alive' member.
  2519. (destroy): Likewise.
  2520. (currentThread): Implemented.
  2521. (start): Pass `daemon' argument to JvPrivThreadStart.
  2522. (sleep): Rewrote.
  2523. * include/java-lang.h (Thread): Added `alive', `tsync' members.
  2524. (Thread): Added `init_data' method.
  2525. * java/lang/Thread.java (alive, data): New instance variables.
  2526. (init_data): New private method.
  2527. (isAlive): No longer native.
  2528. Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
  2529. * include/java-lang.h (JvRunMain): Declare.
  2530. * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
  2531. * prims.cc (JvRunMain): New function.
  2532. (main_signature, main_name): New globals.
  2533. * boehm.cc (mark_array): Use `elements' function and not
  2534. operator[] on jarray.
  2535. * posix-threads.cc: Include <config.h>. Define nanosleep if
  2536. required.
  2537. * configure: Rebuilt.
  2538. * configure.in: Check for _nanosleep.
  2539. * configure: Rebuilt.
  2540. * configure.in: Check for pthread_mutexattr_settype.
  2541. * include/cni.h (class JvSynchronize): New class.
  2542. * java/lang/Thread.java (sleep): Throws InterruptedException.
  2543. (join): Throws InterruptedException.
  2544. (resume): Not native.
  2545. (resume_): New method.
  2546. (start): Now synchronized.
  2547. (stop_): New method.
  2548. (Thread): Synchronize when accessing threadNumber.
  2549. (misc): Removed.
  2550. * java/lang/natThread.cc (throwException): New macro.
  2551. (sleep): Throw InterruptedException.
  2552. (resume_): Renamed.
  2553. (stop_): Renamed.
  2554. * include/java-lang.h (Runtime): Added interrupted().
  2555. * boehm.cc (call_finalizer): Correctly initialize jobj.
  2556. * include/java-lang.h (Runtime): Added getRuntime() and exit().
  2557. * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
  2558. `#elseif'.
  2559. * configure: Rebuilt.
  2560. * configure.in: Added support for --disable-threads.
  2561. * include/no-threads.h: New file.
  2562. * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
  2563. * Makefile.in: Rebuilt.
  2564. * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
  2565. (libjava_a_DEPENDENCIES): Added THREADOBJS.
  2566. (libjava_a_LIBADD): Added THREADOBJS.
  2567. * configure: Rebuilt.
  2568. * configure.in: Added --with-threads option.
  2569. * posix-threads.cc: New file.
  2570. * include/posix-threads.h: New file.
  2571. * include/java-lang.h (Object): Added static member sync_mutex,
  2572. member sync_info, method init_mutex.
  2573. (struct JvSyncInfo): New struct.
  2574. Include "java-threads.h".
  2575. * prims.cc (soft_monitorenter): Wrote.
  2576. (soft_monitorexit): Likewise.
  2577. * java/lang/natObject.cc (init_mutex): New method.
  2578. (notify): Wrote.
  2579. (notifyAll): Wrote.
  2580. (wait): Wrote.
  2581. (sync_mutex): Define.
  2582. Include "java-threads.h".
  2583. Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
  2584. * include/java-lang.h (JvPrivInitGC): Make extern "C".
  2585. * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
  2586. Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
  2587. * include/cni.h (jbyte etc): Re-define using __java_byte etc.
  2588. Added extern "Java" in places to tell G++ Object is a "Java" type.
  2589. Other minor renaming and fixes.
  2590. * include/java-io.h (FileDescriptor): Add friend class declarations.
  2591. G++ no longer allows non-Java types in method parameters and results
  2592. of Java classes. Converted most offending methods to friends.
  2593. * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
  2594. * java/lang/natSystem.cc (setProperty): Make friend.
  2595. * java/lang/natString.cc, include/java-lang.h (String): Rename
  2596. methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
  2597. * include/java-lang.h (JArray): Remove getData and eoprator[].
  2598. Add elements friend function instead.
  2599. * java/lang/natSystem.cc (arraycopy): Use elements function.
  2600. * java/io/natFileDescriptor.cc (read, write): Likewise.
  2601. * include/java-lang.h (Object): Remove unused make method.
  2602. (System::setProperty(char*,char*)): Turn into friend function.
  2603. (Class): Rename newObject by JvAllocObject.
  2604. * prims.cc: Update to use JvAllocObject, and elements.
  2605. * java/lang/natDouble.cc: Fix double -> jdouble.
  2606. Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
  2607. * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
  2608. Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
  2609. * java/lang/natRuntime.cc (finalize_on_exit): Define.
  2610. * include/java-lang.h (Runtime): finalize_on_exit and
  2611. runFinalizersOnExit now static.
  2612. * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
  2613. match JDK 1.2b3.
  2614. (finalize_on_exit): Now static.
  2615. * boehm.cc (mark_obj): Get class using getClass() method on
  2616. object.
  2617. (_dispatchTable): Removed.
  2618. Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
  2619. * java/io/natFileDescriptor.cc (open_read): Only call open if
  2620. HAVE_OPEN defined.
  2621. (open_write): Likewise.
  2622. * Makefile.in: Rebuilt.
  2623. * Makefile.am ($(nat_files)): Depend on config.h.
  2624. Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
  2625. * prims.cc (ObjectClass): Now a macro; updated for new class name
  2626. mangling scheme.
  2627. (StringClass): Likewise.
  2628. (ClassClass): Likewise.
  2629. Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
  2630. * java/io/natFileDescriptor.cc (available): Do nothing unless
  2631. HAVE_SELECT defined.
  2632. * java/util/natDate.cc (setTime): Conditional on
  2633. HAVE_GETTIMEOFDAY.
  2634. (toString): Conditional on HAVE_TIME.
  2635. * aclocal.m4, configure: Rebuilt.
  2636. * acinclude.m4: New file.
  2637. * configure.in: Don't actually call AM_EXEEXT. Call
  2638. AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
  2639. --with-target-subdir option. Check for select and open
  2640. functions.
  2641. Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
  2642. * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
  2643. (call_finalizer): Likewise.
  2644. * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
  2645. * prims.cc (newObject): Pass actual method pointer to
  2646. JvPrivRegisterFinalizer.
  2647. * include/jvm.h (JvPrivFinalizerFunc): New typedef.
  2648. (JvPrivRegisterFinalizer): Changed interface.
  2649. * Makefile.in: Rebuilt.
  2650. * Makefile.am (MOSTLYCLEANFILES): New macro.
  2651. (CLEANFILES): Removed javao_files.
  2652. Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
  2653. * nogc.cc: New file.
  2654. * Makefile.in: Rebuilt.
  2655. * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
  2656. (EXTRA_libjava_a_SOURCES): New macro.
  2657. (libjava_a_SOURCES): Removed boehm.cc.
  2658. (libjava_a_DEPENDENCIES): Added GCOBJS.
  2659. (libjava_a_LIBADD): Likewise.
  2660. * configure: Rebuilt.
  2661. * configure.in: Added code for --enable-gc=TYPE.
  2662. Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
  2663. * boehm.cc (mark_array): Don't further dereference pointer from
  2664. array.
  2665. * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
  2666. * Makefile.in: Rebuilt.
  2667. * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
  2668. one for boehm-gc build directory.
  2669. Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
  2670. * include/java-lang.h (finalize_on_exit): New instance variable in
  2671. java::lang::Runtime.
  2672. (runFinalizersOnExit): New method.
  2673. * java/lang/Runtime.java (finalize_on_exit): New instance
  2674. variable.
  2675. (runAllFinalizers_): New private method.
  2676. (runFinalizersOnExit): New method.
  2677. * boehm.cc (JvPrivRunFinalizers): New function.
  2678. (JvPrivRunAllFinalizers): Likewise.
  2679. (JvPrivRunGC): Likewise.
  2680. * java/lang/natRuntime.cc: Include "jvm.h".
  2681. (gc): Call JvPrivRunGC.
  2682. (runFinalization): Call JvPrivRunFinalizers.
  2683. (runFinalizersOnExit): New method.
  2684. (exit_): Call JvPrivRunAllFinalizers if required.
  2685. * include/jvm.h: Declare JvPrivRunFinalizers,
  2686. JvPrivRunAllFinalizers, JvPrivRunGC.
  2687. Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
  2688. * boehm.cc (JvPrivRegisterFinalizer): New function.
  2689. (call_finalizer): Likewise.
  2690. * include/jvm.h: Declare JvPrivRegisterFinalizer.
  2691. * prims.cc (finalize_name): New global.
  2692. (newObject): Just call other newObject.
  2693. (newObject): Register finalizer if it exists.
  2694. Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
  2695. * prims.cc (gc_malloc): Removed.
  2696. (makeUtf8Const): Use JvPrivAllocBytes.
  2697. (lookupArray): Likewise.
  2698. (newPrimArray): Likewise.
  2699. (JvNewObjectArray): Use JvPrivAllocArray.
  2700. (newObject): Use JvPrivAllocObj.
  2701. (newObject): Likewise.
  2702. Changed Method -> JvMethod everywhere.
  2703. Changed Field -> JvField everywhere.
  2704. * include/java-lang.h (Object): Changed type of `fields' to
  2705. JvField*.
  2706. (jmethodID, jfieldID): New typedefs.
  2707. (Object): JvGetFirstInstanceField and JvNumInstanceFields now
  2708. friends.
  2709. * include/jvm.h (struct JvMethod): Renamed from Method, and moved
  2710. from java-lang.h.
  2711. (METHOD_NATIVECODE): Moved from java-lang.h.
  2712. (class JvField): New class.
  2713. (JvGetFirstInstanceField): New function.
  2714. (JvFieldIsRef): Likewise.
  2715. (JvGetObjectField): Likewise.
  2716. (JvNumInstanceFields): Likewise.
  2717. Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
  2718. * boehm.cc: New file.
  2719. * Makefile.in: Rebuilt.
  2720. * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
  2721. (INCLUDES): Added -I options to find boehm-gc files.
  2722. Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
  2723. * configure: Rebuilt.
  2724. * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
  2725. * Makefile.in: Rebuilt.
  2726. * Makefile.am (nat_files): New macro.
  2727. (libjava_a_DEPENDENCIES): Use it.
  2728. (libjava_a_LIBADD): Likewise.
  2729. ($(nat_files)): New static pattern rule.
  2730. (class_files): Run separate find to find .class files.
  2731. (javao_files): Compute based on class_files.
  2732. (BUILT_SOURCES): New macro.
  2733. Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
  2734. * Makefile.am (java_files): New macro.
  2735. (class_files): Likewise.
  2736. (javao_files): Likewise.
  2737. (libjava_a_DEPENDENCIES): Include $(javao_files).
  2738. (libjava_a_LIBADD): Likewise.
  2739. (classes.stamp): Depend on $(java_files); only recompile changed
  2740. files.
  2741. (here): New macro.
  2742. (CLEANFILES): Don't run find; use macros. Don't mention
  2743. libjava.a.
  2744. (.class.o): New target.
  2745. (compiled.stamp): Removed.
  2746. Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
  2747. * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
  2748. LineNumberReader}>java: Newly-implemented standard classes.
  2749. Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
  2750. * Makefile.in: Rebuilt.
  2751. * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
  2752. * Makefile.in: Rebuilt.
  2753. * Makefile.am (hack): New macro.
  2754. (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
  2755. Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
  2756. * include/config.h.in: New file.
  2757. * include/config.h: Removed.
  2758. * acconfig.h: New file.
  2759. * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
  2760. (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
  2761. libjava_a_LIBADD): New macros.
  2762. (INCLUDES): New macro.
  2763. (prims.o): Removed.
  2764. (.cc.o): Removed.
  2765. (SUFFIXES): Removed.
  2766. (all): Removed.
  2767. (libjava.a): Removed.
  2768. * configure: Rebuilt.
  2769. * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
  2770. Look for headers and functions we require. Create
  2771. include/config.h.
  2772. Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
  2773. * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
  2774. soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
  2775. soft_lookupinterfacemethod): New functions.
  2776. (PrimClass): Actually initialize the primitive classes.
  2777. (Utf8Const2JavaString): Moved to java/lang/natString.cc.
  2778. * include/java-util.h: Removed java::util definition.
  2779. * include/cni.h: Moved java::util here and added Properties.
  2780. Added more function prototypes.
  2781. * include/java-lang.h: Added mroe methods and friend declarations.
  2782. * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
  2783. * include/jvm.h (strLengthUtf8): Add declaration.
  2784. * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
  2785. New static field.
  2786. * java/lang/{Byte,Short,Void}.java: New classes.
  2787. * java/lang/Character.java (isJavaIdentifierStart,
  2788. JavaIdentifierPart): New static methods.
  2789. * java/lang/Number.java (byteValue, shortValue): New methods.
  2790. * java/lang/String.java (intern, hashCode): Make native.
  2791. * java/lang/natString.cc: New file. Handle the string pool.
  2792. * Makefile.am: Build natString.o. Use CXXFLAGS.
  2793. * java/lang/Class.java (isArray, isPrimitive, getComponentType,
  2794. isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
  2795. * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
  2796. * java/lang/System.java (setProperty): New private method.
  2797. (initProperties): Take argument, and make native.
  2798. * java/lang/natSystem.cc: Implement (preliminary) initProperties.
  2799. (currentTimeMillis): Make more robust.
  2800. * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
  2801. * java/io/UnsupportedEncodingException.java: New exception class.
  2802. * java/io/DataInputStream.java: Don't use a PushbackInputStream.
  2803. * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
  2804. Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
  2805. * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
  2806. * prims.cc: Added bunch of stuff.
  2807. * include/cni.h: Added various definitions.
  2808. * include/java-lang.h: Added Method, various friends, some macros.
  2809. * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
  2810. * java/lang/System.java (arraycopy): Make native.
  2811. Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
  2812. * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
  2813. natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
  2814. * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
  2815. * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
  2816. Make native.
  2817. * java/lang/Runtime.java: Declare methods as native instead of
  2818. using NativeLang.
  2819. * java/lang/SecurityManager.java (getClassContext): Just throw Error.
  2820. * java/lang/System.java: Comment out some stuff, for now.
  2821. * java/lang/Thread.java: Re-write. Use native methods.
  2822. * java/lang/NativeLang.java: Remove most of it.
  2823. * java/util/natDate.cc: Native (C++) methods for Date.
  2824. * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
  2825. * java/util/Date.java: Complete re-write.
  2826. * java/io/io-defs.h: New header file.
  2827. * java/io/FileDescriptor.java: Add a bunch of private methods,
  2828. mostly moved from NativeIO.java and natNativeIO.cc.
  2829. * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
  2830. * java/io/File.java: Use new code.
  2831. * java/io/{FileInputStream.java.FileOutputStream.java,
  2832. RandomAccessFile.java}: Use new private FileDescriptor methods.
  2833. * java/io/NativeIO.java: Removed, no longer used.
  2834. * java/io/StreamTokenizer.java (numericChars): Make char array.
  2835. * include/*.h: Various header files used by the C++ native code.
  2836. * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
  2837. New autoconf+automake-based setup.
  2838. * prims.cc: New file for Java "primitives".