ChangeLog-2000 179 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078
  1. 2000-12-30 Bryce McKinlay <bryce@albatross.co.nz>
  2. * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
  3. the correct versions of various linuxthreads functions get linked.
  4. * Makefile.in: Rebuilt.
  5. * java/lang/natThread.cc (finalize_native): New static function. Call
  6. _Jv_ThreadDestroyData.
  7. (initialize_native): Register finalizer for "data".
  8. * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
  9. (_Jv_ThreadDestroyData): New prototype.
  10. * include/win32-threads.h: Ditto.
  11. * include/no-threads.h: Ditto.
  12. * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
  13. (_Jv_ThreadDestroyData): New function. Free native thread "data" and
  14. move mutex and condition variable destroy code from:
  15. (really_start): ...here.
  16. (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
  17. * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
  18. (_Jv_ThreadDestroyData): Implemented.
  19. * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
  20. (_Jv_AllocArray): Ditto.
  21. 2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
  22. * java/sql/DriverManager.java (getConnection): Don't set user/password
  23. properties if null.
  24. 2000-12-27 Warren Levy <warrenl@redhat.com>
  25. Fix for PR libgcj/1358:
  26. * java/lang/System.java: Update Copyright date properly.
  27. * java/util/Calendar.java: Fix typo in comment.
  28. (set): Set 24-hour clock hour instead of 12-hour clock hour.
  29. * java/util/GregorianCalendar.java (GregorianCalendar): Properly
  30. initialize times. Spec says to set H:M:S values to zero only if
  31. a date is given.
  32. * java/util/TimeZone.java (getDefaultDisplayName): Casts to char
  33. needed for evaluating numbers '0' to '9' in printouts of GMT offsets.
  34. * java/util/natGregorianCalendar.cc (computeTime): Properly handle
  35. timezones and GMT offsets, being careful to account for units of
  36. milliseconds vs. seconds.
  37. 2000-12-28 Bryce McKinlay <bryce@albatross.co.nz>
  38. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can
  39. not be assigned to Object.
  40. Fix for PR libgcj/1516:
  41. * java/lang/reflect/natMethod.cc (primitives): Remove void entry.
  42. Add boolean entry.
  43. (can_widen): Declared inline. Remove redundant checks for void
  44. arguments and char->short conversion. Add special case for boolean
  45. conversions.
  46. (ffi_type): Declared inline.
  47. (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block.
  48. 2000-12-26 Petter Reinholdtsen <pere@hungry.com>
  49. * java/sql/SQLWarning.java: Fixed typo in comment.
  50. 2000-12-26 Tom Tromey <tromey@redhat.com>
  51. * java/awt/MenuItem.java (paramString): Now protected.
  52. * java/awt/MenuShortcut.java: Implements Serializable.
  53. * java/awt/MenuBar.java: Rewrote from scratch.
  54. * java/awt/MenuComponent.java (removeNotify): Wrote.
  55. Implements Serializable.
  56. * java/awt/GridBagConstraints.java (GridBagConstraints): New
  57. constructor.
  58. * java/awt/CheckboxMenuItem.java: Wrote.
  59. 2000-12-25 Tom Tromey <tromey@redhat.com>
  60. * java/awt/MenuContainer.java: Fixed typo.
  61. * Makefile.in: Rebuilt.
  62. * Makefile.am (awt_java_source_files): Added SystemColor.java.
  63. * java/awt/SystemColor.java: New file.
  64. * java/awt/Color.java (rgba): Now package-private.
  65. * java/awt/event/InputEvent.java (isAltGraphDown): New method.
  66. * java/awt/event/ContainerEvent.java (getContainer): Renamed from
  67. getComponent.
  68. * java/awt/MenuItem.java (addNotify): New method.
  69. (MenuItem(String,MenuShortcut)): New constructor.
  70. (setLabel): Notify peer of change.
  71. (setEnabled): Likewise.
  72. * java/awt/GridLayout.java (toString): New method.
  73. * java/awt/FlowLayout.java (LEADING, TRAILING): New constants.
  74. (FlowLayout): Check for LEADING and TRAILING.
  75. (setAlignment): Likewise.
  76. (layoutContainer): Handle component orientation.
  77. * java/awt/Component.java (orientatin): New field.
  78. (setComponentOrientation): Wrote.
  79. (getComponentOrientation): Wrote.
  80. * java/awt/Event.java (Event): Implements Serializable.
  81. (consumed): New field for serialization.
  82. * java/awt/Dimension.java (Dimension): Implements Serializable.
  83. * java/awt/Cursor.java (Cursor): Implements Serializable.
  84. * java/awt/Container.java (Container): No longer abstract.
  85. * java/awt/Choice.java: Wrote.
  86. * java/awt/Checkbox.java: Wrote.
  87. * java/awt/ItemSelectable.java: Documented.
  88. * java/awt/CheckboxGroup.java: Wrote.
  89. * java/awt/CardLayout.java (layoutContainer): Directly use fields
  90. in other classes.
  91. (getSize): Likewise.
  92. 2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com>
  93. * java/io/FileDescriptor.java: Initialize fd to -1.
  94. Remove default constructor.
  95. 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
  96. * java/lang/mprec.h: Change C9X reference to refer to C99.
  97. 2000-12-22 Bryce McKinlay <bryce@albatross.co.nz>
  98. * java/lang/Throwable.java (trace_enabled): New static field.
  99. * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if
  100. trace_enabled not set.
  101. * prims.cc (main_init): Turn off trace_enabled while creating
  102. default exception objects.
  103. 2000-12-21 Tom Tromey <tromey@redhat.com>
  104. * java/beans/PropertyChangeListener.java: Extends EventListener.
  105. * java/beans/VetoableChangeListener.java: Extends EventListener.
  106. * java/util/zip/Deflater.java (update, init): Now private.
  107. 2000-12-21 Bryce McKinlay <bryce@albatross.co.nz>
  108. * java/util/BasicMapEntry.java: Re-added.
  109. * java/util/HashMap.java (Entry): Extend BasicMapEntry.
  110. (putAll): Test for BasicMapEntry.
  111. * java/util/Hashtable.java (Entry): Extend BasicMapEntry.
  112. (putAll): Test for BasicMapEntry.
  113. Change references from `HashMap.Entry' to `Entry' in various places.
  114. * Makefile.am: Add BasicMapEntry.java.
  115. * Makefile.in: Rebuilt.
  116. 2000-12-18 Warren Levy <warrenl@redhat.com>
  117. * java/util/GregorianCalendar.java (GregorianCalendar): Constructors
  118. need to set timezone to a valid non-null value. Partial fix for
  119. PR 331.
  120. 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
  121. * java/awt/Window.java (addNotify): Remove peer casting hack now that
  122. gcj/312 is fixed.
  123. * java/awt/Button.java (addNotify): Likewise.
  124. * java/awt/Label.java (addNotify): Likewise.
  125. * java/awt/Panel.java (addNotify): Likewise.
  126. * java/awt/Scrollbar.java (addNotify): Likewise.
  127. * java/awt/Component.java (processPaintEvent): Use peer not getPeer.
  128. Remove redundant null checks.
  129. 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
  130. * COPYING: Update to current
  131. ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
  132. to 19yy as example year in copyright notice).
  133. 2000-12-18 Bryce McKinlay <bryce@albatross.co.nz>
  134. * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as
  135. end-of-stream if avail_in is 0.
  136. 2000-12-17 Bryce McKinlay <bryce@albatross.co.nz>
  137. * java/util/ArrayList.java (data): Declare transient.
  138. (serialPersistantFields): Removed.
  139. (readObject): Use defaultReadObject(), not readFields().
  140. (writeObject): Use defaultWriteObject(), not writeFields().
  141. 2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com>
  142. * java/util/Hashtable.java (put): Remove `last' variable.
  143. Link new entry to head of list.
  144. * java/util/HashMap.java (put): Ditto.
  145. 2000-12-15 Tom Tromey <tromey@redhat.com>
  146. * java/util/ResourceBundle.java (trySomeGetBundle): Pass class
  147. loader to Class.forName.
  148. 2000-12-14 Tom Tromey <tromey@redhat.com>
  149. * java/util/ResourceBundle.java
  150. (getBundle(String,Locale,ClassLoader)): New method.
  151. (trySomeGetBundle): Added `loader' argument.
  152. (partialGetBundle): Likewise.
  153. * java/text/NumberFormat.java (groupingUsed, parseIntegerOnly,
  154. maximumFractionDigits, maximumIntegerDigits,
  155. minimumFractionDigits, minimumIntegerDigits): Now
  156. package-private.
  157. * java/lang/Thread.java (checkAccess): Now final.
  158. * java/lang/RuntimePermission.java: Class now final.
  159. * java/io/StringWriter.java (StringWriter(int)): Now public.
  160. * java/io/SerializablePermission.java (legal_names): Now private.
  161. * java/lang/Character.java: Updated UnicodeBlock constants.
  162. * scripts/blocks.pl: Special case private use and surrogate
  163. areas. Updated URL.
  164. 2000-12-12 Tom Tromey <tromey@redhat.com>
  165. * Makefile.in: Rebuilt.
  166. * Makefile.am (GCJ_WITH_FLAGS): New macro, includes --encoding
  167. option.
  168. (GCJCOMPILE): Use it.
  169. (JAVAC): Likewise.
  170. 2000-12-11 Tom Tromey <tromey@redhat.com>
  171. * gnu/gcj/runtime/FirstThread.java (Kcert, Kfile, Khttp, Kjar):
  172. New static final fields.
  173. * scripts/classes.pl (scan): Skip lines with leading `*'.
  174. Fix for PR libgcj/378.
  175. 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
  176. * configure.in: Remove check for -fuse-divide-subroutine.
  177. * configure: Rebuilt.
  178. * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
  179. * gcj/javaprims.h: Rebuilt CNI namespace declarations.
  180. 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
  181. * Makefile.am: Add HashSet.java and java/lang/ref classes.
  182. Remove BasicMapEntry.java and Bucket.java.
  183. * Makefile.in: Rebuilt.
  184. * java/util/HashMap.java: Rewritten.
  185. * java/util/HashSet.java: Imported from classpath.
  186. * java/util/WeakHashMap.java: Imported from classpath.
  187. * java/util/Hashtable.java: Rewritten based on new HashMap code.
  188. * java/util/Bucket.java: Deleted.
  189. * java/util/BasicMapEntry.java: Deleted.
  190. * java/util/Collections.java (search): Use a for-loop, not iterator
  191. hasNext().
  192. (copy): Use a for-loop. Throw an IndexOutOfBoundsException if run out
  193. of elements in source.
  194. (max): Use a for-loop.
  195. (min): Ditto.
  196. (reverse): Keep track of positions instead of using Iterator's
  197. nextIndex() and previousIndex().
  198. (shuffle(List)): Initialize defaultRandom if required using
  199. double-check thread safety idiom. Call two-argument shuffle method
  200. using defaultRandom.
  201. (defaultRandom): New field.
  202. (shuffle(List, Random)): Use a for-loop. Keep track of pos instead of
  203. using previousIndex() and nextIndex().
  204. (singletonMap(iterator)): Use a HashMap.Entry, not BasicMapEntry.
  205. * java/util/AbstractCollection.java (toString): Use a StringBuffer.
  206. * java/util/AbstractMap.java (toString): Use StringBuffer.
  207. * java/lang/ref/PhantomReference.java: Imported from classpath.
  208. * java/lang/ref/SoftReference.java: Ditto.
  209. * java/lang/ref/Reference.java: Ditto.
  210. * java/lang/ref/WeakReference.java: Ditto.
  211. * java/lang/ref/ReferenceQueue.java: Ditto.
  212. 2000-12-10 Richard Henderson <rth@redhat.com>
  213. * configure.host: Recognize alpha*-*, not alphaev6-*.
  214. 2000-12-09 Anthony Green <green@redhat.com>
  215. * configure.host: Enable interpreter for Alpha.
  216. 2000-12-09 Alexandre Petit-Bianco <apbianco@cygnus.com>
  217. * Makefile.am (data_DATA): libgcj.jar replaces libgcj.zip.
  218. (ZIP): Points at fastjar instead of zip.
  219. (libgcj_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
  220. (libgcj_la_LDFLAGS): Correctly point at libsupc++.
  221. (libgcjx_la_DEPENDENCIES): libgcj.jar replaces libgcj.zip.
  222. (libgcjx_la_LDFLAGS): Correctly point at libsupc++.
  223. ($(java_source_files:.java=.class):): libgcj.jar replaces libgcj.zip.
  224. ($(x_java_source_files:.java=.class):): Likewise.
  225. (libgcj.jar:): Replaces libgcj.zip:, builds libgcj.jar and uses
  226. fastar's flags.
  227. (CLEANFILES): libgcj.jar replaces libgcj.zip.
  228. (java/lang/ClassLoader.h:): Depends on libgcj.jar.
  229. (gnu/gcj/runtime/FirstThread.h:, java/lang/Thread.h:,
  230. java/lang/String.h:, java/lang/reflect/Constructor.h:,
  231. java/lang/reflect/Field.h:, java/lang/reflect/Method.h:,
  232. gnu/gcj/runtime/VMClassLoader.h:,
  233. java/io/ObjectInputStream$$GetField.h:,
  234. java/io/ObjectOutputStream$$PutField.h:, header-check:): Likewise.
  235. (Makefile.in): Rebuilt.
  236. 2000-12-08 Tom Tromey <tromey@redhat.com>
  237. From Phil Edwards:
  238. * configure: Rebuilt.
  239. * configure.in: Use echo, not `:', to create .d files.
  240. 2000-12-08 Warren Levy <warrenl@redhat.com>
  241. * java/lang/StringBuffer.java (insert(int,char[])): Avoid
  242. NullPointerException so proper check of offset can be done.
  243. 2000-12-08 Warren Levy <warrenl@redhat.com>
  244. * java/io/FileInputStream.java (close): Check if the fd is valid.
  245. * java/io/RandomAccessFile.java (close): Ditto.
  246. * java/net/PlainDatagramSocketImpl.java (close): Ditto.
  247. * java/net/PlainSocketImpl.java (close): Ditto.
  248. 2000-12-06 Tom Tromey <tromey@redhat.com>
  249. * java/awt/GridBagConstraints.java: Filled in values for static
  250. final fields.
  251. * java/util/BitSet.java: Updated copyright notice.
  252. * Makefile.in: Rebuilt.
  253. * Makefile.am (awt_java_source_files): Added new file.
  254. * java/awt/GridBagConstraints.java: New file.
  255. 2000-12-05 Tom Tromey <tromey@redhat.com>
  256. * java/text/Collator.java (decomposeCharacter, decmp, strength):
  257. Now package-private, not protected.
  258. * java/text/DateFormatSymbols.java (equals): Now private.
  259. * java/text/DecimalFormatSymbols.java (safeGetChar): Now private.
  260. * java/util/BitSet.java: Class no longer final.
  261. 2000-12-04 Warren Levy <warrenl@redhat.com>
  262. * java/util/TimeZone.java (getAvailableIDs): Activated commented
  263. out code dependent on compiler and library changes.
  264. 2000-12-04 Warren Levy <warrenl@redhat.com>
  265. * java/io/FilePermission.java: Made class final per spec.
  266. * java/text/DecimalFormatSymbols.java (setCurrencySymbol): Changed
  267. method name to match spec (fixed typo).
  268. * java/util/LinkedList.java: Implements List.
  269. 2000-12-04 Bryce McKinlay <bryce@albatross.co.nz>
  270. * java/lang/natDouble.cc: Include fdlibm.h, not mprec.h. From
  271. Edgar Villanueva <edgarvil@home.com>.
  272. 2000-12-03 Tom Tromey <tromey@redhat.com>
  273. * java/awt/geom/Point2D.java: Added protected constructor.
  274. (equals): New method.
  275. (Float.setLocation(float,float)): New method.
  276. * java/awt/geom/Dimension2D.java: Added protected constructor.
  277. * java/awt/geom/AffineTransform.java: Made all constants public.
  278. (concatenate): Fixed typo in name.
  279. * java/awt/event/WindowAdapter.java: Class now abstract.
  280. * java/awt/event/KeyEvent.java (CHAR_UNDEFINED): Now final.
  281. * java/awt/event/FocusEvent.java: Extend ComponentEvent, not
  282. AWTEvent.
  283. * java/awt/AWTError.java: Extend Error, not
  284. IllegalStateException.
  285. * Makefile.in: Rebuilt.
  286. * Makefile.am (awt_java_source_files): Added new file.
  287. * java/awt/geom/RoundRectangle2D.java: New file.
  288. * Makefile.in: Rebuilt.
  289. * Makefile.am (awt_java_source_files): Added new file.
  290. * java/awt/FlowLayout.java: New file.
  291. * Makefile.in: Rebuilt.
  292. * Makefile.am (awt_java_source_files): Added new file.
  293. * java/awt/GridLayout.java: New file.
  294. 2000-12-02 Tom Tromey <tromey@redhat.com>
  295. * Makefile.in: Rebuilt.
  296. * Makefile.am (awt_java_source_files): Added new files.
  297. * java/awt/CardLayout.java: New file.
  298. * java/awt/AWTPermission.java: New file.
  299. 2000-12-01 Tom Tromey <tromey@redhat.com>
  300. * java/util/Vector.java (insertElementAt): Unconditionally
  301. increment elementCount.
  302. (removeRange): Clear unused slots in vector.
  303. 2000-12-02 Bryce McKinlay <bryce@albatross.co.nz>
  304. * java/lang/natMath.cc: Declare fabsf() function.
  305. * java/lang/mprec.h: Don't include math.h.
  306. * java/lang/dtoa.c: Include string.h.
  307. * java/lang/natString.cc (toLowerCase): Initialize `ch' to prevent
  308. compiler warning.
  309. From Adam Welc <welc@cs.purdue.edu>:
  310. * java/util/LinkedList.java (removeFirst): Update `first' field.
  311. Handle the last == first case.
  312. (removeLast): Update `last' field. Handle the last == first case.
  313. 2000-12-01 Warren Levy <warrenl@cygnus.com>
  314. * Makefile.am: Added entries for new java.sql modules.
  315. * Makefile.in: Rebuilt.
  316. 2000-12-01 Warren Levy <warrenl@cygnus.com>
  317. * mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
  318. that aren't quite 1.2 compatible yet.
  319. 2000-11-30 Warren Levy <warrenl@cygnus.com>
  320. * java/sql/Array.java: New file from classpath.
  321. * java/sql/BatchUpdateException.java: Ditto.
  322. * java/sql/Blob.java: Ditto.
  323. * java/sql/Clob.java: Ditto.
  324. * java/sql/Ref.java: Ditto.
  325. * java/sql/SQLData.java: Ditto.
  326. * java/sql/SQLInput.java: Ditto.
  327. * java/sql/SQLOutput.java: Ditto.
  328. * java/sql/Struct.java: Ditto.
  329. * java/sql/CallableStatement.java: Merged file from claspath.
  330. * java/sql/Connection.java: Ditto.
  331. * java/sql/DataTruncation.java: Ditto.
  332. * java/sql/DatabaseMetaData.java: Ditto.
  333. * java/sql/DriverManager.java: Ditto.
  334. * java/sql/PreparedStatement.java: Ditto.
  335. * java/sql/ResultSet.java: Ditto.
  336. * java/sql/ResultSetMetaData.java: Ditto.
  337. * java/sql/SQLException.java: Ditto.
  338. * java/sql/SQLWarning.java: Ditto.
  339. * java/sql/Statement.java: Ditto.
  340. * java/sql/Types.java: Ditto.
  341. 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>
  342. * java/lang/natSystem.cc (init_properties): Set user.language and
  343. user.region.
  344. * configure.in: Check for setlocale.
  345. * configure: Rebuilt.
  346. * include/config.h.in: Rebuilt.
  347. * java/util/zip/InflaterInputStream (read): Don't return -1 unless
  348. the infate() call didn't deliver any output. Throw a ZipException if
  349. the needsDictionary() call returns true.
  350. * java/io/ByteArrayInputStream (read): Remove redundant bounds checks.
  351. * java/io/InputStreamReader: Use the default buffer size for the
  352. contained BufferedInputStream.
  353. 2000-11-28 Warren Levy <warrenl@cygnus.com>
  354. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added
  355. more time zone entries.
  356. * java/text/SimpleDateFormat.java (format): Added case for
  357. TIMEZONE_FIELD.
  358. 2000-11-28 Bryce McKinlay <bryce@albatross.co.nz>
  359. * java/io/DataInputStream.java: Merge classpath docs. Call in.read()
  360. directly rather than read() in all cases. Make primitive read
  361. implementations more efficient, as defined in JDK online docs.
  362. (skipBytes): Behave like the JDK's implementation.
  363. * java/io/BufferedReader.java: Merge classpath docs. Check for a
  364. closed stream with checkStatus() whenever an IOException can be
  365. thrown.
  366. (checkStatus): New private method.
  367. 2000-11-27 Warren Levy <warrenl@cygnus.com>
  368. * Makefile.am: Added natTimeZone.cc.
  369. * Makefile.in: Rebuilt.
  370. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries.
  371. * java/text/DateFormatSymbols.java (ampms): Made package private.
  372. (eras): Made package private.
  373. (months): Made package private.
  374. (shortMonths): Made package private.
  375. (shortWeekdays): Made package private.
  376. (weekdays): Made package private.
  377. (formatPrefixes): New private field.
  378. (localPatternCharsDefault): Made private.
  379. (dateFormats): New package private field.
  380. (timeFormats): New package private field.
  381. (formatsForKey): New private method.
  382. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats.
  383. (DateFormatSymbols(DateFormatSymbols)): Ditto.
  384. * java/text/SimpleDateFormat.java: Merged with Classpath.
  385. * java/util/TimeZone.java: Merged with Classpath.
  386. * java/util/natTimeZone.cc: New file.
  387. 2000-11-27 Bryce McKinlay <bryce@albatross.co.nz>
  388. * java/util/Vector.java (ensureCapacity): Don't increment modCount.
  389. (addElement): Don't increment elementCount twice. Doh.
  390. * java/util/ArrayList.java (add): Only call ensureCapacity if the
  391. array needs to be expanded.
  392. (addAll): Ditto.
  393. * java/util/Collections.java (UnmodifiableCollection): Implement
  394. toString().
  395. (UnmodifiableList): Throw UnsupportedOperationException from
  396. modification methods. Set `l' from the one-parameter constructor.
  397. (UnmodifiableMap): Implement toString().
  398. (SynchronizedCollection): Ditto.
  399. (SynchronizedList): Set `l' from the one-parameter constructor.
  400. (SynchronizedSortedSet): Set `ss' from the one-parameter constructor.
  401. (SynchronizedMap): Implement toString().
  402. Sun Nov 26 23:59:55 2000 Anthony Green <green@redhat.com>
  403. * javax/naming/NameParser.java,
  404. javax/naming/directory/AttributeInUseException.java,
  405. javax/naming/directory/AttributeModificationException.java,
  406. javax/naming/directory/InvalidAttributeIdentifierException.java,
  407. javax/naming/directory/InvalidAttributesException.java,
  408. javax/naming/directory/InvalidAttributeValueException.java,
  409. javax/naming/directory/InvalidSearchControlsException.java,
  410. javax/naming/directory/InvalidSearchFilterException.java,
  411. javax/naming/directory/NoSuchAttributeException.java,
  412. javax/naming/directory/SchemaViolationException.java: New files.
  413. Sun Nov 26 22:35:53 2000 Anthony Green <green@redhat.com>
  414. * javax/naming/InitialContext.java (rebind): Implement.
  415. (unbind): Implement.
  416. (rename): Implement.
  417. (list): Implement.
  418. (listBindings): Implement.
  419. (destroySubcontext): Implement.
  420. (createSubcontext): Implement.
  421. (lookupLink): Implement.
  422. (getNameParser): Implement.
  423. (composeName): Implement.
  424. (addToEnvironment): Implement.
  425. Sun Nov 26 21:30:25 2000 Anthony Green <green@redhat.com>
  426. * javax/naming/AuthenticationException.java,
  427. javax/naming/AuthenticationNotSupportedException.java,
  428. javax/naming/CannotProceedException.java,
  429. javax/naming/CommunicationException.java,
  430. javax/naming/ConfigurationException.java,
  431. javax/naming/ContextNotEmptyException.java,
  432. javax/naming/InsufficientResourcesException.java,
  433. javax/naming/InterruptedNamingException.java,
  434. javax/naming/InvalidNameException.java,
  435. javax/naming/LimitExceededException.java,
  436. javax/naming/LinkException.java,
  437. javax/naming/LinkLoopException.java,
  438. javax/naming/MalformedLinkException.java,
  439. javax/naming/NameAlreadyBoundException.java,
  440. javax/naming/NameNotFoundException.java,
  441. javax/naming/NamingSecurityException.java,
  442. javax/naming/NoPermissionException.java,
  443. javax/naming/NotContextException.java,
  444. javax/naming/PartialResultException.java,
  445. javax/naming/ReferralException.java,
  446. javax/naming/ServiceUnavailableException.java,
  447. javax/naming/SizeLimitExceededException.java,
  448. javax/naming/TimeLimitExceededException.java: New files.
  449. * javax/naming/Name.java (clone): New method.
  450. (compareTo): New method.
  451. (isEmpty): New method.
  452. (getAll): New method.
  453. (getPrefix): New method.
  454. (getSuffix): New method.
  455. (startsWith): New method.
  456. (endsWith): New method.
  457. (addAll): New method.
  458. (addAll): New method.
  459. (add): New method.
  460. (add): New method.
  461. (remove): New method.
  462. * javax/naming/Context.java (lookup): New method.
  463. (rebind): New method.
  464. (unbind): New method.
  465. (rename): New method.
  466. (list): New method.
  467. (listBindings): New method.
  468. (destroySubcontext): New method.
  469. (createSubcontext): New method.
  470. (lookupLink): New method.
  471. (getNameParser): New method.
  472. (composeName): New method.
  473. (addToEnvironment): New method.
  474. (removeFromEnvironment): New method.
  475. (getEnvironment): New method.
  476. (close): New method.
  477. (getNameInNamespace): New method.
  478. * javax/naming/InitialContext.java (lookup): New method.
  479. (rebind): New method.
  480. (unbind): New method.
  481. (rename): New method.
  482. (list): New method.
  483. (listBindings): New method.
  484. (destroySubcontext): New method.
  485. (createSubcontext): New method.
  486. (lookupLink): New method.
  487. (getNameParser): New method.
  488. (composeName): New method.
  489. (addToEnvironment): New method.
  490. (removeFromEnvironment): New method.
  491. (getEnvironment): New method.
  492. (close): New method.
  493. (getNameInNamespace): New method.
  494. 2000-11-26 Tom Tromey <tromey@cygnus.com>
  495. * Makefile.in: Rebuilt.
  496. * Makefile.am (core_java_source_files): Added
  497. RuntimePermission.java.
  498. * java/lang/RuntimePermission.java: Imported from Classpath.
  499. * java/lang/Thread.java (getContextClassLoader): Now
  500. synchronized. Added security code.
  501. (setContextClassLoader): Likewise.
  502. * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize
  503. length field of array.
  504. (_Jv_NewPrimArray): Likewise.
  505. * gcj/array.h (__JArray): `length' field now const. Added
  506. constructor.
  507. 2000-11-26 Anthony Green <green@redhat.com>
  508. * javax/naming/spi/NamingManager.java,
  509. javax/naming/spi/ObjectFactory.java,
  510. javax/naming/spi/InitialContextFactory.java,
  511. javax/naming/spi/InitialContextFactoryBuilder.java,
  512. javax/naming/RefAddr.java, javax/naming/Reference.java,
  513. javax/naming/NamingException.java, javax/naming/Context.java,
  514. javax/naming/Referenceable.java,
  515. javax/naming/directory/InitialDirContext.java,
  516. javax/naming/directory/DirContext.java,
  517. javax/naming/directory/Attributes.java,
  518. javax/naming/directory/Attribute.java,
  519. javax/naming/StringRefAddr.java,
  520. javax/naming/NamingEnumeration.java, javax/naming/Name.java,
  521. javax/naming/InitialContext.java,
  522. javax/naming/NoInitialContextException.java: New files.
  523. 2000-11-25 Anthony Green <green@redhat.com>
  524. * prims.cc (_Jv_NewObjectArray): Undo placement change.
  525. (_Jv_NewPrimArray): Likewise.
  526. * gcj/array.h (__JArray): Undo const change. Removed constructor.
  527. (class JArray): Removed constructor.
  528. * java/lang/Thread.java (context_class_loader): New private data.
  529. (getContextClassLoader): New method.
  530. (setContextClassLoader): New method.
  531. (Thread): Initialize context_class_loader.
  532. * java/net/URLClassLoader.java: Import java.util.Enumeration.
  533. (getResource): Rename to findResource.
  534. (findResource): New method. Used to be getResource.
  535. (getResourceAsStream): Deleted.
  536. (jarFileize): Extracted logic from URLClassLoader constructor into
  537. this new private method.
  538. (addURL): New protected method.
  539. (URLClassLoader): Call jarFileize. Use addElement instead of
  540. insertElementAt.
  541. (findResources): New method.
  542. * java/lang/ClassLoader.java: Import java.util.Enumeration.
  543. (getResource): Implement correct logic.
  544. (findResource): New method.
  545. (getResources): New method.
  546. (findClass): Create a ClassNotFoundException with the name of the
  547. class rather than nothing at all.
  548. (defineClass) Only throw ClassFormatError.
  549. * java/lang/Class.java (forName): New method.
  550. * java/lang/Class.h (forName): New method.
  551. * java/lang/natClass.cc (forName): New method.
  552. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
  553. * java/lang/System.java (setProperties): Only call init_properties()
  554. if properties is null.
  555. (getProperties): Ditto.
  556. (getProperty): Ditto.
  557. (setProperty): Call init_properties if properties are null.
  558. (prop_init): Remove field.
  559. * java/lang/natSystem.cc (init_properties): Synchronize the entire
  560. method. Check for null properties after synchronizing instead of
  561. prop_init flag. Set the properties field last for thread safety.
  562. * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set,
  563. test for gcj.dumpobjects property and enable object stream dumping
  564. if it is set.
  565. (dumpElement): No longer native.
  566. (dumpElementln): Ditto.
  567. (setDump): Do not define.
  568. * java/io/natObjectInputStream.cc (dumpElement): Removed.
  569. (dumpElementln): Removed.
  570. (setDump): Removed.
  571. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>
  572. * configure: Rebuilt.
  573. * Makefile.in: Rebuilt.
  574. * Makefile.am (built_java_source_files): Add Configuration.java.
  575. * configure.in: Add Configuration.java to CONFIG_FILES. Set
  576. LIBGCJDEBUG substitution if --enable-libgcj-debug is specified.
  577. Create `gnu' directory in the build tree.
  578. * gnu/classpath/Configuration.java.in: New file.
  579. 2000-11-24 Tom Tromey <tromey@cygnus.com>
  580. * prims.cc (_Jv_NewObjectArray): Use placement new to create
  581. array.
  582. (_Jv_NewPrimArray): Likewise.
  583. Include <new>.
  584. * gcj/array.h (__JArray): `length' field now const. Added
  585. constructor.
  586. (class JArray): Added constructor.
  587. 2000-11-23 Mark Wielaard <mark@klomp.org>
  588. * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting
  589. lookup.
  590. 2000-11-23 Bryce McKinlay <bryce@albatross.co.nz>
  591. * java/util/Vector.java: Improve exception messages.
  592. (Vector): Check initialCapacity for IllegalArgumentException.
  593. (tromToSize): Don't check for elementCount == elementData.length
  594. case.
  595. (toArray): Don't try to set null marker if target array is the same
  596. length as the vector.
  597. 2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
  598. * Makefile.in: Rebuilt.
  599. * Makefile.am (core_java_source_files): Added Collections.java.
  600. * java/util/List.java: Merged from classpath.
  601. * java/util/Vector.java: Ditto.
  602. * java/util/Collections.java: From classpath.
  603. * java/util/ArrayList.java (addAll(Collection)): Call
  604. addAll(int,Collection) instead of duplicating code.
  605. (indexOf): Clean up int initialization.
  606. (clear): Set cleared array entries to null, to allow garbage
  607. collection.
  608. * java/util/List.java: Minor formatting fixes.
  609. * java/util/SimpleTimeZone.java: ditto.
  610. 2000-11-18 Tom Tromey <tromey@cygnus.com>
  611. * Makefile.in: Rebuilt.
  612. * Makefile.am (core_java_source_files): Added new files.
  613. * java/lang/reflect/ReflectPermission.java: New class.
  614. * java/io/FileFilter.java: From Classpath
  615. * java/io/FilePermission.java: From Classpath.
  616. 2000-11-17 Tom Tromey <tromey@cygnus.com>
  617. * java/lang/reflect/AccessibleObject.java (isAccessible,
  618. setAccessible): Now public.
  619. * java/lang/natString.cc: Include Locale.h.
  620. (toUpperCase): Added `locale' argument. Handle locale
  621. sensitivity.
  622. (toLowerCase): Added `locale' argument. Handle locale
  623. sensitivity.
  624. (ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
  625. CAPITAL_I): New defines.
  626. * java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
  627. final.
  628. Import Locale.
  629. (toUpperCase, toLowerCase): New methods. Variants which accept
  630. locale now native.
  631. * java/lang/ExceptionInInitializerError.java (printStackTrace):
  632. New methods.
  633. * java/util/PropertyPermission.java: Re-merged from Classpath.
  634. * java/text/RuleBasedCollator.java (getCollationElementIterator):
  635. New method.
  636. * java/text/StringCharacterIterator.java: Reindented.
  637. (setText): New method.
  638. 2000-11-17 Mark Wielaard <mark@klomp.org>
  639. Merge with Classpath (changes by Bryce McKinlay)
  640. * java/util/jar/*.java: Reformat all to unofficial standard coding
  641. style. No changes of substance.
  642. 2000-11-17 Mark Wielaard <mark@klomp.org>
  643. * java/util/zip/*.java: Javadoc updates.
  644. 2000-11-17 Tom Tromey <tromey@cygnus.com>
  645. * java/text/CollationKey.java: Implement Comparable.
  646. (compareTo(Object)): New method.
  647. * java/text/Collator.java (compare(Object,Object)): New method.
  648. Implement Comparator.
  649. * java/util/zip/InflaterInputStream.java (available): New method.
  650. (close): New method.
  651. (read, available, skip, fill): Throw exception if stream closed.
  652. * java/util/zip/ZipInputStream.java (read, skip, readFully, fill,
  653. getNextEntry): Throw exception if closed.
  654. 2000-11-16 Tom Tromey <tromey@cygnus.com>
  655. * java/io/PushbackReader.java: Merged with Classpath.
  656. * java/util/Arrays.java: Updated from Classpath.
  657. * scripts/blocks.pl: New file.
  658. * java/lang/Character.java (Subset): New class.
  659. (UnicodeBlock): New class.
  660. * java/lang/Math.java (toDegrees, toRadians): New methods.
  661. * java/lang/Float.java: Implement Comparable.
  662. (compareTo): New methods.
  663. * java/lang/Double.java: Implement Comparable.
  664. (compareTo): New methods.
  665. 2000-11-16 Warren Levy <warrenl@cygnus.com>
  666. * java/beans/PropertyChangeSupport.java (propertyListeners): Made
  667. transient.
  668. (listeners): Made transient.
  669. (source): Renamed from 'bean'.
  670. (children): New field for serialization.
  671. (propertyChangeSupportSerializedDataVersion): Ditto.
  672. (serialVersionUID): Ditto.
  673. (writeObject): New serialization method.
  674. (readObject): New serialization method.
  675. * java/beans/VetoableChangeSupport.java (propertyListeners): Made
  676. transient.
  677. (listeners): Made transient.
  678. (source): Renamed from 'bean'.
  679. (children): New field for serialization.
  680. (vetoableChangeSupportSerializedDataVersion): Ditto.
  681. (serialVersionUID): Ditto.
  682. (writeObject): New serialization method.
  683. (readObject): New serialization method.
  684. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert
  685. to allow constructor to have a return type (i.e. the class that the
  686. constructor constructs).
  687. 2000-11-14 Tom Tromey <tromey@cygnus.com>
  688. * Makefile.in: Rebuilt.
  689. * Makefile.am (libgcj.zip): Fail immediately if compilation fails
  690. and -k not given.
  691. 2000-11-02 Warren Levy <warrenl@cygnus.com>
  692. * java/io/ObjectInputStream.java (readObject): Added code to
  693. conditionally dump out the serialized data.
  694. Handle ENDBLOCKDATA case a bit more gracefully since the current
  695. behavior doesn't seem to work as expected.
  696. (readStreamHeader): Added code for serialized data dumper.
  697. (readNextBlock): Ditto.
  698. (readFields): Ditto.
  699. (dump): New private static field for turning on/off dumper.
  700. (setDump): New native method.
  701. (dumpElement): New native method.
  702. (dumpElementln): New native method.
  703. * java/io/natObjectInputStream.cc (setDump): New method.
  704. (dumpElement): New method.
  705. (dumpElementln): New method.
  706. 2000-11-02 Warren Levy <warrenl@cygnus.com>
  707. * java/net/InetAddress.java (addr): Renamed from 'address'.
  708. (address): New field to match Serialized Form doc.
  709. (hostName): Renamed from 'hostname' to match Serialized Form doc.
  710. (family): New serialization field.
  711. (serialVersionUID): New field.
  712. (readObject): New method.
  713. (writeObject): New method.
  714. (getFamily): New native method.
  715. (InetAddress): Set family.
  716. * java/net/natInetAddress.cc (getFamily): New method.
  717. (addr): Renamed from 'address'.
  718. (hostName): Renamed from 'hostname' to match Serialized Form doc.
  719. * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'.
  720. * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'.
  721. 2000-11-03 Bryce McKinlay <bryce@albatross.co.nz>
  722. * java/util/AbstractList.java (SubList): Make it a top-level private
  723. class.
  724. * java/util/LinkedList.java (remove): Do update modCount and knownMod.
  725. (add): Ditto.
  726. * Makefile.am (ordinary_java_source_files): Add LinkedList.java.
  727. * Makefile.in: Rebuilt.
  728. 2000-11-02 Tom Tromey <tromey@cygnus.com>
  729. * Makefile.in: Rebuilt.
  730. * Makefile.am (install-exec-hook): Make `.la' link, not `.so'
  731. link.
  732. 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
  733. * java/util/AbstractList.java (remove): Comment out modCount increment
  734. to work around compiler bug.
  735. (add): Ditto.
  736. 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz>
  737. * java/util/AbstractList.java: Throw messages with
  738. IndexOutOfBoundsExceptions.
  739. (listIterator()): Call listIterator(0).
  740. (size): New field. Initialize to size().
  741. (hasNext): Test position against size, not size().
  742. (remove): Increment knownMod by one instead of resetting it from
  743. modCount.
  744. (add): Ditto.
  745. (SubList.upMod): Removed.
  746. (SubList.set): Don't call upMod() or update knownMod.
  747. (SubList.add(int,Object)): Increment modCount instead of caling upMod().
  748. (SubList.remove): Ditto.
  749. (SubList.addAll): Don't call backingList.size(). Increment size from
  750. c.size().
  751. (SubList.iterator): New method. Call listIterator(0).
  752. (SubList.listIterator): New method. Restore code to return an anonymous
  753. listIterator implementation (with some changes).
  754. * java/util/AbstractSequentialList.java: Throw messages with
  755. IndexOutOfBoundsExceptions.
  756. (addAll): Add a specnote.
  757. * java/util/ArrayList.java (removeRange): Get the math right.
  758. (addAll): Increment modCount _before_ creating iterator.
  759. * java/util/LinkedList.java: Rewritten, mostly.
  760. 2000-11-01 Tom Tromey <tromey@cygnus.com>
  761. * scripts/encodings.pl: Added `ASCII' alias.
  762. * Makefile.in: Rebuilt.
  763. * Makefile.am (convert_source_files): Added new files.
  764. * gnu/gcj/convert/Input_ASCII.java: New file.
  765. * gnu/gcj/convert/Output_ASCII.java: New file.
  766. * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent
  767. out-of-range characters.
  768. * gnu/gcj/convert/natIconv.cc (iconv_init): New method.
  769. (read): Swap bytes if required. Treat `count' as character count,
  770. not byte count.
  771. (write): Likewise. Also, handle case where iconv fails on a given
  772. character.
  773. (init): Put encoding into exception.
  774. * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global.
  775. (static): Call iconv_init. Rebuilt alias list.
  776. (iconv_init): New private method.
  777. 2000-11-01 Tom Tromey <tromey@cygnus.com>
  778. * Makefile.in: Rebuilt.
  779. * Makefile.am (install-exec-hook): Only make a single symlink, and
  780. remove the destination before making the link.
  781. * configure: Rebuilt.
  782. * configure.in: Call AC_PROG_LN_S.
  783. 2000-10-31 Warren Levy <warrenl@cygnus.com>
  784. * jni.cc: Added include of java/lang/ThreadGroup.h.
  785. * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace
  786. per change of 2000-10-05.
  787. 2000-10-30 Bryce McKinlay <bryce@albatross.co.nz>
  788. * java/util/BitSet.java: Updated @specnote.
  789. * java/io/Reader.java: Merge docs from classpath.
  790. (skip): Synchronize on `lock'.
  791. * java/io/FileReader.java: Import correct implementation from
  792. classpath.
  793. * java/io/StringReader.java: Merge docs from classpath.
  794. (ready): Throw IOException if stream is closed.
  795. 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz>
  796. * java/util/AbstractCollection.java (addAll): Use size() instead of
  797. hasNext() in iterator loop.
  798. (clear): Ditto.
  799. (contains): Ditto. Simplify loop.
  800. (containsAll): Ditto.
  801. (remove): Ditto.
  802. (removeAll): Ditto.
  803. (retainAll): Ditto.
  804. (toArray): Ditto.
  805. (toString): Ditto. Use string concatenation operators, not
  806. StringBuffer.
  807. * java/util/AbstractList.java (addAll): Use size() instead of
  808. hasNext() in iterator loop.
  809. (equals): Ditto.
  810. (hashCode): Ditto.
  811. (indexOf): Ditto. Don't take null check outside of the loop.
  812. (iterator): Return an AbstractListItr instead of anonymous class.
  813. (lastIndexOf): Use a for loop bounded by size() instead of
  814. hasPrevious() in iterator loop.
  815. (listIterator): Return an AbstractListItr.
  816. (removeRange): Remove bounds checking code and docs.
  817. (AbstractListItr): New inner class. Code moved here from
  818. listIterator().
  819. (SubList.iterator): Removed. Use default implementation from
  820. AbstractList instead.
  821. (SubList.listIterator): As above.
  822. * java/util/AbstractMap.java (clear): Use a for loop bounded by size()
  823. instead of hasNext() in iterator loop.
  824. (containsValue): Ditto.
  825. (equals): Ditto.
  826. (get): Ditto.
  827. (put): Ditto.
  828. (putAll): Ditto.
  829. (remove): Ditto.
  830. (toString): Ditto. Use string concatenation operators, not
  831. StringBuffer.
  832. * java/util/AbstractSequentialList.java (addAll): Use a for loop
  833. bounded by size() instead of hasNext() in iterator loop.
  834. * java/util/AbstractSet.java (hashCode): Don't catch exception as
  835. part of normal execution flow. Do an explicit null check instead.
  836. * java/util/ArrayList.java (_iSize): Rename to `size'.
  837. (_arData): Rename to `data'.
  838. (get): Check lower bounds also. Simplify IndexOutOfBoundsException
  839. message.
  840. (remove): Ditto.
  841. (removeRange): Make protected. Don't check bounds.
  842. (add): Check lower bounds also. Simplify IndexOutOfBoundsException
  843. message.
  844. (addAll (Collection)): Use a size-bounded for loop instead of hasNext()
  845. check.
  846. (addAll (int, Collection)): Check lower bounds. Simplify exception
  847. string.
  848. (clone): Clone the data array too.
  849. (indexOf): Inline doesEqual().
  850. (lastIndexOf): Ditto.
  851. (clear): Don't set array data to null.
  852. (set): Check lower bounds. Simplify exception string.
  853. (toArray): Correct comment.
  854. (trimToSize): Don't update modCount, this is not a structural change.
  855. Add comment.
  856. * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods
  857. implemented.
  858. (toString): Declare `bit' as long, not int.
  859. (data): Made package-private, not private.
  860. 2000-10-27 Warren Levy <warrenl@cygnus.com>
  861. * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
  862. array elements to true.
  863. 2000-10-27 Warren Levy <warrenl@cygnus.com>
  864. * Makefile.am: Added locale files from Classpath.
  865. * Makefile.in: Rebuilt.
  866. * gnu/java/locale/Calendar.java: New file.
  867. * gnu/java/locale/Calendar_de.java: New file.
  868. * gnu/java/locale/Calendar_en.java: New file.
  869. * gnu/java/locale/Calendar_nl.java: New file.
  870. * java/lang/ClassNotFoundException.java: Replaced with Classpath file.
  871. * java/math/BigDecimal.java (intVal): Renamed from 'num' for
  872. serialization compatibility.
  873. (scale): Made private.
  874. (serialVersionUID): New field.
  875. * java/math/BigInteger.java (ival): Made transient.
  876. (words): Made transient.
  877. (bitCount): New serialization field.
  878. (bitLength): Ditto.
  879. (firstNonzeroByteNum): Ditto.
  880. (lowestSetBit): Ditto.
  881. (magnitude): Ditto.
  882. (signum): Ditto.
  883. (serialVersionUID): New field.
  884. (readObject): New method.
  885. (writeObject): New method.
  886. * java/util/BitSet.java (serialVersionUID): New field.
  887. * java/util/Calendar.java: Replaced with Classpath file.
  888. * java/util/GregorianCalendar.java (GregorianCalendar): Pass result
  889. of getDefault() for TimeZone or Locale instead of passing nulls.
  890. * java/util/Locale.java (serialVersionUID): New field.
  891. (writeObject): New method.
  892. (readObject): New method.
  893. * java/util/SimpleTimeZone.java: Replaced with Classpath file.
  894. 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>
  895. * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.
  896. (core_java_source_files): Put java.lang, java.io, and java.util here.
  897. (ordinary_java_source_files): Order so that core_java_source_files are
  898. built first.
  899. (java_source_files): Reorder so that special_java_source_files are
  900. built first.
  901. * configure.in: Don't pass -I flag to gcj.
  902. * Makefile.in: Rebuilt.
  903. * configure: Rebuilt.
  904. 2000-10-25 Tom Tromey <tromey@cygnus.com>
  905. * Makefile.in: Rebuilt.
  906. * Makefile.am (install-exec-hook): New target.
  907. 2000-10-24 Bryce McKinlay <bryce@albatross.co.nz>
  908. * java/util/EventObject.java: Merged from classpath.
  909. * java/lang/ThreadGroup.java (uncaughtException): Print thread name
  910. with stack dump.
  911. 2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
  912. * java/util/AbstractSet.java (equals): Re-installed original code.
  913. 2000-10-22 Rolf W. Rasmussen <rolfwr@ii.uib.no>
  914. * Makefile.am: Added rules for libgcjx library.
  915. * Makefile.in: Rebuilt.
  916. * configure.in: Added check for X.
  917. * configure: Rebuilt.
  918. * gnu/awt/LightweightRedirector.java: New file.
  919. * gnu/awt/j2d/AbstractGraphicsState.java: New file.
  920. * gnu/awt/j2d/DirectRasterGraphics.java: New file.
  921. * gnu/awt/j2d/Graphics2DImpl.java: New file.
  922. * gnu/awt/j2d/IntegerGraphicsState.java: New file.
  923. * gnu/awt/j2d/MappedRaster.java: New file.
  924. * gnu/awt/xlib/XCanvasPeer.java: New file.
  925. * gnu/awt/xlib/XEventLoop.java: New file.
  926. * gnu/awt/xlib/XEventQueue.java: New file.
  927. * gnu/awt/xlib/XFontMetrics.java: New file.
  928. * gnu/awt/xlib/XFramePeer.java: New file.
  929. * gnu/awt/xlib/XGraphics.java: New file.
  930. * gnu/awt/xlib/XGraphicsConfiguration.java: New file.
  931. * gnu/awt/xlib/XPanelPeer.java: New file.
  932. * gnu/awt/xlib/XToolkit.java: New file.
  933. * gnu/gcj/xlib/Clip.java: New file.
  934. * gnu/gcj/xlib/Colormap.java: New file.
  935. * gnu/gcj/xlib/Display.java: New file.
  936. * gnu/gcj/xlib/Drawable.java: New file.
  937. * gnu/gcj/xlib/Font.java: New file.
  938. * gnu/gcj/xlib/GC.java: New file.
  939. * gnu/gcj/xlib/Pixmap.java: New file.
  940. * gnu/gcj/xlib/Screen.java: New file.
  941. * gnu/gcj/xlib/Visual.java: New file.
  942. * gnu/gcj/xlib/WMSizeHints.java: New file.
  943. * gnu/gcj/xlib/Window.java: New file.
  944. * gnu/gcj/xlib/WindowAttributes.java: New file.
  945. * gnu/gcj/xlib/XAnyEvent.java: New file.
  946. * gnu/gcj/xlib/XButtonEvent.java: New file.
  947. * gnu/gcj/xlib/XColor.java: New file.
  948. * gnu/gcj/xlib/XConfigureEvent.java: New file.
  949. * gnu/gcj/xlib/XConnectException.java: New file.
  950. * gnu/gcj/xlib/XEvent.java: New file.
  951. * gnu/gcj/xlib/XException.java: New file.
  952. * gnu/gcj/xlib/XExposeEvent.java: New file.
  953. * gnu/gcj/xlib/XID.java: New file.
  954. * gnu/gcj/xlib/XImage.java: New file.
  955. * gnu/gcj/xlib/XUnmapEvent.java: New file.
  956. * gnu/gcj/xlib/natClip.cc: New file.
  957. * gnu/gcj/xlib/natColormap.cc: New file.
  958. * gnu/gcj/xlib/natDisplay.cc: New file.
  959. * gnu/gcj/xlib/natDrawable.cc: New file.
  960. * gnu/gcj/xlib/natFont.cc: New file.
  961. * gnu/gcj/xlib/natGC.cc: New file.
  962. * gnu/gcj/xlib/natPixmap.cc: New file.
  963. * gnu/gcj/xlib/natScreen.cc: New file.
  964. * gnu/gcj/xlib/natVisual.cc: New file.
  965. * gnu/gcj/xlib/natWMSizeHints.cc: New file.
  966. * gnu/gcj/xlib/natWindow.cc: New file.
  967. * gnu/gcj/xlib/natWindowAttributes.cc: New file.
  968. * gnu/gcj/xlib/natXAnyEvent.cc: New file.
  969. * gnu/gcj/xlib/natXButtonEvent.cc: New file.
  970. * gnu/gcj/xlib/natXColor.cc: New file.
  971. * gnu/gcj/xlib/natXConfigureEvent.cc: New file.
  972. * gnu/gcj/xlib/natXException.cc: New file.
  973. * gnu/gcj/xlib/natXExposeEvent.cc: New file.
  974. * gnu/gcj/xlib/natXImage.cc: New file.
  975. * gnu/gcj/xlib/natXUnmapEvent.cc: New file.
  976. * java/awt/EventDispatchThread.java: Start thead on creation.
  977. 2000-10-20 Tom Tromey <tromey@cygnus.com>
  978. From Arno J. Klaassen:
  979. * interpret.cc: Include <stdlib.h> for alloca.
  980. * defineclass.cc: Include <stdlib.h> for alloca.
  981. * Makefile.in: Rebuilt.
  982. * Makefile.am: Include deps.mk.
  983. (GCJCOMPILE): Added -MD, -MT, and -MF.
  984. ($(javao_files)): Don't depend on libgcj.zip.
  985. (all-recursive): New target.
  986. (%.lo:%.cc): Do dependency tracking.
  987. ($(nat_headers)): Don't depend on libgcj.zip.
  988. * configure: Rebuilt.
  989. * configure.in: Make .d files and deps.mk.
  990. 2000-10-13 Bryce McKinlay <bryce@albatross.co.nz>
  991. * exception.cc: Don't #include "exception".
  992. (_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
  993. * Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
  994. * Makefile.in: Updated.
  995. 2000-10-11 Bryce McKinlay <bryce@albatross.co.nz>
  996. * java/awt/peer/ChoicePeer.java (addItem): Removed.
  997. * java/awt/peer/ComponentPeer.java (disable): Removed.
  998. (enable): Removed.
  999. (hide): Removed.
  1000. (minimumSize): Removed.
  1001. (preferredSize): Removed.
  1002. (reshape): Removed.
  1003. (show): Removed.
  1004. * java/awt/peer/ListPeer.java (addItem): Removed.
  1005. (clear): Removed.
  1006. (minimumSize): Removed.
  1007. (preferredSize): Removed.
  1008. (setMultipleSelections): Removed.
  1009. * java/awt/peer/MenuBarPeer.java (add): Renamed from addMenu.
  1010. (remove): Renamed from removeMenu.
  1011. * java/awt/peer/MenuItemPeer.java (disable): Removed.
  1012. (enable): Removed.
  1013. * java/awt/peer/MenuPeer.java (add): Renamed from addItem.
  1014. (remove): Renamed from removeItem.
  1015. * java/awt/peer/TextAreaPeer.java (insertText): Removed.
  1016. (getMinimumSize): Removed.
  1017. (getPreferredSize): Removed.
  1018. (minimumSize): Removed.
  1019. (preferredSize): Removed.
  1020. (replaceText): Removed.
  1021. * java/awt/peer/TextFieldPeer.java (minimumSize): Removed.
  1022. (preferredSize): Removed.
  1023. (getMinimumSize): Removed.
  1024. (getPreferredSize): Removed.
  1025. (setEchoCharacter): Removed.
  1026. 2000-10-10 Warren Levy <warrenl@cygnus.com>
  1027. * gnu/gcj/text/LocaleData_en.java (monetarySeparator): Added.
  1028. * java/sql/Date.java (serialVersionUID): New field.
  1029. * java/sql/Time.java (serialVersionUID): New field.
  1030. * java/sql/Timestamp.java (serialVersionUID): New field.
  1031. * java/text/ChoiceFormat.java (serialVersionUID): New field.
  1032. * java/text/DateFormat.java (getDateTimeInstance (int)): Removed.
  1033. * java/text/DateFormatSymbols.java (serialVersionUID): New field.
  1034. * java/text/DecimalFormat.java (serialVersionOnStream): New field.
  1035. (readObject): New serialization method.
  1036. * java/text/DecimalFormatSymbols.java (monetarySeparator): New field.
  1037. (serialVersionOnStream): New field.
  1038. (readObject): New serialization method.
  1039. (getMonetaryDecimalSeparator): New method.
  1040. (setMonetaryDecimalSeparator): New method.
  1041. * java/text/NumberFormat.java (maxFractionDigits): New field.
  1042. (maxIntegerDigits): New field.
  1043. (minFractionDigits): New field.
  1044. (minIntegerDigits): New field.
  1045. (serialVersionOnStream): New field.
  1046. (serialVersionUID): New field.
  1047. (readObject): New serialization method.
  1048. (writeObject): New serialization method.
  1049. * java/text/SimpleDateFormat.java (defaultCenturyStart): Initialized.
  1050. (serialVersionOnStream): New field.
  1051. (serialVersionUID): New field.
  1052. (readObject): New serialization method.
  1053. 2000-10-09 Alexandre Oliva <aoliva@redhat.com>
  1054. * configure.in (GCJ): Avoid bogus error message when looking for
  1055. (and not finding) gcj in the build tree.
  1056. * configure: Rebuilt.
  1057. 2000-10-09 Tom Tromey <tromey@cygnus.com>
  1058. * configure: Rebuilt.
  1059. * configure.in: Include sys/types.h when checking for socklen_t.
  1060. From Arno J. Klaassen.
  1061. 2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
  1062. * include/jvm.h: Enable __builtin_expect().
  1063. * name-finder.cc (lookup): Don't trust dladdr() if the address is from
  1064. the main program. Fix for PR libgcj/341.
  1065. 2000-10-07 Tom Tromey <tromey@cygnus.com>
  1066. * java/util/Properties.java: Merged with Classpath version.
  1067. 2000-10-05 Tom Tromey <tromey@cygnus.com>
  1068. * java/lang/reflect/natField.cc (BooleanClass): Don't define.
  1069. * java/lang/reflect/natArray.cc (BooleanClass): Don't define.
  1070. * java/lang/Class.h (Object): Added `class$' field.
  1071. * java/lang/Object.h (Object): Added `class$' field.
  1072. * defineclass.cc (ClassClass): Use `class$' form.
  1073. (ClassObject): Likewise.
  1074. * resolve.cc (ClassObject): Use `class$' form.
  1075. (ObjectClass): Likewise.
  1076. * interpret.cc (ClassError): Removed.
  1077. * java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Use
  1078. `class$' form.
  1079. (IntegerClass): Likewise.
  1080. * java/net/natPlainSocketImpl.cc (BooleanClass): Use `class$'
  1081. form.
  1082. * java/lang/natClassLoader.cc (CloneableClass): Use `class$' form.
  1083. (ObjectClass, ClassClass, VMClassLoaderClass, ClassLoaderClass,
  1084. SerializableClass): Likewise.
  1085. Include Serializable.h, Cloneable.h.
  1086. * java/lang/natSystem.cc (SystemClass): Removed.
  1087. (init_properties): Use `class$' form.
  1088. * java/lang/natObject.cc (CloneableClass): Removed.
  1089. (clone): Use `class$' form.
  1090. * java/lang/natClass.cc (CloneableClass): Use `class$' form.
  1091. (ObjectClass, ErrorClass, ClassClass, MethodClass, FieldClass,
  1092. ConstructorClass): Likewise.
  1093. * java/lang/reflect/natMethod.cc (ObjectClass): Use `class$' form.
  1094. (ClassClass, VoidClass, ByteClass, ShortClass, CharacterClass,
  1095. IntegerClass, LongClass, FloatClass, DoubleClass): Likewise.
  1096. * java/io/natObjectInputStream.cc (ObjectClass): Use `class$'
  1097. form.
  1098. (ClassClass): Likewise.
  1099. * include/jvm.h (StringClass): Use `class$' form.
  1100. * prims.cc (ObjectClass): Removed.
  1101. (_Jv_RunMain): Use `class$' form.
  1102. (_Jv_AllocObject): Likewise.
  1103. * jni.cc (ClassClass): Use `class$' form.
  1104. (ThrowableClass): Likewise.
  1105. (ObjectClass): Likewise.
  1106. (MethodClass): Likewise.
  1107. (ThreadGroupClass): Likewise.
  1108. (NativeThreadClass): Likewise.
  1109. * boehm.cc (ObjectClass): Removed.
  1110. (ClassClass): Removed.
  1111. (_Jv_MarkObj): Use `class$' form.
  1112. * gcj/field.h (JvFieldIsRef): Use `class$' form.
  1113. Include RawData.h.
  1114. 2000-10-05 Warren Levy <warrenl@cygnus.com>
  1115. * Makefile.am: Removed java/io/Replaceable.java and
  1116. java/io/Resolvable.java.
  1117. * Makefile.in: Rebuilt.
  1118. * gcj/javaprims.h: Removed Replaceable and Resolvable from java.io
  1119. namespace.
  1120. * java/io/ObjectInputStream.java (processResolution): Fixed typo
  1121. in method name.
  1122. (processResolution): Handle readResolve method via reflection with
  1123. removal of Resolvable interface.
  1124. * java/io/ObjectOutputStream.java (writeObject): Handle writeReplace
  1125. method via reflection with removal of Replaceable interface.
  1126. * java/io/Replaceable.java: Removed.
  1127. * java/io/Resolvable.java: Removed.
  1128. * java/security/Key.java (serialVersionUID): New field.
  1129. * java/security/Provider.java (serialVersionUID): New field.
  1130. * java/security/interfaces/DSAPrivateKey.java (serialVersionUID):
  1131. New field.
  1132. * java/security/interfaces/DSAPublicKey.java (serialVersionUID):
  1133. New field.
  1134. * java/sql/DataTruncation.java (serialVersionUID): New field.
  1135. * java/sql/SQLException.java (serialVersionUID): New field.
  1136. * java/sql/SQLWarning.java (serialVersionUID): New field.
  1137. * java/util/Date.java (serialVersionUID): New field.
  1138. (millis): Made transient.
  1139. (readObject): New method.
  1140. (writeObject): New method.
  1141. 2000-10-05 Tom Tromey <tromey@cygnus.com>
  1142. * gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
  1143. 2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
  1144. * prims.cc (_Jv_argv, _Jv_argc): New fields.
  1145. (JvRunMain): Set _Jv_argv and _Jv_argc.
  1146. * java/awt/Component.java: Minor fixes.
  1147. * java/awt/Image.java (UndefinedProperty): Initialize final field.
  1148. * java/awt/Toolkit.java (systemEventQueue): Removed.
  1149. (getDefaultToolkit): Default to "gnu.awt.gtk.GtkToolkit".
  1150. * java/awt/Window.java (getToolkit): Don't call super.
  1151. * java/awt/image/BufferedImage.java: Fix definite assignment errors.
  1152. * java/awt/peer/ContainerPeer.java (insets): Remove unused method.
  1153. * gnu/awt/gtk/GtkComponentPeer.java: New file.
  1154. * gnu/awt/gtk/GtkContainerPeer.java: New file.
  1155. * gnu/awt/gtk/GtkFramePeer.java: New file.
  1156. * gnu/awt/gtk/GtkMainThread.java: New file.
  1157. * gnu/awt/gtk/GtkToolkit.java: New file.
  1158. * gnu/awt/gtk/GtkWindowPeer.java: New file.
  1159. * gnu/awt/gtk/gtkcommon.cc: New file.
  1160. * gnu/awt/gtk/gtkcommon.h: New file.
  1161. * gnu/awt/gtk/natGtkComponentPeer.cc: New file.
  1162. * gnu/awt/gtk/natGtkContainerPeer.cc: New file.
  1163. * gnu/awt/gtk/natGtkFramePeer.cc: New file.
  1164. * gnu/awt/gtk/natGtkMainThread.cc: New file.
  1165. * gnu/awt/gtk/natGtkToolkit.cc: New file.
  1166. * gnu/awt/gtk/natGtkWindowPeer.cc: New file.
  1167. 2000-09-30 Tom Tromey <tromey@cygnus.com>
  1168. * posix-threads.cc (_Jv_CondWait): Check to see if we are
  1169. interrupted before modifying the cv's wait set.
  1170. From Corey Minyard.
  1171. 2000-09-30 Hans Boehm <boehm@acm.org>
  1172. Bryce McKinlay <bryce@albatross.co.nz>
  1173. Implement bitmap descriptor based marking for Boehm GC.
  1174. * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used.
  1175. * configure: Rebuilt.
  1176. * libgcj.spec.in: Pass JC1GCSPEC to jc1.
  1177. * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline
  1178. method get_finalizer().
  1179. (struct _Jv_ArrayVTable): Ditto. Declare method array with
  1180. NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1.
  1181. (_Jv_AllocObj): Add new jclass parameter.
  1182. (_Jv_AllocArray): Ditto.
  1183. (_Jv_BuildGCDescr): New prototype.
  1184. * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass
  1185. `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use
  1186. get_finalizer() instead of direct finalizer vtable offset.
  1187. (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass
  1188. `klass' to _Jv_AllocArray. Don't set the new array's vtable.
  1189. (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass
  1190. `klass' to _Jv_AllocObj. Don't set the new array's vtable.
  1191. * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines.
  1192. (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE.
  1193. (_Jv_DetermineVTableIndex): Ditto.
  1194. (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable
  1195. calculations to account for new gc_descr field.
  1196. * boehm.cc: #include gc_gcj.h.
  1197. (obj_kind_x, obj_free_list): `#if 0'-ed away.
  1198. (_Jv_MarkObj): Check that vtable doesn't point to a cleared object.
  1199. New commentary from HB. Mark the classes vtable.
  1200. (_Jv_MarkArray): Check that vtable doesn't point to a cleared object.
  1201. (GC_DEFAULT_DESCR): New #define.
  1202. (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now.
  1203. (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC ().
  1204. (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and
  1205. scan conservativly if size is less than min_heap_addr. Set vtable
  1206. pointer of new object before returning.
  1207. (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC.
  1208. (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and
  1209. allocation for obj_kind_x.
  1210. * nogc.cc (_Jv_BuildGCDescr): New function. Return 0.
  1211. (_Jv_AllocObj): Set vtable on returned object.
  1212. (_Jv_AllocArray): Ditto.
  1213. * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend.
  1214. (_Jv_NewPrimArray): Ditto.
  1215. (_Jv_AllocObj): Declare as a friend.
  1216. (_Jv_AllocArray): Ditto.
  1217. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr
  1218. from &ObjectClass into new array class. Remove offset-by-one
  1219. adjustments from `method' size calculations to account for gc_descr
  1220. field.
  1221. 2000-09-26 Tom Tromey <tromey@cygnus.com>
  1222. * java/awt/Scrollbar.java (removeAdjustmentListener): Use
  1223. `remove', not `add'.
  1224. 2000-09-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1225. * java/lang/natSystem.cc (file_encoding): Added return statement.
  1226. 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
  1227. * Makefile.am: Re-work shell commands that exceeded command-line
  1228. length limits.
  1229. * Makefile.in: Rebuilt.
  1230. * java/lang/natRuntime.cc (lt_preloaded_symbols): Define as `extern'.
  1231. * defineclass.cc: Include alloca.h only if HAVE_ALLOCA_H.
  1232. * java/lang/natDouble.cc: Likewise.
  1233. * java/lang/reflect/natMethod.cc: Likewise.
  1234. * interpret.cc: Likewise. Fix NULLCHECKs that tested a _Jv_word.
  1235. 2000-09-13 Alexandre Oliva <aoliva@redhat.com>
  1236. * configure.in (LIBDATASTARTSPEC): Use `%s' to search for
  1237. libgcjdata.a.
  1238. (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir.
  1239. * acinclude.m4: Arrange for automake to not bring in a new
  1240. libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ.
  1241. * Makefile.am: Leave it up to automake to subst GCJ.
  1242. * aclocal.m4, configure, Makefile.in: Rebuilt.
  1243. 2000-09-13 Tom Tromey <tromey@cygnus.com>
  1244. * java/lang/reflect/natArray.cc (BooleanClass): New define.
  1245. (get): Ensure Boolean class is initialized.
  1246. * java/lang/reflect/natField.cc (BooleanClass): New define.
  1247. (get): Ensure Boolean class is initialized.
  1248. 2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
  1249. * java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
  1250. Initialize with anonymous class.
  1251. (compareToIgnoreCase): New method.
  1252. * java/lang/ThreadGroup.java (had_uncaught_exception): New field.
  1253. (uncaughtException): Set had_uncaught_exception.
  1254. * prims.cc (JvRunMain): Check value of had_uncaught_exception and
  1255. exit with error status if set.
  1256. (_Jv_RunMain): Ditto.
  1257. 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
  1258. * configure: Rebuilt with new ../libtool.m4.
  1259. 2000-09-11 Tom Tromey <tromey@cygnus.com>
  1260. * java/lang/reflect/Field.java (toString): Don't rely on
  1261. Class.toString.
  1262. 2000-09-08 Tom Tromey <tromey@cygnus.com>
  1263. * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Let
  1264. default decoder use iconv.
  1265. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder):
  1266. Let default encoder use iconv.
  1267. * configure: Rebuilt.
  1268. * configure.in: Check for nl_langinfo and <langinfo.h>.
  1269. * java/lang/natSystem.cc (file_encoding): New function.
  1270. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible.
  1271. 2000-09-10 Alexandre Oliva <aoliva@redhat.com>
  1272. * acinclude.m4: Simplify the tests for CC and CXX.
  1273. * aclocal.m4, configure: Rebuilt.
  1274. * acinclude.m4: Include libtool macros from the source tree.
  1275. * aclocal.m4, configure: Rebuilt.
  1276. 2000-09-08 Warren Levy <warrenl@cygnus.com>
  1277. * java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
  1278. * java/beans/PropertyVetoException.java (serialVersionUID): Added.
  1279. * java/io/File.java (writeObject): Added.
  1280. (readObject): Added.
  1281. (serialVersionUID): Added.
  1282. * java/io/ObjectOutputStream.java (writeObject): Initialized
  1283. fieldsAlreadyWritten before recursion rather than after.
  1284. * java/io/ObjectStreamClass.java (serialVersionUID): Added.
  1285. * java/io/OptionalDataException.java (serialVersionUID): Added.
  1286. (OptionalDataException): Made package private.
  1287. * java/io/SyncFailedException.java (SyncFailedException): Removed
  1288. default constructor to match spec.
  1289. * java/lang/Boolean.java (serialVersionUID): Added.
  1290. * java/lang/Byte.java (serialVersionUID): Added.
  1291. * java/lang/Character.java (serialVersionUID): Added.
  1292. * java/lang/Double.java (serialVersionUID): Added.
  1293. * java/lang/Float.java (serialVersionUID): Added.
  1294. * java/lang/Integer.java (serialVersionUID): Added.
  1295. * java/lang/Long.java (serialVersionUID): Added.
  1296. * java/lang/Number.java (serialVersionUID): Added.
  1297. * java/lang/Short.java (serialVersionUID): Added.
  1298. * java/lang/String.java (serialVersionUID): Added.
  1299. * java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
  1300. to match spec.
  1301. * java/lang/reflect/InvocationTargetException.java
  1302. (serialVersionUID): Added.
  1303. * java/net/URL.java (handler): Made transient.
  1304. (hashCode): Added field for serialization, per spec. and use
  1305. cached value if available.
  1306. (serialVersionUID): Added.
  1307. (URL): Initialize hashCode.
  1308. (set): Adjust hashCode.
  1309. (readObject): New Method to initialize the protocol handler when
  1310. deserializing.
  1311. (writeObject): New method.
  1312. * java/text/BreakIterator.java: Removed 'implements Serializable'.
  1313. * java/text/Collator.java: Removed 'implements Serializable'.
  1314. * java/util/GregorianCalendar.java (serialVersionUID): Added.
  1315. * java/util/Properties.java (serialVersionUID): Added.
  1316. * java/util/Random.java (serialVersionUID): Added.
  1317. (seed): Made private.
  1318. (nextNextGaussian): Made private.
  1319. (haveNextNextGaussian): Made private.
  1320. * java/util/Stack.java (serialVersionUID): Added.
  1321. * java/util/TimeZone.java (serialVersionUID): Added.
  1322. * java/util/Vector.java (serialVersionUID): Added.
  1323. 2000-09-07 Bryce McKinlay <bryce@albatross.co.nz>
  1324. * Makefile.am (Thread.h): Don't be friends with native threads
  1325. functions.
  1326. * Makefile.in: Rebuilt.
  1327. * java/lang/Thread.java (interrupt_flag): Make package-private.
  1328. 2000-09-06 Jeff Sturm <jeff.sturm@appnet.com>
  1329. * include/jvm.h (_Jv_HashCode): Cast object ptr to `unsigned long'
  1330. to avoid long long division.
  1331. 2000-09-06 Tom Tromey <tromey@cygnus.com>
  1332. * java/lang/reflect/Constructor.java (toString): Use `getName' for
  1333. parameter types.
  1334. * java/lang/reflect/Method.java (toString): Use `getName' for
  1335. return type.
  1336. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Accept null
  1337. `args' if method takes no parameters.
  1338. Fix for PR java.lang/339:
  1339. * java/lang/natPosixProcess.cc (fail): New function.
  1340. (cleanup): New function.
  1341. (startProcess): Use them. Create pipe so child can communicate
  1342. exec failure back to parent.
  1343. 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
  1344. * java/net/natPlainDatagramSocketImpl.cc: Change various `JvThrow'
  1345. calls to `throw'.
  1346. (send): Undo last patch. Remove the label only.
  1347. (mcastGrp): Ditto.
  1348. * java/net/natPlainSocketImpl.cc: Change various `JvThrow' calls to
  1349. `throw'.
  1350. * java/net/natInetAdress.cc: Ditto.
  1351. * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Fix typo.
  1352. 2000-09-05 Tom Tromey <tromey@cygnus.com>
  1353. * doc/cni.sgml: Updated from master copy.
  1354. 2000-09-05 Bryce McKinlay <bryce@albatross.co.nz>
  1355. * gnu/gcj/convert/natIconv.cc (read): Remove unused local.
  1356. (write): Ditto.
  1357. * gnu/gcj/runtime/FileDeleter.java (deleteOnExitNow): Check for null
  1358. stack. Synchronize.
  1359. * java/lang/fdlibm.h: #undef __P if previously defined.
  1360. * java/lang/natSystem.cc (currentTimeMillis): Remove unused local.
  1361. * java/net/natPlainDatagramSocketImpl.cc (send): Remove unreachable
  1362. block.
  1363. (mcastGrp): Ditto.
  1364. 2000-09-04 Tom Tromey <tromey@cygnus.com>
  1365. * java/util/zip/ZipFile.java (ZipFile): Delete file when opened in
  1366. DELETE mode.
  1367. 2000-09-04 Anthony Green <green@redhat.com>
  1368. Fix for PR java.io/203:
  1369. * java/io/File.java (createTempFile): Obey directory argument.
  1370. Use java.io.tmpdir if needed. Don't leave FileDescripators open.
  1371. * java/lang/natSystem.cc (init_properties): Use TMPDIR environment
  1372. variable to set java.io.tmpdir on non-WIN32 systems.
  1373. 2000-09-04 Anthony Green <green@redhat.com>
  1374. * java/io/File.java (deleteOnExit): New method.
  1375. * gnu/gcj/runtime/FileDeleter.java: New class.
  1376. * java/lang/natRuntime.cc (exit): Call
  1377. FileDeleter.deleteOnExitNow()
  1378. * Makefile.am: Add FileDeleter.java.
  1379. * Makefile.in: Rebuilt.
  1380. 2000-09-02 Tom Tromey <tromey@cygnus.com>
  1381. * Makefile.in: Rebuilt.
  1382. * Makefile.am (GCJCOMPILE): Use -fclasspath, not the CLASSPATH
  1383. environment variable.
  1384. 2000-09-01 Andrew Haley <aph@redhat.com>
  1385. * java/io/StreamTokenizer.java: Don't throw a
  1386. NumberFormatException if a field is numeric as far as the
  1387. StreamTokenizer is concerned but not as far as Double.valueOf() is
  1388. concerned: return a zero instead.
  1389. 2000-08-30 Tom Tromey <tromey@cygnus.com>
  1390. * Makefile.in: Rebuilt.
  1391. * Makefile.am (AM_CXXFLAGS): Added -fdollars-in-identifiers.
  1392. 2000-08-28 Tom Tromey <tromey@cygnus.com>
  1393. * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,
  1394. gnu/gcj/awt/ComponentDataBlitOp.java,
  1395. gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java,
  1396. java/awt/RenderingHints.java, java/awt/color/ColorSpace.java,
  1397. java/awt/color/ICC_ColorSpace.java,
  1398. java/awt/color/ICC_Profile.java,
  1399. java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java,
  1400. java/awt/image/ComponentColorModel.java,
  1401. java/awt/image/ComponentSampleModel.java,
  1402. java/awt/image/DataBuffer.java,
  1403. java/awt/image/DataBufferByte.java,
  1404. java/awt/image/DataBufferInt.java,
  1405. java/awt/image/DataBufferUShort.java,
  1406. java/awt/image/DirectColorModel.java,
  1407. java/awt/image/IndexColorModel.java,
  1408. java/awt/image/PackedColorModel.java, java/awt/image/Raster.java,
  1409. java/awt/image/RasterOp.java, java/awt/image/SampleModel.java,
  1410. java/awt/image/SinglePixelPackedSampleModel.java,
  1411. java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java:
  1412. Removed Latin-1 copyright symbols.
  1413. * java/util/zip/ZipFile.java: Indentation fixes.
  1414. 2000-08-27 Mark Wielaard <mark@klomp.org>
  1415. * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new
  1416. constructor, close can delete the file, finalize calls close.
  1417. * java/util/jar/JarFile.java: Constructor that takes mode now
  1418. calls super.
  1419. 2000-08-27 Anthony Green <green@redhat.com>
  1420. * java/util/ArrayList.java, java/util/Timer.java,
  1421. java/util/LinkedList.java, java/util/TimerTask.java,
  1422. java/util/HashMap.java, java/util/AbstractMap.java,
  1423. java/util/SortedMap.java, java/util/AbstractSequentialList.java,
  1424. java/util/SortedSet.java: Imported from GNU Classpath.
  1425. * Makefile.in: Rebuilt.
  1426. * Makefile.am: Added new files.
  1427. 2000-08-26 Anthony Green <green@redhat.com>
  1428. * Makefile.in: Rebuilt.
  1429. * Makefile.am (java/lang/ClassLoader.h): Make _Jv_RunMain a
  1430. friend.
  1431. * prims.cc: Include ClassLoader.h.
  1432. (_Jv_RunMain): When executing jar files, classpath must be the jar
  1433. file only. Lose our reference to the system ClassLoader in order
  1434. to get a new one with the correct classpath.
  1435. * java/lang/natSystem.cc (init_properties): When executing a jar
  1436. file, only use the jar file for java.class.path.
  1437. * gnu/gcj/runtime/VMClassLoader.java: Use the canonical file name
  1438. for bytecode archives.
  1439. * gnu/gcj/runtime/FirstThread.java: Handle case where manifest
  1440. exists, but not Main-Class.
  1441. 2000-08-23 Mark Wielaard <mark@klomp.org>
  1442. * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):
  1443. return -1 when fill() has no more data for the Inflater.
  1444. 2000-08-23 Mark Wielaard <mark@klomp.org>
  1445. * java/io/PrintWriter.java (print(String)): Don't catch IOException,
  1446. write(String) already does.
  1447. 2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1448. * gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
  1449. to `alive_flag', call `init'.
  1450. (init): New native method.
  1451. * gnu/gcj/jni/natNativeThread.cc (init): New native method
  1452. implementation.
  1453. 2000-08-21 Mark Wielaard <mark@klomp.org>
  1454. * Makefile.in: Rebuilt.
  1455. * Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
  1456. a `friend class'.
  1457. (java/lang/reflect/Field.h): Likewise.
  1458. (java/lang/reflect/Method.h): Likewise.
  1459. (gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
  1460. `friend class'.
  1461. 2000-08-21 Tom Tromey <tromey@cygnus.com>
  1462. * java/util/ResourceBundle.java (trySomeGetBundle): Removed
  1463. debugging prints.
  1464. Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
  1465. * java/lang/natSystem.cc (init_properties): Change sourceware
  1466. reference to sources.redhat.com.
  1467. * include/java-props.h: Add _Jv_Jar_Class_Path.
  1468. * prims.cc: Ditto. Set it from `gij -jar file' option.
  1469. * java/lang/natSystem.cc (init_properties): Set java.class.path
  1470. from
  1471. {gij -jar file}:{CLASSPATH variable}:{-Djava.class.path= or .}
  1472. * java/util/PropertyPermission.java: Import from GNU Classpath.
  1473. * Makefile.in: Rebuilt.
  1474. * Makefile.am: Add java/util/PropertyPermission.java.
  1475. * java/lang/System.java: Add setProperty method.
  1476. * gij.cc (main): Add -jar option to execute jar files.
  1477. (help): Describe -jar option.
  1478. * prims.cc (_Jv_RunMain): Add support for jar execution mode.
  1479. * include/jvm.h: Add is_jar argument to _Jv_RunMain.
  1480. * gnu/gcj/runtime/FirstThread.java (main): New method.
  1481. * java/util/jar/Attributes.java: Correct comment spelling.
  1482. 2000-08-20 Mark Wielaard <mark@klomp.org>
  1483. * java/util/zip/Adler32.java: Make private variables really private
  1484. * java/util/zip/CRC32.java: Make private variables really private
  1485. * java/util/zip/CheckedInputStream.java: skip() could skip to much
  1486. bytes
  1487. * java/util/zip/InflaterInputStream.java: skip() could skip to
  1488. much bytes
  1489. * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input
  1490. * java/util/zip/ZipFile.java: size() new 1.2 method
  1491. * java/util/zip/ZipInputStream.java: Use createZipEntry not new
  1492. ZipEntry. since 1.2 available() always returns just 1 or 0 when
  1493. closed
  1494. Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
  1495. * java/util/jar/JarFile.java: Don't call
  1496. java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
  1497. <mark@klomp.org>.
  1498. Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
  1499. * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.
  1500. Read the entire contents of the class file, not just what is
  1501. available().
  1502. * java/net/JarURLConnection.java: getEntry doesn't take any
  1503. arguments. Return null if element is null.
  1504. * java/util/zip/ZipFile.java (getInputStream): Read the compressed
  1505. size from the archive, not the inflated size.
  1506. * java/util/jar/JarFile.java (getEntry): Don't recurse. Call
  1507. java.util.zip.ZipFile.getEntry.
  1508. * gij.cc (help): Change sourceware reference to
  1509. sources.redhat.com.
  1510. 2000-08-19 Tom Tromey <tromey@cygnus.com>
  1511. * java/util/zip/ZipInputStream.java (createZipEntry):
  1512. Implemented.
  1513. Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>
  1514. * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
  1515. java/util/jar/JarException.java, java/util/jar/JarFile.java,
  1516. java/util/jar/JarInputStream.java,
  1517. java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java,
  1518. java/util/Set.java, java/util/Map.java, java/util/Bucket.java,
  1519. java/util/AbstractSet.java, java/util/BasicMapEntry.java,
  1520. java/security/cert/CRL.java, java/security/cert/CRLException.java,
  1521. java/security/cert/Certificate.java,
  1522. java/security/cert/CertificateEncodingException.java,
  1523. java/security/cert/CertificateException.java,
  1524. java/security/cert/CertificateExpiredException.java,
  1525. java/security/cert/CertificateFactory.java,
  1526. java/security/cert/CertificateFactorySpi.java,
  1527. java/security/cert/CertificateNotYetValidException.java,
  1528. java/security/cert/CertificateParsingException.java,
  1529. java/security/cert/X509CRL.java,
  1530. java/security/cert/X509CRLEntry.java,
  1531. java/security/cert/X509Certificate.java,
  1532. java/security/cert/X509Extension.java: Imported from Classpath.
  1533. * java/util/Hashtable.java: Imported from Classpath.
  1534. * java/util/zip/ZipInputStream.java: Create stub for
  1535. createZipEntry.
  1536. * gcj/javaprims.h: Updated class list.
  1537. * Makefile.in, gcj/Makefile.in: Rebuilt.
  1538. * Makefile.am (ordinary_java_source_files): Add these new classes.
  1539. 2000-08-16 Rolf W. Rasmussen <rolfwr@ii.uib.no>
  1540. * gnu/gcj/awt/ComponentDataBlitOp.java: New file.
  1541. * gnu/gcj/awt/GLightweightPeer.java: New file.
  1542. * java/awt/BorderLayout.java: Implemented all methods.
  1543. * java/awt/Button.java (actionListener, actionCommand): Renamed
  1544. and modifier change.
  1545. (addNotify): Call super.
  1546. (dispatchEventImpl): New method.
  1547. (getListeners): New method.
  1548. (label): Made package-private, not private.
  1549. * java/awt/Canvas.java: Implemented class body.
  1550. * java/awt/Color.java (brighter): New method.
  1551. (darker): New method.
  1552. (hashCode): New method.
  1553. * java/awt/Component.java (visible, enabled, eventMask): Set defaults.
  1554. (getGraphicsConfiguration): Delegate to
  1555. getGraphicsConfigurationImpl().
  1556. (getGraphicsConfigurationImpl): New method.
  1557. (getToolkit): Only return value from peer if not null.
  1558. (isDisplayable): Check with parent.
  1559. (isShowing): No parent implies not showing.
  1560. (getForeground): Check parent property if local is null.
  1561. (getBackground): Likewise.
  1562. (getFont): Likewise.
  1563. (setForeground): Inform peer.
  1564. (setBackground): Likewise
  1565. (setLocale): Invalidate component.
  1566. (getColorModel): Implemented.
  1567. (setLocation): Invalidate, or ignore if no change.
  1568. (setSize): Invalidate, or ignore if no change.
  1569. (setBounds): Invalidate, or ignore if no change.
  1570. (isOpaque): By default, heavyweight implies opaque.
  1571. (isLightweight): Implemented.
  1572. (getMaximumSize): Implemented.
  1573. (doLayout): Implemented, NOP.
  1574. (validate): Implemented, NOP.
  1575. (invalidate): Only propagate to parent if parent was valid.
  1576. (getGraphics): Implemented.
  1577. (getFontMetrics): Implemented.
  1578. (update): Implemented.
  1579. (paintAll): Implemented.
  1580. (repaint): Implemented all repaint methods.
  1581. (print): Implemented.
  1582. (printAll): Implemented.
  1583. (createImage): Implemented.
  1584. (dispatchEvent): Give the peer a chance to handle the event.
  1585. (dispatchEventImpl): Dispatch paint events.
  1586. (enableEvents): Lightweights enable events on parent component.
  1587. (coalesceEvents): Coalesce paint events, and select event type
  1588. using a switch.
  1589. (coalescePaintEvents): New method.
  1590. (processEvent): Fix unfortunate ordering of statements, and call
  1591. correct method for MOUSE_CLICKED.
  1592. (processPaintEvent): New method.
  1593. (addNotify): Allow container to notify children before event
  1594. mask is set in peer.
  1595. (addNotifyContainerChildren): New method.
  1596. (removeNotify): Visibility should not change on removeNotify.
  1597. (paramString): Implemented.
  1598. (list): Implemented two of the list methods.
  1599. * Container (myInsets): Removed, insets are managed by peer.
  1600. (getInsets): Query peer.
  1601. (addImpl): Fix reparenting, enable events for lightweights,
  1602. initialize component array.
  1603. (validate): Call doLayout in validateTree() instead.
  1604. (validateTree): Do nothing if already valid. Call beginValidate(),
  1605. endValidate() on peer. Call validateTree() instead of validate()
  1606. for children that are containers. Mark valid after validation of
  1607. children.
  1608. (setFont): Partial implementation.
  1609. (paint): Implemented.
  1610. (visitChildren): New method.
  1611. (visitChild): New method.
  1612. (update): Implemented.
  1613. (print): Implemented.
  1614. (paintComponents): Implemented.
  1615. (printComponents): Consider translation and clipping.
  1616. (getComponentAt): Ignore invisible children. Return this if no
  1617. child match.
  1618. (addNotify): Call super.
  1619. (addNotifyContainerChildren): New method.
  1620. (paramString): Implemented.
  1621. (list): Implemented.
  1622. * java/awt/EventQueue (invokeAndWait): Get system event queue the
  1623. right way.
  1624. (invokeLater): Likewise.
  1625. (isDispatchThread): Likewise.
  1626. * java/awt/FontMetrics (getLeading): Formula change.
  1627. (getDescent): Consider leading also.
  1628. (getMaxAscent): Default to getAscent().
  1629. (getMaxDescent): Default to getDescent.
  1630. (getMaxAdvance): Return value signifying unknown.
  1631. (charWidth): Both methods implemented.
  1632. (charsWidth): Implemented.
  1633. (bytesWidth): Implemented.
  1634. (getWidths): Implemented.
  1635. * java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
  1636. state): New fields.
  1637. (Frame): Rearragend constuctor chaining to disallow null being
  1638. passed as a graphics configuration.
  1639. (getTitle): Return empty string if null.
  1640. (dispose): Removed.
  1641. (getIconImage): New method.
  1642. (setIconImage): New method.
  1643. (finalize): New method.
  1644. (setMenuBar): Notify peer.
  1645. (isResizable): New method.
  1646. (setResizable): New method.
  1647. (getState): New method.
  1648. (getFont): Removed.
  1649. (remove): Implemented.
  1650. (removeNotify): New method.
  1651. (getFrames): New method.
  1652. * java/awt/Graphics.java: Implemented body of class.
  1653. * java/awt/Graphics2D.java: New file.
  1654. * java/awt/GraphicsConfiguration.java: Enabled part of the API.
  1655. * java/awt/Image.java: Implemented body of class.
  1656. * java/awt/Panel.java (Panel): Call correct super constructor.
  1657. (addNotify): Implemented.
  1658. * java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
  1659. * java/awt/RenderingHints.java: New file.
  1660. * java/awt/Toolkit.java (createComponent): Implemented.
  1661. (getSystemEventQueue): Delegate to getSystemEventQueueImpl().
  1662. * java/awt/Window.java (Window): Two new constructors. Reordered
  1663. constructor chaining.
  1664. (getGraphicsConfigurationImpl): New method.
  1665. (finalize): Call super.
  1666. (addNotify): Call super.
  1667. (pack): Do layout stuff.
  1668. (show): Ensure that peer exists and that component is valid.
  1669. (dispose): Dispose owned children.
  1670. (getOwner): Simplify code, casting null pointers is valid.
  1671. (getGraphicsConfiguration): Ask peer if local value is null.
  1672. * java/awt/event/ActionEvent.java (getActionCommand): Renamed from
  1673. getcmd().
  1674. * java/awt/image/BufferedImage.java: New file.
  1675. * java/awt/image/RasterOp.java: New file.
  1676. * java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
  1677. More powerful replacement for getColorModel().
  1678. (getColorModel) Removed.
  1679. (setEventMask) New method.
  1680. * Makefile.am: Added new files.
  1681. * Makefile.in: Rebuilt.
  1682. 2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1683. * java/lang/natClass.cc (finit_name): Initialized with `finit$'.
  1684. (finit_leg_name): New global.
  1685. (java::lang::Class::getDeclaredMethods): Test for `finit$' or
  1686. `$finit$'. This is a backward compatibility hack.
  1687. (java::lang::Class::_getMethods): Likewise.
  1688. 2000-08-15 Andrew Haley <aph@cygnus.com>
  1689. * include/jvm.h (_Jv_HashCode): New hash code.
  1690. 2000-08-15 Tom Tromey <tromey@cygnus.com>
  1691. * java/io/ByteArrayOutputStream.java: Merged with Classpath.
  1692. Sun Aug 13 19:53:01 2000 Anthony Green <green@redhat.com>
  1693. * THANKS: More thanks.
  1694. 2000-08-10 Tom Tromey <tromey@cygnus.com>
  1695. * java/net/natPlainSocketImpl.cc (bind): Don't go to error case
  1696. when errno not set.
  1697. (connect): Likewise.
  1698. (accept): Likewise.
  1699. (getOption): Likewise.
  1700. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't go to error
  1701. case when errno not set.
  1702. (peek): Likewise.
  1703. (send): Likewise.
  1704. (receive): Likewise.
  1705. (mcastGrp): Likewise.
  1706. (setOption): Likewise.
  1707. (getOption): Likewise.
  1708. 2000-08-10 Bryce McKinlay <bryce@albatross.co.nz>
  1709. John Stracke <francis@ecal.com>
  1710. * gnu/gcj/protocol/http/Connection.java (gotHeaders): Removed.
  1711. (connect): Don't falsely claim HTTP/1.1 compliance. Call
  1712. getHttpHeaders().
  1713. (disconnect): Don't unset connected flag.
  1714. (getHeaderField (String)): Call connect() if not connected.
  1715. (getHeaderField (int)): Ditto.
  1716. (getHeaderFieldKey): Ditto.
  1717. (getHttpHeaders): Don't call connect().
  1718. * java/net/HttpURLConnection.java (instanceFollowRedirects,
  1719. gotResponseVals): New fields.
  1720. (getResponseCode): Call getResponseVals() conditionally.
  1721. (getResponseMessage): Ditto.
  1722. (getResponseVals): Call connect(). Don't throw FileNotFoundException.
  1723. 2000-08-09 Bryce McKinlay <bryce@albatross.co.nz>
  1724. * Makefile.am: Move beans and applet classes to awt_java_source_files.
  1725. * Makefile.in: Rebuilt.
  1726. * java/awt/Color.java (getTransparency): New method.
  1727. * java/awt/Component.java: Various updates.
  1728. * java/awt/Container.java (removeNotify): Call super.removeNotify()
  1729. after dealing with children.
  1730. * java/awt/Toolkit.java (changeSupport): Renamed from pcsupport.
  1731. * java/awt/Window.java: Various new methods and updates.
  1732. * java/awt/color/ICC_Profile.java (getNumComponents): Cast profileID
  1733. to int for switch.
  1734. * java/awt/event/KeyEvent.java (paramString): Initialize `r'.
  1735. * java/awt/event/WindowEvent.java (paramString): Ditto.
  1736. * java/awt/geom/Dimension2D.java (clone): Wrap super call with
  1737. try/catch block.
  1738. * java/awt/geom/Point2D.java (clone): Ditto.
  1739. * java/awt/geom/RectangularShape.java (clone): Ditto.
  1740. * java/awt/image/ColorModel.java (bits, cspace, transparency, hasAlpha,
  1741. isAlphaPremultiplied): Make package-private, not private.
  1742. 2000-08-08 Tom Tromey <tromey@cygnus.com>
  1743. * gnu/gcj/convert/Input_UTF8.java (read): Fixed handling of
  1744. surrogate characters.
  1745. * gnu/gcj/convert/Output_UTF8.java (standardUTF8): Default to
  1746. true.
  1747. (write): Correct handling of surrogate characters.
  1748. 2000-08-07 Tom Tromey <tromey@cygnus.com>
  1749. * java/lang/reflect/Method.java (hashCode): Use getName().
  1750. (toString): Likewise.
  1751. * java/lang/reflect/natMethod.cc (getType): Initialize
  1752. exception_types.
  1753. * java/lang/reflect/Method.java (toString): Use Class.getName, not
  1754. Class.toString.
  1755. * java/lang/reflect/Field.java (toString): Correct formatting.
  1756. From Corey Minyard.
  1757. * java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
  1758. rewrote.
  1759. (receive): Streamlined.
  1760. 2000-08-05 Tom Tromey <tromey@cygnus.com>
  1761. * java/io/PrintWriter.java: Merged comments from Classpath.
  1762. (printlnUnsynchronized): Removed.
  1763. (println()): Print the separator.
  1764. (println): Call println(), not printlnUnsynchronized.
  1765. (out): Now protected, to match spec.
  1766. 2000-08-04 Tom Tromey <tromey@cygnus.com>
  1767. * java/io/StreamTokenizer.java (TT_NONE): Now private.
  1768. (nextToken): Handle backslashed newline. From Oskar Liljeblad.
  1769. For PR java.io/301.
  1770. 2000-08-03 Warren Levy <warrenl@cygnus.com>
  1771. * java/io/ObjectInputStream.java (readFields): Turn off
  1772. readDataFromBlock while reading via GetField.
  1773. (GetField$1.get(String, Object)): Pass Class of default value to
  1774. getField.
  1775. (getField): Allow for null default values.
  1776. * java/io/ObjectOutputStream.java: Fixed typo in comment.
  1777. (PutField$1.put): Fixed calls of checkType in most of the put
  1778. methods to pass the correct parameter.
  1779. (PutField$1.put(String, Object)): Allow for null value arg.
  1780. (PutField$1.write): Turn off writeDataAsBlocks while writing via
  1781. PutField.
  1782. * java/io/ObjectStreamClass.java (serialPersistentFields): Fixed
  1783. typo in spec'ed field name.
  1784. (getSerialPersistentFields): Changed spelling of method to match
  1785. the correct spelling of the spec'ed field name.
  1786. 2000-08-03 Tom Tromey <tromey@cygnus.com>
  1787. * Makefile.in: Rebuilt.
  1788. * Makefile.am (awt_java_source_files): Added new files.
  1789. 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
  1790. * Makefile.am: Add new AWT stubs.
  1791. * java/awt/Canvas.java: New placeholder class.
  1792. * java/awt/Checkbox.java: Ditto.
  1793. * java/awt/CheckboxMenuItem.java: Ditto.
  1794. * java/awt/Choice.java: Ditto.
  1795. * java/awt/Dialog.java: Ditto.
  1796. * java/awt/FileDialog.java: Ditto.
  1797. * java/awt/List.java: Ditto.
  1798. * java/awt/ScrollPane.java: Ditto.
  1799. * java/awt/TextField.java: Ditto.
  1800. * java/awt/datatransfer/Clipboard.java: Ditto.
  1801. * java/awt/Component.java (treeLock): Now a static String. Add comment.
  1802. * java/awt/MenuItem.java (MenuItem): Add default constructor.
  1803. * java/awt/Toolkit.java: Added all methods from J2SE 1.3 API docs.
  1804. Some commented out. Partially implemented.
  1805. * java/awt/natToolkit.cc: Removed file.
  1806. 2000-08-03 Bryce McKinlay <bryce@albatross.co.nz>
  1807. * Makefile.am: Make inner class CNI headers depend on libgcj.zip only.
  1808. Fixes "make -j" builds.
  1809. * Makefile.in: Rebuild.
  1810. 2000-08-02 Tom Tromey <tromey@cygnus.com>
  1811. * Makefile.in: Rebuilt.
  1812. * Makefile.am (libgcj_la_SOURCES): Added posix.cc.
  1813. * java/net/natPlainSocketImpl.cc: Include posix.h.
  1814. (accept): Use _Jv_select.
  1815. * java/net/natPlainDatagramSocketImpl.cc: Include posix.h.
  1816. (receive): Use _Jv_select.
  1817. * java/io/natFileDescriptorPosix.cc: Include posix.h.
  1818. (available): Use _Jv_select.
  1819. * java/lang/natSystem.cc: Include posix.h.
  1820. (currentTimeMillis): Use _Jv_gettimeofday.
  1821. * include/posix.h: New file.
  1822. * posix.cc: New file.
  1823. * scripts/encodings.pl: New file.
  1824. * Makefile.in: Rebuilt.
  1825. * Makefile.am (convert_source_files): Added IOConverter.java.
  1826. * gnu/gcj/convert/UnicodeToBytes.java (UnicodeToBytes): Extend
  1827. IOConverter.
  1828. (getDefaultDecodingClass): Canonicalize default encoding name.
  1829. (getEncoder): Likewise.
  1830. * gnu/gcj/convert/BytesToUnicode.java (BytesToUnicode): Extend
  1831. IOConverter.
  1832. (getDefaultDecodingClass): Canonicalize default encoding name.
  1833. (getDecoder): Likewise.
  1834. * gnu/gcj/convert/IOConverter.java: New file.
  1835. 2000-08-02 Bryce McKinlay <bryce@albatross.co.nz>
  1836. * interpret.cc (_Jv_InterpMethod::continue1): Type of `fun' changed
  1837. to match C declaration in ffi.h.
  1838. * Makefile.am: Add java/awt/Button.java.
  1839. * Makefile.in: Rebuilt.
  1840. 2000-07-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1841. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Type of the
  1842. cast of the second argument to `ffi_raw_call' changed to match
  1843. prototype.
  1844. 2000-07-26 Alexandre Petit-Bianco <apbianco@cygnus.com>
  1845. * jni.cc (_Jv_JNIMethod::call): Type of the cast of the second
  1846. argument to `ffi_raw_call' changed to match prototype.
  1847. 2000-07-31 Bryce McKinlay <bryce@albatross.co.nz>
  1848. * java/awt/Component.java (toString): Implemented.
  1849. * java/awt/Container.java (addImpl): Remove FIXME. Only call
  1850. dispatchEvent() to dispatch the event.
  1851. (removeImpl): Ditto.
  1852. 2000-07-30 Anthony Green <green@redhat.com>
  1853. * java/awt/Component.java: Add treeLock object.
  1854. (getTreeLock): Implement.
  1855. (isShowing): Implement.
  1856. 2000-07-30 Tom Tromey <tromey@cygnus.com>
  1857. * java/awt/BorderLayout.java (BorderLayout()): New constructor.
  1858. * java/awt/Frame.java (Frame): Pass `null' to Window constructor.
  1859. * java/awt/Window.java (addNotify): Wrote.
  1860. (addWindowListener): Wrote.
  1861. (getLocale): Wrote.
  1862. (getWarningString): Wrote.
  1863. (processEvent): Wrote.
  1864. (processWindowEvent): Wrote.
  1865. (removeWindowListener): Wrote.
  1866. (show): Call validate(), setVisible().
  1867. (toBack): Wrote.
  1868. (toFront): Wrote.
  1869. * java/awt/Toolkit.java (createWindow): Declare.
  1870. * java/awt/Frame.java (addNotify): Use getToolkit to find
  1871. toolkit.
  1872. * java/awt/Component.java (invalidate): Wrote.
  1873. (isValid): Wrote.
  1874. (getToolkit): Wrote.
  1875. * java/awt/Container.java (addContainerListener): Removed
  1876. unnecessary cast.
  1877. (removeContainerListener): Likewise.
  1878. (addImpl): Wrote.
  1879. (add(Component)): Use it.
  1880. (add(String,Component)): Likewise.
  1881. (add(Component,int)): Likewise.
  1882. (add(Component,Object)): Likewise.
  1883. (add(Component,Object,int)): Likewise.
  1884. (doLayout): Wrote.
  1885. (getAlignmentX): Wrote.
  1886. (getAlignmentY): Wrote.
  1887. (getComponentAt): Wrote.
  1888. (getMaximumSize): Wrote.
  1889. (invalidate): Wrote.
  1890. (list(PrintStream,int)): Wrote.
  1891. (list(PrintWriter,int)): Wrote.
  1892. (getMinimumSize): Wrote.
  1893. (getPreferredSize): Wrote.
  1894. (printComponents): Wrote.
  1895. (processContainerEvent): Look at containerListener, not
  1896. componentListener.
  1897. (remove): Added event processing and peer destruction.
  1898. (removeAll): Use remove.
  1899. (removeNotify): Wrote.
  1900. (validate): Wrote.
  1901. (validateTree): Wrote.
  1902. * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
  1903. * java/awt/Label.java (addNotify): Do nothing if peer exists.
  1904. * java/awt/Container.java (addNotify): Don't create Container
  1905. peer.
  1906. * java/awt/Button.java (addNotify): Do nothing if peer exists.
  1907. 2000-07-30 Tom Tromey <tromey@cygnus.com>
  1908. * java/awt/Container.java (remove(int)): Wrote.
  1909. (remove(Component)): Wrote.
  1910. (add(Component)): Wrote.
  1911. (add(Component,int)): Wrote.
  1912. (removeAll): Wrote.
  1913. (addNotify): Set our own peer.
  1914. * java/awt/Scrollbar.java (listeners): Changed type.
  1915. (Scrollbar): Don't initialize listeners.
  1916. (addNotify): Wrote.
  1917. (setValue): Call setValues.
  1918. (setMinimum): Likewise.
  1919. (setMaxPriority): Likewise.
  1920. (setVisibleAmount): Likewise.
  1921. (setValues): Wrote.
  1922. (setUnitIncrement): Forward to peer.
  1923. (setLineIncrement): Call setUnitIncrement.
  1924. (setPageIncrement): Call setBlockIncrement.
  1925. (setBlockIncrement): Forward to peer.
  1926. (addAdjustmentListener): Rewrote.
  1927. (removeAdjustmentListener): Rewrote.
  1928. (processAdjustmentEvent): Rewrote.
  1929. (paramString): Wrote.
  1930. * Makefile.in: Rebuilt.
  1931. * Makefile.am (awt_java_source_files): Added Button.java.
  1932. * java/awt/Button.java: New file.
  1933. * java/awt/Toolkit.java (createLabel): Declare.
  1934. (createButton): Likewise.
  1935. (createScrollbar): Likewise.
  1936. (createContainer): Likewise.
  1937. * java/awt/Label.java (addNotify): Wrote.
  1938. (setAlignment): Call setAlignment in the peer.
  1939. (setText): Call setText in the peer.
  1940. 2000-07-28 Warren Levy <warrenl@cygnus.com>
  1941. * java/io/ObjectOutputStream.java (writeObject): Per spec, call
  1942. NotSerializableException with just the class name.
  1943. 2000-07-26 Andrew Haley <aph@cygnus.com>
  1944. * interpret.cc (continue1): Insert missing break into switch.
  1945. 2000-07-28 Warren Levy <warrenl@cygnus.com>
  1946. * java/io/ObjectStreamException.java: Made constructors protected.
  1947. 2000-07-27 Tom Tromey <tromey@cygnus.com>
  1948. * java/io/OutputStreamWriter.java (close): Only flush if not
  1949. closed.
  1950. 2000-07-27 Warren Levy <warrenl@cygnus.com>
  1951. * mauve-libgcj: Activated serialization tests.
  1952. * gcj/field.h (getModifiers): Mask off unknown flags.
  1953. * gnu/java/security/provider/SHA.java (munch): Reset buffer to 0 so
  1954. spurious bits don't cause discrepancies.
  1955. * java/io/ObjectOutputStream.java: Fixed typo in comment.
  1956. * java/io/ObjectStreamClass.java: Fixed typos in comments.
  1957. (lookup): Applied patch from Brian Jones <cbj@gnu.org> to optimize.
  1958. (hasClassInitializer): Call getDeclaredMethod instead of getMethod.
  1959. * java/lang/Throwable.java (serialVersionUID): New field.
  1960. * java/lang/reflect/Modifier.java (ALL_FLAGS): Preserve STRICT if used.
  1961. * java/lang/reflect/natConstructor.cc (getModifiers): Mask off
  1962. unknown flags.
  1963. * java/lang/reflect/natMethod.cc: Ditto.
  1964. * java/security/Key.java (serialVersionUID): Removed field for now.
  1965. * java/security/interfaces/DSAPrivateKey.java (serialVersionUID): Ditto.
  1966. * java/security/interfaces/DSAPublicKey.java (serialVersionUID): Ditto.
  1967. 2000-07-22 Tom Tromey <tromey@cygnus.com>
  1968. * java/awt/geom/RectangularShape.java (getPathIterator):
  1969. Wrote.
  1970. 2000-07-23 Rolf W. Rasmussen <rolfwr@ii.uib.no>
  1971. * libjava/java/awt/image/ColorModel.java: New file, replaces the
  1972. stub libjava/java/awt/ColorModel.java which was located in the
  1973. wrong package.
  1974. * libjava/java/awt/image/ComponentColorModel.java: New file.
  1975. * libjava/java/awt/image/ComponentSampleModel.java: New file.
  1976. * libjava/java/awt/image/DataBuffer.java: New file.
  1977. * libjava/java/awt/image/DataBufferByte.java: New file.
  1978. * libjava/java/awt/image/DataBufferInt.java: New file.
  1979. * libjava/java/awt/image/DataBufferUShort.java: New file.
  1980. * libjava/java/awt/image/DirectColorModel.java: New file.
  1981. * libjava/java/awt/image/PackedColorModel.java: New file.
  1982. * libjava/java/awt/image/Raster.java: New file.
  1983. * libjava/java/awt/image/SampleModel.java: New file.
  1984. * libjava/java/awt/image/SinglePixelPackedSampleModel.java: New
  1985. file.
  1986. * libjava/java/awt/image/IndexColorModel.java: New file.
  1987. * libjava/java/awt/image/ImageConsumer.java: Removed import of
  1988. java.awt.ColorModel stub.
  1989. * gnu/gcj/util/BitMaskExtent.java: New file, utility class.
  1990. * gnu/gcj/util/Buffers.java: New file, utility class.
  1991. * libjava/Makefile.am: Updated to include new files.
  1992. * libjava/Makefile.in: Rebuilt.
  1993. 2000-07-23 Oskar Liljeblad <osk@hem.passagen.se>
  1994. * java/io/StreamTokenizer.java: Merged with classpath.
  1995. 2000-07-20 Tom Tromey <tromey@cygnus.com>
  1996. * Makefile.in: Rebuilt.
  1997. * Makefile.am (awt_java_source_files): Updated for new files.
  1998. * java/awt/Adjustable.java (HORIZONTAL, VERTICAL): Set values.
  1999. * java/awt/Label.java: New file.
  2000. * java/awt/Rectangle.java (Rectangle): Extend Rectangle2D.
  2001. (createIntersection, createUnion, getBounds2D): New methods.
  2002. * java/awt/Scrollbar.java: New file.
  2003. * java/awt/Shape.java: Updated to 1.2.
  2004. * java/awt/geom/AffineTransform.java: New file.
  2005. * java/awt/geom/Ellipse2D.java: New file.
  2006. * java/awt/geom/NoninvertibleTransformException.java: New file.
  2007. * java/awt/geom/PathIterator.java: New file.
  2008. * java/awt/geom/Rectangle2D.java: New file.
  2009. * java/awt/geom/RectangularShape.java: New file.
  2010. * java/awt/geom/Point2D.java (Double, Float): New inner classes.
  2011. * java/awt/geom/IllegalPathStateException.java: New file.
  2012. * scripts/showval.java: New file.
  2013. * scripts/classes.pl (scan): Print inner classes properly.
  2014. * gcj/javaprims.h: Updated class list.
  2015. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Only
  2016. initialize String fields for interpreted classes. Fixes bug
  2017. reported by Hans Boehm.
  2018. * java/io/File.java (getParentFile): New method, from Classpath
  2019. via Oskar Liljeblad.
  2020. * java/util/Vector.java (remove(Object)): Implemented.
  2021. 2000-07-19 Jeff Sturm <jeff.sturm@appnet.com>
  2022. * java/lang/natThrowable.cc (fillInStackTrace): Check for
  2023. zero return from backtrace().
  2024. 2000-07-15 Bryce McKinlay <bryce@albatross.co.nz>
  2025. * java/awt/EventQueue.java (invokeAndWait): Call postEvent() within
  2026. synchronized block.
  2027. * java/awt/event/InvocationEvent (dispatch): Synchronize on notifier
  2028. before calling notifyAll().
  2029. 2000-07-13 Bryce McKinlay <bryce@albatross.co.nz>
  2030. Add missing files from last check-in:
  2031. * java/awt/image/ImageConsumer.java: New file.
  2032. * java/awt/image/ImageProducer.java: New file.
  2033. * java/awt/image/ImageObserver.java: New file.
  2034. 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
  2035. Merged implementation of java.applet from classpath:
  2036. * java/applet/Applet.java: New file.
  2037. * java/applet/AppletContext.java: New file.
  2038. * java/applet/AppletStub.java: New file.
  2039. * java/applet/AudioClip.java: New file.
  2040. * Makefile.am: Added new java.applet classes.
  2041. * Makefile.in: Rebuilt.
  2042. 2000-07-12 Bryce McKinlay <bryce@albatross.co.nz>
  2043. AWT Stuff:
  2044. * java/util/ResourceBundle.java (getLocale): stub.
  2045. * Makefile.am: Added new AWT classes.
  2046. * Makefile.in: Rebuilt.
  2047. * java/awt/AWTEvent.java: Add EVENT_MASK constants, isConsumed,
  2048. constructors. Fix toString() and paramString().
  2049. * java/awt/AWTEventMulticaster.java: New class. Implemented.
  2050. * java/awt/CheckboxGroup.java: New class.
  2051. * java/awt/ColorModel.java: New class.
  2052. * java/awt/Component.java: Added stubs for most methods. Implemented
  2053. event dispatch.
  2054. * java/awt/Container.java: ditto.
  2055. * java/awt/ComponentOrientation.java: New class. Partly implemented.
  2056. * java/awt/Cursor.java: ditto.
  2057. * java/awt/Event.java: Fix paramString().
  2058. * java/awt/EventQueue.java: New class. Implemented.
  2059. * java/awt/Font.java: Added additional stub methods. Implemented
  2060. toString().
  2061. * java/awt/FontMetrics.java: New class. Stubbed.
  2062. * java/awt/GraphicsConfiguration.java: New class. Complete, except for
  2063. Java2D parts.
  2064. * java/awt/Insets.java: New class. Implemented.
  2065. * java/awt/Menu.java: Add new methods. Partially implemented.
  2066. * java/awt/MenuItem.java: Add new methods and fields. Partially
  2067. implemented.
  2068. * java/awt/MenuShortcut.java: New class. Implemented.
  2069. * java/awt/Panel.java: New class. Placeholder.
  2070. * java/awt/PopupMenu.java: New class. Stubbed.
  2071. * java/awt/Rectangle.java: New class. Implemented.
  2072. * java/awt/Toolkit.java: Added getSystemEventQueue() stub.
  2073. * java/awt/event/ActionEvent.java: Implement paramString().
  2074. * java/awt/event/AdjustmentEvent.java: Implement paramString().
  2075. * java/awt/event/ComponentEvent.java: Implement paramString().
  2076. * java/awt/event/ContainerEvent.java: Implement paramString().
  2077. * java/awt/event/FocusEvent.java: Implement paramString().
  2078. * java/awt/event/HierarchyBoundsAdapter.java: New class.
  2079. * java/awt/event/HierarchyBoundsListener.java: New class.
  2080. * java/awt/event/HierarchyEvent.java: New class.
  2081. * java/awt/event/HierarchyListener.java: New class.
  2082. * java/awt/event/InputMethodEvent.java: Implement paramString().
  2083. * java/awt/event/InvocationEvent.java: Implement paramString(). Throw
  2084. exception if !catchExceptions.
  2085. * java/awt/event/ItemEvent.java: Implement paramString().
  2086. * java/awt/event/KeyEvent.java: Implement paramString().
  2087. * java/awt/event/MouseEvent.java: Implement paramString().
  2088. * java/awt/event/PaintEvent.java: Implement paramString().
  2089. * java/awt/event/TextEvent.java: Implement paramString().
  2090. * java/awt/event/WindowEvent.java: Implement paramString().
  2091. AWT Peer interfaces:
  2092. * java/awt/peer/ButtonPeer.java: New file.
  2093. * java/awt/peer/ListPeer.java: New file.
  2094. * java/awt/peer/CanvasPeer.java: New file.
  2095. * java/awt/peer/MenuBarPeer.java: New file.
  2096. * java/awt/peer/CheckboxMenuItemPeer.java: New file.
  2097. * java/awt/peer/MenuComponentPeer.java: New file.
  2098. * java/awt/peer/CheckboxPeer.java: New file.
  2099. * java/awt/peer/MenuItemPeer.java: New file.
  2100. * java/awt/peer/ChoicePeer.java: New file.
  2101. * java/awt/peer/MenuPeer.java: New file.
  2102. * java/awt/peer/ComponentPeer.java: Implemented.
  2103. * java/awt/peer/PanelPeer.java: New file.
  2104. * java/awt/peer/ContainerPeer.java: Implemented.
  2105. * java/awt/peer/PopupMenuPeer.java: New file.
  2106. * java/awt/peer/DialogPeer.java: New file.
  2107. * java/awt/peer/ScrollPanePeer.java: New file.
  2108. * java/awt/peer/FileDialogPeer.java: New file.
  2109. * java/awt/peer/ScrollbarPeer.java: New file.
  2110. * java/awt/peer/FontPeer.java: New file.
  2111. * java/awt/peer/TextAreaPeer.java: New file.
  2112. * java/awt/peer/FramePeer.java: Implemented.
  2113. * java/awt/peer/TextComponentPeer.java: New file.
  2114. * java/awt/peer/LabelPeer.java: New file.
  2115. * java/awt/peer/TextFieldPeer.java: New file.
  2116. * java/awt/peer/LightweightPeer.java: New file.
  2117. * java/awt/peer/WindowPeer.java: Implemented.
  2118. 2000-07-06 Tom Tromey <tromey@cygnus.com>
  2119. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
  2120. Initialize static final String fields.
  2121. 2000-07-03 Tom Tromey <tromey@cygnus.com>
  2122. * java/io/PrintWriter.java (print): Call write(String), not
  2123. print(String). See PR libgcj/277.
  2124. (print(String)): Use write, not out.write.
  2125. 2000-06-30 Tom Tromey <tromey@cygnus.com>
  2126. * include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
  2127. 2000-06-27 Andrew Haley <aph@cygnus.com>
  2128. * java/io/File.java (createTempFile): Close the FileDescriptor
  2129. used to create a temp file. Fixes some of PR 203.
  2130. * java/io/natFileDescriptorPosix.cc (open): Call garbage
  2131. collection if we run out of file handles.
  2132. 2000-06-28 Warren Levy <warrenl@cygnus.com>
  2133. * gnu/java/security/provider/Gnu.java: New file.
  2134. * gnu/java/security/provider/SHA.java: New file.
  2135. * gnu/java/security/provider/SHA1PRNG.java: New file.
  2136. * Makefile.am: Added the above files.
  2137. * Makefile.in: Rebuilt.
  2138. * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS.
  2139. 2000-06-28 Bryce McKinlay <bryce@albatross.co.nz>
  2140. * java/lang/ThreadGroup.java: Added synchronized flag to many methods.
  2141. (destroyed_flag): Removed.
  2142. (isDestroyed, removeGroup, removeThread): Test for parent == null.
  2143. (activeCount): Added spec note.
  2144. 2000-06-27 Warren Levy <warrenl@cygnus.com>
  2145. * java/security/Principal.java: New file.
  2146. * Makefile.am: Added Principal.java.
  2147. * Makefile.in: Rebuilt.
  2148. 2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no>
  2149. * java/awt/event/MouseEvent.java: Fixed coordinate space
  2150. confusion.
  2151. 2000-06-27 Tom Tromey <tromey@cygnus.com>
  2152. * java/io/PushbackInputStream.java (read): If there are characters
  2153. in the buffer, don't also call super.read().
  2154. * java/io/PushbackReader.java (read): If there are characters in
  2155. the buffer, don't also call super.read().
  2156. * java/lang/Double.java (valueOf): Call parseDouble().
  2157. 2000-06-26 Warren Levy <warrenl@cygnus.com>
  2158. * java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue.
  2159. (newVal): Renamed to newValue.
  2160. * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt.
  2161. * java/beans/beancontext/BeanContextServiceRevokedEvent.java
  2162. (revokeNow): Renamed to invalidateRefs.
  2163. * java/io/OptionalDataException.java: Updated FIXME.
  2164. (eof): New placeholder field.
  2165. (length); Ditto.
  2166. * java/io/WriteAbortedException.java (message): Made transient.
  2167. * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2.
  2168. * java/lang/Throwable.java (stackTrace): Made transient.
  2169. * java/net/InetAddress.java: Made Serializable.
  2170. * java/security/KeyPair.java: Made Serializable.
  2171. * java/security/Provider.java: Replaced with Classpath version that
  2172. implements serialization and proper methods.
  2173. * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats.
  2174. (limits): Renamed to choiceLimits.
  2175. 2000-06-24 Tom Tromey <tromey@cygnus.com>
  2176. * java/lang/natDouble.cc (parseDouble): Renamed from
  2177. doubleValueOf.
  2178. * java/lang/Double.java (parseDouble): Renamed from
  2179. doubleValueOf. Now public.
  2180. 2000-06-23 Andrew Haley <aph@cygnus.com>
  2181. * java/lang/ieeefp.h: Handle ia64, fr30, mcore.
  2182. * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace.
  2183. 2000-06-23 Tom Tromey <tromey@cygnus.com>
  2184. * java/lang/reflect/natMethod.cc: Include <alloca.h>.
  2185. * java/lang/natDouble.cc: Always include <alloca.h>.
  2186. Fix for PR libgcj/267.
  2187. 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz>
  2188. * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to
  2189. comply with classpath VM spec.
  2190. (add(Group)): Rename to addGroup().
  2191. * java/lang/Thread.java (Thread): Use addThread().
  2192. * java/lang/natThread.cc (finish_): Use removeThread().
  2193. 2000-06-20 Bryce McKinlay <bryce@albatross.co.nz>
  2194. * java/lang/ThreadGroup.java: Merged with classpath.
  2195. * prims.cc (_Jv_RunMain): Don't use `main_group'.
  2196. * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor
  2197. argument.
  2198. * java/lang/Thread.java (Thread): Bootstrap initial thread from
  2199. ThreadGroup.root if Thread.currentThread is null. Honour the
  2200. ThreadGroup's max priority setting.
  2201. 2000-06-18 Tom Tromey <tromey@cygnus.com>
  2202. * java/lang/natClass.cc (forName): Removed dead code. Initialize
  2203. returned class. For PR gcj/260.
  2204. 2000-06-16 Tom Tromey <tromey@cygnus.com>
  2205. Fix for PR libgcj/261:
  2206. * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception'
  2207. argument.
  2208. * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception'
  2209. argument. (This is a patch from long ago that somehow went
  2210. missing.)
  2211. 2000-06-15 Tom Tromey <tromey@cygnus.com>
  2212. * gnu/gcj/convert/natIconv.cc (iconv_adapter): New function.
  2213. (read): Use it.
  2214. (write): Likewise.
  2215. 2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
  2216. Fix for PR java.lang/258:
  2217. * prims.cc (_Jv_PrimClass): Set state of primitive class to
  2218. JV_STATE_DONE, to prevent accidental initialization.
  2219. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
  2220. _Jv_InterfaceAssignableFrom if target is an interface and source is an
  2221. interface or an abstract class. Remove redundant initializeClass calls.
  2222. Remove duplicate if_idt test.
  2223. (_Jv_InterfaceAssignableFrom): New function.
  2224. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
  2225. 2000-05-31 Tom Tromey <tromey@cygnus.com>
  2226. * prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.
  2227. (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass.
  2228. * include/jvm.h (struct _Jv_ArrayVTable): Declare.
  2229. (NUM_OBJECT_METHODS): New define.
  2230. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
  2231. `array_vtable' parameter. Added assertion.
  2232. * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable'
  2233. parameter.
  2234. 2000-05-31 Bryce McKinlay <bryce@albatross.co.nz>
  2235. * gcj/cni.h: Include <string.h>.
  2236. * defineclass.cc: Include <alloca.h>.
  2237. * interpret.cc: Ditto.
  2238. * gij.cc: Include <stdlib.h>.
  2239. 2000-05-30 Tom Tromey <tromey@cygnus.com>
  2240. * include/name-finder.h: Include <sys/wait.h>.
  2241. (_Jv_name_finder::pid): Now of type `pid_t'.
  2242. (_Jv_name_finder::~_Jv_name_finder): Call waitpid().
  2243. * java/lang/Throwable.java (CPlusPlusDemangler.close): Call
  2244. `proc.waitFor()'.
  2245. 2000-05-24 Warren Levy <warrenl@cygnus.com>
  2246. * java/io/ObjectOutputStream.java (writeObject): Use component type
  2247. when writing arrays.
  2248. Fixed typo.
  2249. 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
  2250. Fix for PR libgcj/226:
  2251. * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
  2252. since this is an installed header.
  2253. Fix for PR libgcj/228:
  2254. * java/util/zip/ZipFile (getInputStream): Create inflater with
  2255. nowrapper option.
  2256. * java/util/zip/natInflater.cc (inflate): Throw zlib's error message
  2257. with DataFormatException.
  2258. 2000-05-20 Tom Tromey <tromey@cygnus.com>
  2259. * Makefile.in: Rebuilt.
  2260. * Makefile.am (hack1): Removed.
  2261. (awto_files): Likewise.
  2262. (libgcjawt_la_SOURCES): Likewise.
  2263. (EXTRA_libgcjawt_la_SOURCES): Likewise.
  2264. (libgcjawt_la_DEPENDENCIES): Likewise.
  2265. (libgcjawt_la_LIBADD): Likewise.
  2266. (libgcjawt_la_LDFLAGS): Likewise.
  2267. (libgcjawt_la_LINK): Likewise.
  2268. ($(awt_java_source_files:.java=.class)): Likewise.
  2269. (libgcj.zip): Don't depend on AWT files.
  2270. (MOSTLYCLEANFILES): Don't include AWT files.
  2271. ($(awto_files)): Removed.
  2272. (nat_headers): Removed AWT files.
  2273. (cond_awt_java_source_files): Removed.
  2274. (ordinary_java_source_files): Added awt_java_source_files.
  2275. * libgcj.spec.in (*lib): Removed -lgcjawt.
  2276. * configure: Rebuilt.
  2277. * configure.in: Removed --enable-java-awt option.
  2278. 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
  2279. * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs.
  2280. (ZipEntry): Copy the `name' field.
  2281. (clone): Implement JDK1.2 method.
  2282. (setCompressedSize): ditto.
  2283. (hashCode): ditto.
  2284. 2000-05-19 Tom Tromey <tromey@cygnus.com>
  2285. * java/io/BufferedWriter.java: Merged with Classpath.
  2286. * java/io/BufferedOutputStream.java: Merged with Classpath.
  2287. 2000-05-16 Andrew Haley <aph@cygnus.com>
  2288. * sysdep/ia64.c (ia64_backtrace_helper): Pass NULL pointer to
  2289. build_ia64_frame_state.
  2290. * sysdep/ia64-frame.h (build_ia64_frame_state): Match with
  2291. defintion in gcc.
  2292. 2000-05-15 Warren Levy <warrenl@cygnus.com>
  2293. * gnu/gcj/beans/BeanInfoEmbryo.java: Removed.
  2294. * gnu/gcj/beans/EmptyBeanInfo.java: Removed.
  2295. * gnu/gcj/beans/ExplicitBeanInfo.java: Removed.
  2296. * gnu/gcj/beans/IntrospectionIncubator.java: Removed.
  2297. * gnu/gcj/beans/editors/ColorEditor.java: Removed.
  2298. * gnu/gcj/beans/editors/FontEditor.java: Removed.
  2299. * gnu/gcj/beans/editors/NativeBooleanEditor.java: Removed.
  2300. * gnu/gcj/beans/editors/NativeByteEditor.java: Removed.
  2301. * gnu/gcj/beans/editors/NativeDoubleEditor.java: Removed.
  2302. * gnu/gcj/beans/editors/NativeFloatEditor.java: Removed.
  2303. * gnu/gcj/beans/editors/NativeIntEditor.java: Removed.
  2304. * gnu/gcj/beans/editors/NativeLongEditor.java: Removed.
  2305. * gnu/gcj/beans/editors/NativeShortEditor.java: Removed.
  2306. * gnu/gcj/beans/editors/StringEditor.java: Removed.
  2307. * gnu/gcj/beans/info/ComponentBeanInfo.java: Removed.
  2308. * gnu/gcj/io/ClassLoaderObjectInputStream.java: Removed.
  2309. * gnu/gcj/io/NullOutputStream.java: Removed.
  2310. * gnu/gcj/io/ObjectIdentityWrapper.java: Removed.
  2311. * gnu/gcj/lang/ArrayHelper.java: Removed.
  2312. * gnu/gcj/lang/ClassHelper.java: Removed.
  2313. * gnu/gcj/lang/reflect/TypeSignature.java: Removed.
  2314. * gnu/java/beans/BeanInfoEmbryo.java: New file.
  2315. * gnu/java/beans/EmptyBeanInfo.java: New file.
  2316. * gnu/java/beans/ExplicitBeanInfo.java: New file.
  2317. * gnu/java/beans/IntrospectionIncubator.java: New file.
  2318. * gnu/java/beans/editors/ColorEditor.java: New file.
  2319. * gnu/java/beans/editors/FontEditor.java: New file.
  2320. * gnu/java/beans/editors/NativeBooleanEditor.java: New file.
  2321. * gnu/java/beans/editors/NativeByteEditor.java: New file.
  2322. * gnu/java/beans/editors/NativeDoubleEditor.java: New file.
  2323. * gnu/java/beans/editors/NativeFloatEditor.java: New file.
  2324. * gnu/java/beans/editors/NativeIntEditor.java: New file.
  2325. * gnu/java/beans/editors/NativeLongEditor.java: New file.
  2326. * gnu/java/beans/editors/NativeShortEditor.java: New file.
  2327. * gnu/java/beans/editors/StringEditor.java: New file.
  2328. * gnu/java/beans/info/ComponentBeanInfo.java: New file.
  2329. * gnu/java/io/ClassLoaderObjectInputStream.java: New file.
  2330. * gnu/java/io/NullOutputStream.java: New file.
  2331. * gnu/java/io/ObjectIdentityWrapper.java: New file.
  2332. * gnu/java/lang/ArrayHelper.java: New file.
  2333. * gnu/java/lang/ClassHelper.java: New file.
  2334. * gnu/java/lang/reflect/TypeSignature.java: New file.
  2335. * Makefile.am: Updated for moving Classpath files from gnu/gcj
  2336. namespace back to the original Classpath gnu/java namespace.
  2337. * Makefile.in: Rebuilt.
  2338. * java/beans/Beans.java: Namespace change.
  2339. * java/beans/EventSetDescriptor.java: Namespace change.
  2340. * java/beans/Introspector.java: Namespace change.
  2341. * java/beans/PropertyEditorManager.java: Namespace change.
  2342. * java/io/ObjectInputStream.java: Namespace change.
  2343. * java/io/ObjectOutputStream.java: Namespace change.
  2344. * java/io/ObjectStreamClass.java: Namespace change.
  2345. * java/io/ObjectStreamField.java: Namespace change.
  2346. 2000-04-21 Warren Levy <warrenl@cygnus.com>
  2347. * java/io/ObjectInputStream.java: Reverted workarounds of 2000-04-13
  2348. now that compiler patch is available.
  2349. Removed unneeded System.loadLibrary.
  2350. * java/io/ObjectOutputStream.java: Removed unneeded System.loadLibrary.
  2351. * java/io/ObjectStreamClass.java: Removed unneeded System.loadLibrary.
  2352. 2000-04-19 Andrew Haley <aph@cygnus.com>
  2353. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Make sure source
  2354. and target classes have been initialized.
  2355. 2000-04-19 Andrew Haley <aph@cygnus.com>
  2356. * java/lang/String.java: implement Serializable, Comparable.
  2357. (compareTo (Object)): New method.
  2358. 2000-04-19 Warren Levy <warrenl@cygnus.com>
  2359. * java/io/ObjectStreamClass.java (getDefinedSUID): Use getDeclaredField
  2360. instead of getField to retrieve non-public field.
  2361. (getSerialPersistantFields): Ditto.
  2362. 2000-04-18 Warren Levy <warrenl@cygnus.com>
  2363. * mauve-libgcj: Turned off object serialization tests temporarily
  2364. due to compiler error.
  2365. 2000-04-17 Warren Levy <warrenl@cygnus.com>
  2366. * java/io/ObjectInputStream.java (DEBUG): Disabled unused method
  2367. to avoid build problem.
  2368. (DEBUGln): Ditto.
  2369. * mauve-libgcj: Turned on object serialization tests.
  2370. 2000-04-17 Tom Tromey <tromey@cygnus.com>
  2371. * libgcj.spec.in (*lib): Added -lgcjawt.
  2372. 2000-04-17 Andrew Haley <aph@cygnus.com>
  2373. * Makefile.am: Add new files:
  2374. gnu/gcj/io/SimpleSHSStream.java, gnu/gcj/io/natSimpleSHSStream.cc,
  2375. gnu/gcj/io/shs.cc.
  2376. * Makefile.in: Rebuilt.
  2377. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Check for an
  2378. interface that has no implementations.
  2379. Check for an attempt to assign an abstract class to an interface.
  2380. * java/io/ObjectStreamClass.java (setUID): Use a SimpleSHSStream
  2381. if we fail to find MessageDigest.getInstance ("SHA").
  2382. * gnu/gcj/io/SimpleSHSStream.java: New file.
  2383. * gnu/gcj/io/natSimpleSHSStream.java: New file.
  2384. * gnu/gcj/io/shs.cc: New file.
  2385. * gnu/gcj/io/shs.h: new file.
  2386. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Make arrays
  2387. serializable.
  2388. * gnu/gcj/lang/reflect/TypeSignature.java: Don't remove
  2389. punctuation from the classname of an array element.
  2390. * gcj/javaprims.h: Add SimpleDigestStream.
  2391. 2000-04-17 Andrew Haley <aph@cygnus.com>
  2392. * java/lang/natClass.cc (getPrivateField): Make recursive calls
  2393. to getPrivateField for superclasses.
  2394. 2000-04-14 Andrew Haley <aph@cygnus.com>
  2395. * Makefile.am: Add new files:
  2396. java/io/ObjectOutputStream$PutField.h,
  2397. java/io/ObjectInputStream$GetField.h,java/io/natObjectInputStream.cc,
  2398. java/io/natObjectOutputStream.cc
  2399. * Makefile.in: Rebuilt.
  2400. * gcj/Makefile.in: Rebuilt.
  2401. * include/Makefile.in: Rebuilt.
  2402. * java/lang/Class.h (getPrivateField): New method.
  2403. (getPrivateMethod): Ditto.
  2404. Make java::io::ObjectOutputStream, java::io::ObjectInputStream,
  2405. and java::io::ObjectStreamClass our friends.
  2406. * java/lang/natClass.cc (getPrivateField): New method.
  2407. (getPrivateMethod): Ditto.
  2408. (_Jv_IsAssignableFrom): Return false for Interface with no IDT.
  2409. * gcj/javaprims.h: Add serialization classes.
  2410. * java/io/ObjectInputStream.java (setBooleanField): Rewrite in Java.
  2411. (setByteField): Ditto.
  2412. (setCharField): Ditto.
  2413. (setDoubleField): Ditto.
  2414. (setFloatField): Ditto.
  2415. (setIntField): Ditto.
  2416. (setLongField): Ditto.
  2417. (setShortField): Ditto.
  2418. (setObjectField): Ditto.
  2419. * java/io/ObjectOutputStream.java: (getBooleanField): Rewrite in
  2420. Java.
  2421. (getByteField): Ditto.
  2422. (getCharField): Ditto.
  2423. (getDoubleField): Ditto.
  2424. (getFloatField): Ditto.
  2425. (getIntField): Ditto.
  2426. (getLongField): Ditto.
  2427. (getShortField): Ditto.
  2428. (getObjectField): Ditto.
  2429. * java/io/ObjectStreamClass.java (hasClassInitializer): Rewrite in
  2430. Java.
  2431. (getSerialPersistantFields): Ditto.
  2432. (getDefinedSUID): Ditto.
  2433. * java/io/natObjectOutputStream.cc: New file.
  2434. * java/io/natObjectInputStream.cc: New file.
  2435. 2000-04-13 Warren Levy <warrenl@cygnus.com>
  2436. * java/io/ObjectInputStream.java: Temporary workarounds for compiler
  2437. problems. Revert to previous version to reproduce and when fixed.
  2438. 2000-04-13 Warren Levy <warrenl@cygnus.com>
  2439. * gnu/gcj/io/ClassLoaderObjectInputStream.java: New file.
  2440. * gnu/gcj/io/NullOutputStream.java: New file.
  2441. * gnu/gcj/lang/reflect/TypeSignature.java: New file.
  2442. * java/io/BlockDataException.java: New file.
  2443. * java/io/Externalizable.java: New file.
  2444. * java/io/InvalidClassException.java: New file.
  2445. * java/io/InvalidObjectException.java: New file.
  2446. * java/io/NotActiveException.java: New file.
  2447. * java/io/NotSerializableException.java: New file.
  2448. * java/io/ObjectInput.java: New file.
  2449. * java/io/ObjectInputStream.java: New file.
  2450. * java/io/ObjectInputValidation.java: New file.
  2451. * java/io/ObjectOutput.java: New file.
  2452. * java/io/ObjectOutputStream.java: New file.
  2453. * java/io/ObjectStreamClass.java: New file.
  2454. * java/io/ObjectStreamConstants.java: New file.
  2455. * java/io/ObjectStreamField.java: New file.
  2456. * java/io/Replaceable.java: New file.
  2457. * java/io/Resolvable.java: New file.
  2458. * java/io/SerializablePermission.java: New file.
  2459. * java/io/WriteAbortedException.java: New file.
  2460. * java/security/BasicPermission.java: New file.
  2461. * java/security/DigestOutputStream.java: New file.
  2462. * java/security/Guard.java: New file.
  2463. * java/security/Permission.java: New file.
  2464. * java/security/PermissionCollection.java: New file.
  2465. * Makefile.am: Added above files.
  2466. * Makefile.in: Rebuilt.
  2467. * java/beans/Beans.java (instantiate): Activated serialization code.
  2468. * java/lang/SecurityManager.java (checkPermission): New method.
  2469. 2000-04-12 Warren Levy <warrenl@cygnus.com>
  2470. * gnu/gcj/beans/BeanInfoEmbryo.java: New file.
  2471. * gnu/gcj/beans/EmptyBeanInfo.java: New file.
  2472. * gnu/gcj/beans/ExplicitBeanInfo.java: New file.
  2473. * gnu/gcj/beans/IntrospectionIncubator.java: New file.
  2474. * gnu/gcj/beans/editors/ColorEditor.java: New file.
  2475. * gnu/gcj/beans/editors/FontEditor.java: New file.
  2476. * gnu/gcj/beans/editors/NativeBooleanEditor.java: New file.
  2477. * gnu/gcj/beans/editors/NativeByteEditor.java: New file.
  2478. * gnu/gcj/beans/editors/NativeDoubleEditor.java: New file.
  2479. * gnu/gcj/beans/editors/NativeFloatEditor.java: New file.
  2480. * gnu/gcj/beans/editors/NativeIntEditor.java: New file.
  2481. * gnu/gcj/beans/editors/NativeLongEditor.java: New file.
  2482. * gnu/gcj/beans/editors/NativeShortEditor.java: New file.
  2483. * gnu/gcj/beans/editors/StringEditor.java: New file.
  2484. * gnu/gcj/beans/info/ComponentBeanInfo.java: New file.
  2485. * gnu/gcj/io/ObjectIdentityWrapper.java: New file.
  2486. * gnu/gcj/lang/ArrayHelper.java: New file.
  2487. * gnu/gcj/lang/ClassHelper.java: New file.
  2488. * java/beans/BeanDescriptor.java: New file.
  2489. * java/beans/BeanInfo.java: New file.
  2490. * java/beans/Beans.java: New file.
  2491. * java/beans/Customizer.java: New file.
  2492. * java/beans/DesignMode.java: New file.
  2493. * java/beans/EventSetDescriptor.java: New file.
  2494. * java/beans/FeatureDescriptor.java: New file.
  2495. * java/beans/IndexedPropertyDescriptor.java: New file.
  2496. * java/beans/IntrospectionException.java: New file.
  2497. * java/beans/Introspector.java: New file.
  2498. * java/beans/MethodDescriptor.java: New file.
  2499. * java/beans/ParameterDescriptor.java: New file.
  2500. * java/beans/PropertyChangeEvent.java: New file.
  2501. * java/beans/PropertyChangeListener.java: New file.
  2502. * java/beans/PropertyChangeSupport.java: New file.
  2503. * java/beans/PropertyDescriptor.java: New file.
  2504. * java/beans/PropertyEditor.java: New file.
  2505. * java/beans/PropertyEditorManager.java: New file.
  2506. * java/beans/PropertyEditorSupport.java: New file.
  2507. * java/beans/PropertyVetoException.java: New file.
  2508. * java/beans/SimpleBeanInfo.java: New file.
  2509. * java/beans/VetoableChangeListener.java: New file.
  2510. * java/beans/VetoableChangeSupport.java: New file.
  2511. * java/beans/Visibility.java: New file.
  2512. * java/beans/beancontext/BeanContext.java: New file.
  2513. * java/beans/beancontext/BeanContextChild.java: New file.
  2514. * java/beans/beancontext/BeanContextChildComponentProxy.java: New file.
  2515. * java/beans/beancontext/BeanContextChildSupport.java: New file.
  2516. * java/beans/beancontext/BeanContextContainerProxy.java: New file.
  2517. * java/beans/beancontext/BeanContextEvent.java: New file.
  2518. * java/beans/beancontext/BeanContextMembershipEvent.java: New file.
  2519. * java/beans/beancontext/BeanContextMembershipListener.java: New file.
  2520. * java/beans/beancontext/BeanContextProxy.java: New file.
  2521. * java/beans/beancontext/BeanContextServiceAvailableEvent.java:
  2522. New file.
  2523. * java/beans/beancontext/BeanContextServiceProvider.java: New file.
  2524. * java/beans/beancontext/BeanContextServiceProviderBeanInfo.java:
  2525. New file.
  2526. * java/beans/beancontext/BeanContextServiceRevokedEvent.java: New file.
  2527. * java/beans/beancontext/BeanContextServiceRevokedListener.java:
  2528. New file.
  2529. * java/beans/beancontext/BeanContextServices.java: New file.
  2530. * java/beans/beancontext/BeanContextServicesListener.java: New file.
  2531. * java/util/AbstractCollection.java: New file.
  2532. * java/util/AbstractList.java: New file.
  2533. * java/util/Arrays.java: New file.
  2534. * Makefile.am: Added above files.
  2535. * Makefile.in: Rebuilt.
  2536. 2000-04-11 Warren Levy <warrenl@cygnus.com>
  2537. * java/awt/AWTError.java: New file.
  2538. * java/awt/AWTEvent.java: New file.
  2539. * java/awt/AWTException.java: New file.
  2540. * java/awt/ActiveEvent.java: New file.
  2541. * java/awt/Adjustable.java: New file.
  2542. * java/awt/BorderLayout.java: New file.
  2543. * java/awt/Color.java: New file.
  2544. * java/awt/Component.java: New file.
  2545. * java/awt/Container.java: New file.
  2546. * java/awt/Dimension.java: New file.
  2547. * java/awt/Event.java: New file.
  2548. * java/awt/Font.java: New file.
  2549. * java/awt/Frame.java: New file.
  2550. * java/awt/Graphics.java: New file.
  2551. * java/awt/IllegalComponentStateException.java: New file.
  2552. * java/awt/Image.java: New file.
  2553. * java/awt/ItemSelectable.java: New file.
  2554. * java/awt/LayoutManager.java: New file.
  2555. * java/awt/LayoutManager2.java: New file.
  2556. * java/awt/Menu.java: New file.
  2557. * java/awt/MenuBar.java: New file.
  2558. * java/awt/MenuComponent.java: New file.
  2559. * java/awt/MenuContainer.java: New file.
  2560. * java/awt/MenuItem.java: New file.
  2561. * java/awt/Paint.java: New file.
  2562. * java/awt/PaintContext.java: New file.
  2563. * java/awt/Point.java: New file.
  2564. * java/awt/Rectangle.java: New file.
  2565. * java/awt/Shape.java: New file.
  2566. * java/awt/TextArea.java: New file.
  2567. * java/awt/TextComponent.java: New file.
  2568. * java/awt/Toolkit.java: New file.
  2569. * java/awt/Transparency.java: New file.
  2570. * java/awt/Window.java: New file.
  2571. * java/awt/natToolkit.cc: New file.
  2572. * java/awt/event/AWTEventListener.java: New file.
  2573. * java/awt/event/ActionEvent.java: New file.
  2574. * java/awt/event/ActionListener.java: New file.
  2575. * java/awt/event/AdjustmentEvent.java: New file.
  2576. * java/awt/event/AdjustmentListener.java: New file.
  2577. * java/awt/event/ComponentAdapter.java: New file.
  2578. * java/awt/event/ComponentEvent.java: New file.
  2579. * java/awt/event/ComponentListener.java: New file.
  2580. * java/awt/event/ContainerAdapter.java: New file.
  2581. * java/awt/event/ContainerEvent.java: New file.
  2582. * java/awt/event/ContainerListener.java: New file.
  2583. * java/awt/event/FocusAdapter.java: New file.
  2584. * java/awt/event/FocusEvent.java: New file.
  2585. * java/awt/event/FocusListener.java: New file.
  2586. * java/awt/event/InputEvent.java: New file.
  2587. * java/awt/event/InputMethodEvent.java: New file.
  2588. * java/awt/event/InputMethodListener.java: New file.
  2589. * java/awt/event/InvocationEvent.java: New file.
  2590. * java/awt/event/ItemEvent.java: New file.
  2591. * java/awt/event/ItemListener.java: New file.
  2592. * java/awt/event/KeyAdapter.java: New file.
  2593. * java/awt/event/KeyEvent.java: New file.
  2594. * java/awt/event/KeyListener.java: New file.
  2595. * java/awt/event/MouseAdapter.java: New file.
  2596. * java/awt/event/MouseEvent.java: New file.
  2597. * java/awt/event/MouseListener.java: New file.
  2598. * java/awt/event/MouseMotionAdapter.java: New file.
  2599. * java/awt/event/MouseMotionListener.java: New file.
  2600. * java/awt/event/PaintEvent.java: New file.
  2601. * java/awt/event/TextEvent.java: New file.
  2602. * java/awt/event/TextListener.java: New file.
  2603. * java/awt/event/WindowAdapter.java: New file.
  2604. * java/awt/event/WindowEvent.java: New file.
  2605. * java/awt/event/WindowListener.java: New file.
  2606. * java/awt/geom/Dimension2D.java: New file.
  2607. * java/awt/geom/Point2D.java: New file.
  2608. * java/awt/peer/ComponentPeer.java: New file.
  2609. * java/awt/peer/ContainerPeer.java: New file.
  2610. * java/awt/peer/FramePeer.java: New file.
  2611. * java/awt/peer/WindowPeer.java: New file.
  2612. * java/util/Collection.java: New file.
  2613. * java/util/Comparator.java: New file.
  2614. * java/util/Iterator.java: New file.
  2615. * java/util/List.java: New file.
  2616. * java/util/ListIterator.java: New file.
  2617. * Makefile.am: Added above files.
  2618. * Makefile.in: Rebuilt.
  2619. 2000-04-10 Warren Levy <warrenl@cygnus.com>
  2620. * gnu/gcj/runtime/MethodInvocation.java: Fixed copyright.
  2621. * java/lang/FirstThread.java: Ditto.
  2622. * java/lang/StringBuffer.java: Ditto.
  2623. * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
  2624. * gnu/gcj/math/MPN.java (rshift): Undid Boehm's patch of 03-14.
  2625. Special case handled in java.math.BigInteger.
  2626. * java/math/BigInteger.java (divide): Handle the special case when
  2627. dividing by 1 and the high bit of the dividend is set.
  2628. (setShiftRight): Handle case when count == 0.
  2629. 2000-04-05 Andrew Haley <aph@cygnus.com>
  2630. * java/net/URL.java (setURLStreamHandler): Make "file" protocol a
  2631. special case.
  2632. 2000-04-05 Andrew Haley <aph@cygnus.com>
  2633. * sysdep/ia64.c (rse_address_add): Delete.
  2634. (IS_NaT_COLLECTION_ADDR): Delete.
  2635. (ia64_backtrace_helper): check for null unwind_info.
  2636. * sysdep/ia64-frame.h: add calc_caller_bsp.
  2637. * java/lang/natThrowable.cc (printRawStackTrace): Flush
  2638. PrintWriter.
  2639. * prims.cc (_Jv_divI): Use _Jv_ThrowSignal.
  2640. (_Jv_remI): Likewise.
  2641. (_Jv_divJ): Likewise.
  2642. (_Jv_remJ): Likewise.
  2643. * interpret.cc (continue1): Use divide subroutines to guarantee
  2644. correct Java standard behaviour.
  2645. Floating-point division should not abort; make it so.
  2646. 2000-03-29 Tom Tromey <tromey@cygnus.com>
  2647. * configure: Rebuilt.
  2648. * configure.in: Test against `libgcj_sjlj', not
  2649. `enable_sjlj_exceptions'. Rearranged code to allow SYSDEP_SOURCES
  2650. to be set even when using sjlj.
  2651. 2000-03-24 Andrew Haley <aph@cygnus.com>
  2652. * Makefile.am: Add file addr2name.awk.
  2653. * Makefile.in: Rebuilt.
  2654. * addr2name.awk: New file.
  2655. * name-finder.cc (_Jv_name_finder): Call addr2name.awk to do name
  2656. lookups on ia64.
  2657. * java/lang/natThrowable.cc(printRawStackTrace): Don't print out a
  2658. blank line.
  2659. 2000-03-22 Andrew Haley <aph@cygnus.com>
  2660. * configure.host: Add -funwind-tables for IA64.
  2661. * Makefile.am (c_source_files): Add SYSDEP_SORCES.
  2662. * Makefile.in: Rebuilt.
  2663. * java/lang/natThrowable.cc (fillInStackTrace): Add ia64 case.
  2664. * sysdep/ia64.c: New file.
  2665. * sysdep/ia64-frame.h: New file.
  2666. * configure.in: Add sysdep/ia64.c for ia64.
  2667. * configure: Rebuilt.
  2668. 2000-03-17 Andrew Haley <aph@cygnus.com>
  2669. * java/lang/natString.cc: Remove `register' keyword.
  2670. interpret.cc: ditto.
  2671. 2000-03-16 Andrew Haley <aph@cygnus.com>
  2672. * configure.host (ia64): Enable interpreter.
  2673. 2000-03-14 Hans Boehm <boehm@acm.org>
  2674. * gnu/gcj/math/MPN.java (rshift): Handle shift 32 specially.
  2675. 2000-03-14 Andrew Haley <aph@cygnus.com>
  2676. * include/default-signal.h (MAKE_THROW_FRAME): Add arg
  2677. `_exception'.
  2678. 2000-03-10 Andrew Haley <aph@cygnus.com>
  2679. * java/lang/ieeefp.h: Import latest version from fdlibm.
  2680. 2000-03-14 Andrew Haley <aph@cygnus.com>
  2681. * prims.cc (_Jv_ThrowSignal): New function.
  2682. (catch_segv): Add arg `_exception' to MAKE_THROW_FRAME.
  2683. (catch_fpe): Ditto.
  2684. * include/sparc-signal.h (MAKE_THROW_FRAME): Ditto
  2685. * include/i386-signal.h (MAKE_THROW_FRAME): Ditto.
  2686. * include/ppc-signal.h: New file.
  2687. 2000-05-18 Bryce McKinlay <bryce@albatross.co.nz>
  2688. * java/lang/Thread.java: Declare `data' as Object, not RawData.
  2689. * java/lang/natThread.java (initialize_native): Cast `data' to
  2690. jobject.
  2691. * gnu/gcj/RawData.java: Clarify documentation.
  2692. From Gregory R. Warnes <warnes@biostat.washington.edu>:
  2693. * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null
  2694. `jarFile', not `jarFileURL'.
  2695. 2000-05-15 Andrew Haley <aph@cygnus.com>
  2696. * include/ppc-signal.h: New file.
  2697. 2000-05-11 Tom Tromey <tromey@cygnus.com>
  2698. * java/util/zip/ZipInputStream.java (getNextEntry): When reading
  2699. file headers, don't include `size' in the skip call.
  2700. 2000-05-10 Bryce McKinlay <bryce@albatross.co.nz>
  2701. * java/lang/StringBuffer.java (delete): Call arrayCopy() correctly.
  2702. Avoid arrayCopy() call where possible. Update `count' _after_ calling
  2703. arrayCopy().
  2704. (replace): Reimplemented. Fix javadoc.
  2705. (reverse): Call ensureCapacity_unsynchronized().
  2706. (StringBuffer (String)): Use DEFAULT_CAPACITY.
  2707. (replace): Calculate length for arraycopy() correctly.
  2708. 2000-05-09 Tom Tromey <tromey@cygnus.com>
  2709. * java/lang/StringBuffer.java (toString): Don't mark buffer as
  2710. shared.
  2711. (insert(int,char[],int,int): New method.
  2712. (delete): New method from Classpath.
  2713. (deleteCharAt): Likewise.
  2714. (substring): Likewise.
  2715. (shared): No longer private.
  2716. Added JavaDoc comments from Classpath.
  2717. * java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
  2718. shared.
  2719. 2000-05-07 Tom Tromey <tromey@cygnus.com>
  2720. * Makefile.in: Rebuilt.
  2721. * Makefile.am (LIBLINK): New macro.
  2722. (libgcj_la_LINK): Use it.
  2723. (libgcjawt_la_LINK): Likewise.
  2724. 2000-05-06 Tom Tromey <tromey@cygnus.com>
  2725. * Makefile.in: Rebuilt.
  2726. * Makefile.am (libgcj.zip): Don't pass -L to javac.
  2727. 2000-05-05 Tom Tromey <tromey@cygnus.com>
  2728. Fix for PR libgcj/220:
  2729. * Makefile.in: Rebuilt.
  2730. * Makefile.am (gij_LDFLAGS): Don't use libstdc++.
  2731. (jv_convert_LDFLAGS): Likewise.
  2732. (libgcj_la_LDFLAGS): Likewise.
  2733. (GCJLINK): New macro.
  2734. (jv_convert_LINK): Use it.
  2735. (gij_LINK): Likewise.
  2736. (libgcj_la_LINK): New macro.
  2737. (libgcjawt_la_LINK): Likewise.
  2738. 2000-05-04 Tom Tromey <tromey@cygnus.com>
  2739. * gcj/field.h (JvFieldIsRef): Return false for gnu.gcj.RawData
  2740. field.
  2741. * boehm.cc (_Jv_MarkObj): Removed dead code. Use `STATIC', not
  2742. `0x0008'.
  2743. Include Modifier.h.
  2744. 2000-05-05 Bryce McKinlay <bryce@albatross.co.nz>
  2745. * java/lang/natClass.cc (isInstance): Use __builtin_expect.
  2746. (_Jv_IsAssignableFrom): Ditto.
  2747. (_Jv_IsInstanceOf): Ditto.
  2748. (_Jv_CheckCast): Ditto.
  2749. (_Jv_CheckArrayStore): Ditto.
  2750. * java/lang/Class.h (_Jv_InitClass): Ditto.
  2751. * java/lang/natObject.cc (_Jv_MonitorEnter): __builtin_expect `false',
  2752. not `0'.
  2753. (notify): Ditto.
  2754. (notifyAll): Ditto.
  2755. (wait): Ditto.
  2756. (_Jv_MonitorExit): Ditto.
  2757. * boehm.cc (_Jv_MarkObj): Ditto.
  2758. (_Jv_MarkObj): Ditto.
  2759. (_Jv_MarkArray): Ditto.
  2760. * prims.cc (_Jv_AllocObject): Ditto.
  2761. (_Jv_NewObjectArray): Ditto.
  2762. (_Jv_NewPrimArray): Ditto.
  2763. (_Jv_Malloc): Ditto.
  2764. (_Jv_Realloc): Ditto.
  2765. (_Jv_MallocUnchecked): Ditto.
  2766. (_Jv_divI): Ditto.
  2767. (_Jv_remI): Ditto.
  2768. (_Jv_divJ): Ditto.
  2769. (_Jv_remJ): Ditto.
  2770. 2000-05-04 Tom Tromey <tromey@cygnus.com>
  2771. * java/util/Locale.java (Locale): Don't explicitly check for
  2772. null.
  2773. * java/util/Hashtable.java (containsKey): Don't explicitly check
  2774. for null.
  2775. (get): Likewise.
  2776. * java/util/BitSet.java (and, or, xor): Don't explicitly check for
  2777. null.
  2778. * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check
  2779. for null.
  2780. * java/text/StringCharacterIterator.java
  2781. (StringCharacterIterator): Don't check for null.
  2782. * java/text/ChoiceFormat.java (setChoices): Don't explicitly check
  2783. for null pointer.
  2784. * java/net/MulticastSocket.java (joinGroup): Don't explicitly
  2785. check for null pointer.
  2786. (leaveGroup): Likewise.
  2787. * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous
  2788. comment.
  2789. (setData): Likewise.
  2790. * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check
  2791. for `p==null'.
  2792. 2000-04-28 Jakub Jelinek <jakub@redhat.com>
  2793. * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK,
  2794. gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS.
  2795. (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds.
  2796. (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to
  2797. -rpath for in-gcc builds.
  2798. * Makefile.in: Rebuilt.
  2799. 2000-04-28 Tom Tromey <tromey@cygnus.com>
  2800. * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions.
  2801. Fix for PR gcj/218.
  2802. 2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
  2803. * libjava/java/lang/String.java (toString): Remove `final' hack.
  2804. 2000-04-05 Tom Tromey <tromey@cygnus.com>
  2805. Runtime support for PR gcj/2:
  2806. * prims.cc (_Jv_ThrowNullPointerException): New function.
  2807. * include/jvm.h (_Jv_ThrowNullPointerException): Declare.
  2808. 2000-04-27 Bryce McKinlay <bryce@albatross.co.nz>
  2809. * prims.cc (_Jv_NewObjectArray): Fix typo.
  2810. 2000-04-26 Tom Tromey <tromey@cygnus.com>
  2811. * Makefile.in: Rebuilt.
  2812. * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions.
  2813. 2000-04-24 Jeff Sturm <jsturm@sigma6.com>
  2814. * gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
  2815. calling main.
  2816. 2000-04-22 Anthony Green <green@cygnus.com>
  2817. * include/jvm.h (__builtin_expect): Define as unused for now.
  2818. * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect.
  2819. (notify): Ditto.
  2820. (notifyAll): Ditto.
  2821. (wait): Ditto.
  2822. (_Jv_MonitorExit): Ditto.
  2823. * boehm.cc (_Jv_MarkObj): Ditto.
  2824. (_Jv_MarkObj): Ditto.
  2825. (_Jv_MarkArray): Ditto.
  2826. (_Jv_AllocBytes): Ditto.
  2827. * prims.cc (_Jv_AllocObject): Ditto.
  2828. (_Jv_NewObjectArray): Ditto.
  2829. (_Jv_NewPrimArray): Ditto.
  2830. (_Jv_Malloc): Ditto.
  2831. (_Jv_Realloc): Ditto.
  2832. (_Jv_MallocUnchecked): Ditto.
  2833. (_Jv_divI): Ditto.
  2834. (_Jv_remI): Ditto.
  2835. (_Jv_divJ): Ditto.
  2836. (_Jv_remJ): Ditto.
  2837. * include/Makefile.in: Rebuilt.
  2838. * include/Makefile.am (include_HEADERS): Add jvmpi.h.
  2839. 2000-04-21 Tom Tromey <tromey@cygnus.com>
  2840. * java/io/PipedInputStream.java, java/io/PipedOutputStream.java:
  2841. Yet another new version from Classpath.
  2842. Fix for PR libgcj/15:
  2843. * java/util/natGregorianCalendar.cc (_REENTRANT,
  2844. _POSIX_PTHREAD_SEMANTICS): Don't define.
  2845. * java/net/natInetAddress.cc (_REENTRANT): Don't define.
  2846. * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS):
  2847. Don't define.
  2848. * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't
  2849. define.
  2850. * configure: Rebuilt.
  2851. * configure.in: If using POSIX threads, define _REENTRANT if
  2852. needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define
  2853. GETHOSTBYNAME_R_NEEDS_REENTRANT.
  2854. * java/io/PipedInputStream.java, java/io/PipedReader.java,
  2855. java/io/PipedOutputStream.java, java/io/PipedWriter.java: New
  2856. version from Classpath.
  2857. Fix for PR libgcj/213:
  2858. * Makefile.in: Rebuilt.
  2859. * Makefile.am (gij_SOURCES): Added gij.cc.
  2860. (EXTRA_gij_SOURCES): Removed.
  2861. (gij_LDADD): Removed gij.lo.
  2862. (gij_DEPENDENCIES): Likewise.
  2863. ($(gij_OBJECTS)): Depend on nat_headers.
  2864. * gnu/gcj/protocol/file/Handler.java (openConnection): Use
  2865. `setURL', not `url.set'.
  2866. 2000-04-20 Tom Tromey <tromey@cygnus.com>
  2867. Fix for PR java.io/204:
  2868. * java/io/PipedInputStream.java, java/io/PipedReader.java,
  2869. java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported
  2870. from Classpath.
  2871. Fix for PR libgcj/212:
  2872. * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions.
  2873. * include/jvm.h (_Jv_word, _Jv_word2): Define.
  2874. * java/lang/Class.h (_Jv_word): Declare.
  2875. * jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.
  2876. 2000-04-19 Tom Tromey <tromey@cygnus.com>
  2877. * jni.cc (_Jv_JNI_FindClass): Use system class loader if class
  2878. doesn't have a loader.
  2879. 2000-04-19 Bryce McKinlay <bryce@albatross.co.nz>
  2880. * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for
  2881. MAYBE_MARK to ptr_t, for compatibility with new GC version.
  2882. 2000-04-16 Bryce McKinlay <bryce@albatross.co.nz>
  2883. * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR
  2884. libgcj/202.
  2885. (available): Initialize `where' to prevent bogus compiler warning.
  2886. 2000-04-12 Tom Tromey <tromey@cygnus.com>
  2887. * java/lang/natString.cc (intern): Temporarily disable finalizer
  2888. registration.
  2889. * java/lang/natString.cc (unintern): Added `obj' argument.
  2890. (intern): Register finalizer for string.
  2891. * java/lang/String.java (unintern): Now static; added obj
  2892. argument.
  2893. 2000-04-11 Tom Tromey <tromey@cygnus.com>
  2894. * java/util/Vector.java (VectorEnumeration): Now `final'.
  2895. * java/util/Hashtable.java (HashtableEntry): Now `final'.
  2896. (HashtableEnumeration): Likewise.
  2897. * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'.
  2898. * java/text/RuleBasedCollator.java (RBCElement): Now `final'.
  2899. 2000-04-10 Warren Levy <warrenl@cygnus.com>
  2900. * java/io/ObjectStreamException.java: New file.
  2901. * java/io/OptionalDataException.java: New file.
  2902. * java/io/StreamCorruptedException.java: New file.
  2903. * java/math/BigDecimal.java: New file.
  2904. * java/sql/CallableStatement.java: New file.
  2905. * java/sql/Connection.java: New file.
  2906. * java/sql/DataTruncation.java: New file.
  2907. * java/sql/DatabaseMetaData.java: New file.
  2908. * java/sql/Date.java: New file.
  2909. * java/sql/Driver.java: New file.
  2910. * java/sql/DriverManager.java: New file.
  2911. * java/sql/DriverPropertyInfo.java: New file.
  2912. * java/sql/PreparedStatement.java: New file.
  2913. * java/sql/ResultSet.java: New file.
  2914. * java/sql/ResultSetMetaData.java: New file.
  2915. * java/sql/SQLException.java: New file.
  2916. * java/sql/SQLWarning.java: New file.
  2917. * java/sql/Statement.java: New file.
  2918. * java/sql/Time.java: New file.
  2919. * java/sql/Timestamp.java: New file.
  2920. * java/sql/Types.java: New file.
  2921. * Makefile.am: Added above new files.
  2922. * Makefile.in: Rebuilt.
  2923. * mauve-libgcj: Turned on java.math, java.sql and java.security tests.
  2924. * java/net/MulticastSocket.java (MulticastSocket): Pass values a la
  2925. DatagramSocket constructor instead of null.
  2926. 2000-04-08 Anthony Green <green@cygnus.com>
  2927. * include/posix-threads.h (_Jv_MutexUnlock): Replace
  2928. _JV_NOT_OWNER.
  2929. 2000-04-08 Anthony Green <green@cygnus.com>
  2930. * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.
  2931. (_Jv_MutexUnlock): Ditto.
  2932. * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc.
  2933. (_Jv_MutexUnlock): Ditto.
  2934. 2000-04-08 Anthony Green <green@cygnus.com>
  2935. * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max.
  2936. (ensureCapacity_unsynchronized): New private method.
  2937. (append): Use ensureCapacity_unsynchronized.
  2938. 2000-04-08 Tom Tromey <tromey@cygnus.com>
  2939. * Makefile.in: Rebuilt.
  2940. * Makefile.am (awt_java_source_files): Added new files.
  2941. * java/awt/IllegalComponentStateException.java: New file.
  2942. * java/awt/ItemSelectable.java: New file.
  2943. * java/awt/event/WindowEvent.java: Finished.
  2944. * java/awt/event/TextEvent.java: Finished.
  2945. * java/awt/event/ContainerEvent.java: New file.
  2946. * java/awt/Component.java (getX, getY): New methods.
  2947. * java/awt/event/PaintEvent.java: New file.
  2948. * java/awt/event/MouseEvent.java: New file.
  2949. * java/awt/ActiveEvent.java: New file.
  2950. * java/awt/event/KeyEvent.java: Finished.
  2951. * java/awt/event/ItemEvent.java: New file.
  2952. * java/awt/Adjustable.java: New file.
  2953. * java/awt/event/InputMethodEvent.java: New file.
  2954. * java/awt/event/InputEvent.java: Finished.
  2955. * java/awt/event/FocusEvent.java: New file.
  2956. * java/awt/event/MouseMotionAdapter.java: New file.
  2957. * java/awt/event/MouseAdapter.java: New file.
  2958. * java/awt/event/KeyAdapter.java: New file.
  2959. * java/awt/event/FocusAdapter.java: New file.
  2960. * java/awt/event/ContainerAdapter.java: New file.
  2961. * java/awt/event/ComponentEvent.java: Finished.
  2962. * java/awt/event/AdjustmentEvent.java: New file.
  2963. * java/awt/event/ComponentAdapter.java: New file.
  2964. * java/awt/event/ActionEvent.java: Finished.
  2965. * java/awt/event/MouseMotionListener.java: New file.
  2966. * java/awt/event/MouseListener.java: New file.
  2967. * java/awt/event/ItemListener.java: New file.
  2968. * java/awt/event/InputMethodListener.java: New file.
  2969. * java/awt/event/ContainerListener.java: New file.
  2970. * java/awt/event/FocusListener.java: New file.
  2971. * java/awt/event/ComponentListener.java: New file.
  2972. * java/awt/event/AWTEventListener.java: New file.
  2973. * java/awt/event/AdjustmentListener.java: New file.
  2974. 2000-04-08 Anthony Green <green@cygnus.com>
  2975. * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null
  2976. check when we have to.
  2977. * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>*
  2978. x) as `inline'.
  2979. * java/util/StringTokenizer.java: Minor optimization. Eliminates
  2980. one method call.
  2981. * java/util/Vector.java (VectorEnumeration.nextElement): Manually
  2982. inline hasMoreElements.
  2983. 2000-04-05 Tom Tromey <tromey@cygnus.com>
  2984. * configure: Rebuilt.
  2985. * configure.in: Recognize --enable-java-awt.
  2986. (AWT): New conditional.
  2987. * Makefile.in: Rebuilt.
  2988. * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if
  2989. requested.
  2990. (libgcjawt_la_SOURCES): New macro.
  2991. (EXTRA_libgcjawt_la_SOURCES): Likewise.
  2992. (libgcjawt_la_DEPENDENCIES): Likewise.
  2993. (libgcjawt_la_LIBADD): Likewise.
  2994. (libgcjawt_la_LDFLAGS): Likewise.
  2995. (libgcj.zip): Depend on cond_java_awt_source_files
  2996. (cond_awt_java_source_files): New macro.
  2997. (MOSTLYCLEANFILES): Added awto_files.
  2998. (awto_files): New macro. Use where javao_files used.
  2999. (nat_headers): Use cond_awt_java_source_files.
  3000. 2000-04-04 Tom Tromey <tromey@cygnus.com>
  3001. * Makefile.in: Rebuilt.
  3002. * Makefile.am (awt_java_source_files): Added AWTException.java.
  3003. * java/awt/AWTException.java: New file.
  3004. 2000-04-03 Tom Tromey <tromey@cygnus.com>
  3005. * include/jvm.h (_Jv_GetArrayElementFromElementType): More
  3006. commentary from Alex.
  3007. * Makefile.in: Rebuilt.
  3008. * Makefile.am ($(javao_files)): Depend on libgcj.zip.
  3009. From H.J. Lu.
  3010. Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
  3011. * configure: Rebuilt.
  3012. * configure.in: Add --disable-jvmpi.
  3013. * include/config.h.in: Rebuilt.
  3014. * acconfig.h: Add ENABLE_JVMPI.
  3015. * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
  3016. (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
  3017. (_Jv_JVMPI_Notify_THREAD_END): New define.
  3018. (_Jv_JVMPI_Notify_THREAD_END): New define.
  3019. * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
  3020. (_Jv_JVMPI_Notify_THREAD_END): Declare.
  3021. (_Jv_JVMPI_Notify_THREAD_END): Declare.
  3022. * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
  3023. events.
  3024. * java/lang/natThread.cc: Include JVMPI headers if necessary.
  3025. (finish_): Generate JVMPI thread end events.
  3026. (run_): Generate JVMPI thread start events.
  3027. * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
  3028. preloaded JNI library.
  3029. Include JVMPI headers if necessary.
  3030. (run): Generate JVMPI thread start events.
  3031. * boehm.cc: Define GC_disable and GC_enable.
  3032. (_Jv_DisableGC): New function.
  3033. (_Jv_EnableGC): New function.
  3034. (disable_gc_mutex): Declare.
  3035. * nogc.cc (_Jv_DisableGC): New function.
  3036. (_Jv_EnableGC): New function.
  3037. * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
  3038. (_Jv_JVMPI_Interface): Define.
  3039. (jvmpiEnableEvent): New function.
  3040. (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
  3041. * include/jvmpi.h: New file.
  3042. 2000-03-27 Bryce McKinlay <bryce@albatross.co.nz>
  3043. * Makefile.in: New #defines and friends for Thread.h.
  3044. * Makefile.am: Ditto.
  3045. * posix-threads.cc: (struct starter): Remove `object'.
  3046. (_Jv_CondWait): Use interruptable condition variables and new
  3047. recursive mutexes. New return codes on interrupt or non-ownership
  3048. of mutex.
  3049. (_Jv_CondNotify): Ditto.
  3050. (_Jv_CondNotifyAll): Ditto.
  3051. (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
  3052. the target thread by signaling its wait condition.
  3053. (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
  3054. not the starter struct. Initialize wait_mutex and wait_cond.
  3055. (_Jv_MutexLock): New recursive mutex implementation. Moved from
  3056. posix-threads.h.
  3057. (_Jv_MutexUnlock): Ditto.
  3058. (really_start): Set info->data->thread from pthread_self() to work
  3059. around a race condition. Destroy wait_mutex and wait_cond when run()
  3060. returns.
  3061. * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
  3062. `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
  3063. set.
  3064. startable_flag: New private field.
  3065. (Thread): Initialize `startable_flag'.
  3066. (toString): Check for null thread group.
  3067. * java/lang/natThread.cc: (struct natThread): New fields
  3068. `join_mutex', `join_cond'. Removed fields `joiner', `next'.
  3069. (class locker): Removed.
  3070. (initialize_native): Initialize `join_cond' and `join_mutex'.
  3071. (interrupt): Now just calls _Jv_ThreadInterrupt().
  3072. (join): Simplified. Just wait on the target thread's join condition.
  3073. (finish_): Remove join list code. Unset thread group. Signal
  3074. potential joiners by notifying the dying threads join_cond.
  3075. (start): Check for illegal restarts.
  3076. * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
  3077. act appropriatly.
  3078. * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
  3079. #defines and #ifdefs.
  3080. (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
  3081. `wait_mutex', `next'.
  3082. (struct _Jv_ConditionVariable_t): Define as a struct instead of
  3083. directly mapping to pthread_cond_t.
  3084. (struct _Jv_Mutex_t): New recursive implementation.
  3085. (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
  3086. _Jv_HaveCondDestroy: Never define this for posix-threads.
  3087. (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
  3088. (_Jv_CondNotifyAll): Ditto.
  3089. (_Jv_MutexLock): Ditto.
  3090. (_Jv_MutexUnlock): Ditto.
  3091. (_Jv_MutexInit): Changed to reflect new mutex implementation.
  3092. (_Jv_MutexDestroy): Ditto.
  3093. (_Jv_CondDestroy): Removed.
  3094. (_Jv_PthreadGetMutex): Removed.
  3095. * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
  3096. error. Add a FIXME about this.
  3097. (_Jv_CondNotifyAll): Ditto.
  3098. * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
  3099. _JV_NOT_OWNER on other errors. Add FIXME.
  3100. 2000-03-26 Tom Tromey <tromey@cygnus.com>
  3101. * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exception
  3102. set, throw it.
  3103. (call): Don't throw exception here.
  3104. 2000-03-26 Tom Tromey <tromey@cygnus.com>
  3105. * java/lang/mprec.h: Use SIZEOF_VOID_P.
  3106. * interpret.cc: Use SIZEOF_VOID_P.
  3107. * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P.
  3108. (_Jv_loadLong): Likewise.
  3109. (_Jv_storeDouble): Likewise.
  3110. * configure: Rebuilt.
  3111. * configure.in: Check size of void*.
  3112. * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE.
  3113. 2000-03-26 Hans Boehm <boehm@acm.org>
  3114. * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong,
  3115. _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit
  3116. machine.
  3117. * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or
  3118. __IEEE_LITTLE_ENDIAN appropriately on IA64.
  3119. * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine.
  3120. * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit
  3121. case.
  3122. * resolve.cc (FFI_PREP_RAW_CLOSURE): New define.
  3123. (FFI_RAW_SIZE): Likewise.
  3124. (_Jv_InterpMethod::ncode): Use them.
  3125. * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL,
  3126. STORED): Define differently on a 64 bit machine.
  3127. (continue1): Use ffi_java_raw_call when appropriate.
  3128. 2000-03-24 Warren Levy <warrenl@cygnus.com>
  3129. * java/math/BigInteger.java(divide): Handle the special case when
  3130. dividing by 1 and the high bit of the dividend is set.
  3131. (setShiftRight): Handle case when count == 0.
  3132. 2000-03-24 Warren Levy <warrenl@cygnus.com>
  3133. * java/awt/Font.java(isBold): Fix syntax error.
  3134. (isItalic): ditto.
  3135. * java/awt/Frame.java(postEvent): ditto.
  3136. * java/awt/Menu.java(postEvent): ditto.
  3137. * java/awt/MenuBar.java(postEvent): ditto.
  3138. * java/awt/Toolkit.java(init): Included a stub.
  3139. 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
  3140. * java/awt/Event.java: Add all the event type constants.
  3141. (Event): Implemented constructors.
  3142. (controlDown): Implemented.
  3143. (metaDown): Implemented.
  3144. (paramString): Stubbed.
  3145. (shiftDown): Implemented.
  3146. (toString): Implemented.
  3147. (translate): Implemented.
  3148. 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
  3149. * java/lang/natClass.cc (isInstance): Initialize `this'.
  3150. (isAssignableFrom): Initialize `this' and `klass'.
  3151. (_Jv_IsAssignableFrom): If an interface has no idt, it is not
  3152. implemented by any loaded class, so return false.
  3153. * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),
  3154. not Class.isAssignableFrom(). Use JV_CLASS, not getClass().
  3155. 2000-03-19 Warren Levy <warrenl@cygnus.com>
  3156. * java/awt/Color.java: Specified java.io for Serializable.
  3157. * java/awt/Toolkit.java: Imported java.net.URL.
  3158. 2000-03-19 Warren Levy <warrenl@cygnus.com>
  3159. * java/awt/Color.java: Rewrote to be more memory efficient (& compile).
  3160. 2000-03-16 Warren Levy <warrenl@cygnus.com>
  3161. * java/awt/Color.java: New file.
  3162. * java/awt/Graphics.java: New file.
  3163. * java/awt/Image.java: New file.
  3164. * java/awt/Paint.java: New file.
  3165. * java/awt/PaintContext.java: New file.
  3166. * java/awt/Transparency.java: New file.
  3167. * java/util/Collection.java: New file.
  3168. * java/util/Comparator.java: New file.
  3169. * java/util/Iterator.java: New file.
  3170. * java/util/List.java: New file.
  3171. * java/util/ListIterator.java: New file.
  3172. * Makefile.am: Added above new files.
  3173. * Makefile.in: Rebuilt.
  3174. * java/awt/Font.java (PLAIN): New field.
  3175. (BOLD): New field.
  3176. (ITALIC): New field.
  3177. (ROMAN_BASELINE): New field.
  3178. (CENTER_BASELINE): New field.
  3179. (HANGING_BASELINE): New field.
  3180. (name): New field.
  3181. (style): New field.
  3182. (size): New field.
  3183. (pointSize): New field.
  3184. (Font): Implemented constructor.
  3185. (isPlain): Implemented method.
  3186. (isBold): Implemented method.
  3187. (isItalic): Implemented method.
  3188. (getName): Implemented method.
  3189. (getStyle): Implemented method.
  3190. (getSize): Implemented method.
  3191. (getSize2D): Implemented method.
  3192. (decode): Stubbed.
  3193. * java/awt/Frame.java (getFont): Stubbed.
  3194. (postEvent): Stubbed.
  3195. (remove): Stubbed.
  3196. * java/awt/Menu.java (postEvent): Stubbed.
  3197. * java/awt/MenuBar.java (getFont): Stubbed.
  3198. (postEvent): Stubbed.
  3199. * java/awt/Toolkit.java (getImage): Added abstract method.
  3200. 2000-03-15 Tom Tromey <tromey@cygnus.com>
  3201. * java/io/natFileDescriptorWin32.cc (winerr): Now static.
  3202. * prims.cc (win32_exception_handler): Reformatted.
  3203. * include/win32-threads.h (_Jv_HaveCondDestroy): New define.
  3204. (_Jv_HaveMutexDestroy): Likewise.
  3205. 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
  3206. * java/io/natFileDescriptorWin32.cc: New file.
  3207. * java/io/natFileWin32.cc: New file.
  3208. * java/net/natInetAddress.cc: Added conditional inclusion of
  3209. Windows / Winsock headers.
  3210. * java/net/natPlainDatagramSocketImpl.cc: Added conditional
  3211. inclusion of Windows / Winsock headers.
  3212. * java/net/natPlainSocketImpl.cc: Added conditional inclusion of
  3213. Windows / Winsock headers.
  3214. * include/win32-signal.h: New file.
  3215. * include/win32-threads.h: New file.
  3216. * win32-threads.cc: New file.
  3217. * exception.cc (win32_get_restart_frame): New function.
  3218. * prims.cc (win32_exception_handler): New function.
  3219. (main_init) Performs Winsock initialisation.
  3220. (main_init) Installs exeception handler.
  3221. 2000-03-14 Tom Tromey <tromey@cygnus.com>
  3222. * jni.cc (mangled_name): Fixed assertion.
  3223. (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument;
  3224. turned assert into actual failure.
  3225. 2000-03-09 Warren Levy <warrenl@cygnus.com>
  3226. * java/security/Key.java(serialVersionUID): Set to 0 for now.
  3227. * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto.
  3228. * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto.
  3229. 2000-03-09 Warren Levy <warrenl@cygnus.com>
  3230. * java/security/AlgorithmParameterGeneratorSpi.java: New file.
  3231. * java/security/DigestException.java: New file.
  3232. * java/security/GeneralSecurityException.java: New file.
  3233. * java/security/InvalidAlgorithmParameterException.java: New file.
  3234. * java/security/InvalidKeyException.java: New file.
  3235. * java/security/InvalidParameterException.java: New file.
  3236. * java/security/Key.java: New file.
  3237. * java/security/KeyException.java: New file.
  3238. * java/security/KeyPair.java: New file.
  3239. * java/security/KeyPairGenerator.java: New file.
  3240. * java/security/KeyPairGeneratorSpi.java: New file.
  3241. * java/security/NoSuchProviderException.java: New file.
  3242. * java/security/PrivateKey.java: New file.
  3243. * java/security/Provider.java: New file.
  3244. * java/security/PublicKey.java: New file.
  3245. * java/security/SecureRandom.java: New file.
  3246. * java/security/Security.java: New file.
  3247. * java/security/Signature.java: New file.
  3248. * java/security/SignatureException.java: New file.
  3249. * java/security/interfaces/DSAKey.java: New file.
  3250. * java/security/interfaces/DSAParams.java: New file.
  3251. * java/security/interfaces/DSAPrivateKey.java: New file.
  3252. * java/security/interfaces/DSAPublicKey.java: New file.
  3253. * java/security/interfaces/RSAPrivateCrtKey.java: New file.
  3254. * java/security/interfaces/RSAPrivateKey.java: New file.
  3255. * java/security/interfaces/RSAPublicKey.java: New file.
  3256. * java/security/spec/AlgorithmParameterSpec.java: New file.
  3257. * java/security/spec/InvalidKeySpecException.java: New file.
  3258. * java/security/spec/InvalidParameterSpecException.java: New file.
  3259. * java/security/spec/KeySpec.java: New file.
  3260. * java/security/spec/RSAPrivateCrtKeySpec.java: New file.
  3261. * java/security/spec/RSAPrivateKeySpec.java: New file.
  3262. * java/security/spec/RSAPublicKeySpec.java: New file.
  3263. * Makefile.am: Added above java.security files.
  3264. * Makefile.in: Rebuilt.
  3265. * java/security/MessageDigest.java: Rewritten.
  3266. * java/security/SecureClassLoader.java: Added JDK1.2 comment.
  3267. 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
  3268. * README: Updated.
  3269. 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>
  3270. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call
  3271. _Jv_PrepareConstantTimeTables.
  3272. * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array
  3273. classes should have an IDT, so don't return if klass is an array
  3274. class.
  3275. 2000-03-08 Tom Tromey <tromey@cygnus.com>
  3276. * java/lang/reflect/natArray.cc (newInstance): Don't allow array
  3277. of `void' to be created.
  3278. 2000-03-08 Warren Levy <warrenl@cygnus.com>
  3279. * java/math/BigInteger.java(signum): Handle zero properly.
  3280. 2000-03-07 Tom Tromey <tromey@cygnus.com>
  3281. * All files: Updated copyright information.
  3282. * COPYING: New file.
  3283. * COPYING.LIB: Removed.
  3284. * LIBGCJ_LICENSE: We now use GPL + special exception.
  3285. 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
  3286. * resolve.cc (_Jv_SearchMethodInClass): New function.
  3287. (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods.
  3288. * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype.
  3289. 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>
  3290. * java/lang/Class.h (union _Jv_IDispatchTable): New declaration.
  3291. (struct _Jv_ifaces): New declaration.
  3292. JV_CLASS: New macro definition.
  3293. (getComponentType): Relocate below isArray() for inlining.
  3294. (getModifiers): Declare `inline'.
  3295. (getSuperclass): Ditto.
  3296. (isArray): Ditto.
  3297. (isPrimitive): Ditto.
  3298. (_Jv_IsAssignableFrom): New prototype.
  3299. (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C"
  3300. linkage.
  3301. (_Jv_InitClass): Move from natClass.cc. Declare `inline'.
  3302. Check for JV_STATE_DONE before invoking initializeClass().
  3303. (_Jv_PrepareConstantTimeTables): New prototype.
  3304. (_Jv_GetInterfaces): Ditto.
  3305. (_Jv_GenerateITable): Ditto.
  3306. (_Jv_GetMethodString): Ditto.
  3307. (_Jv_AppendPartialITable): Ditto.
  3308. (_Jv_FindIIndex): Ditto.
  3309. depth, ancestors, idt: New class fields.
  3310. * java/lang/natClass.cc (isAssignableFrom): Move functionality to
  3311. inline function `_Jv_IsAssignableFrom'. Use that function.
  3312. (isInstance): Declare `inline'.
  3313. (initializeClass): Get lock on class before checking `state'. Unlock
  3314. before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with
  3315. the lock held.
  3316. (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString.
  3317. (_Jv_IsAssignableFrom): New inline function. Test assignability using
  3318. class->depth and ancestor table.
  3319. (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom.
  3320. (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and
  3321. _Jv_IsAssignableFrom.
  3322. (_Jv_CheckArrayStore): Ditto.
  3323. (_Jv_LookupInterfaceMethodIdx): New function.
  3324. INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines.
  3325. (_Jv_PrepareConstantTimeTables): New function.
  3326. (_Jv_IndexOf): Ditto.
  3327. (_Jv_GetInterfaces): Ditto.
  3328. (_Jv_GenerateITable): Ditto.
  3329. (_Jv_GetMethodString): Ditto.
  3330. (_Jv_AppendPartialITable): Ditto.
  3331. iindex_mutex, iindex_mutex_initialized: New static fields.
  3332. (_Jv_FindIIndex): New function.
  3333. * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields.
  3334. * prims.cc (_Jv_CheckCast): Moved to natClass.cc.
  3335. (_Jv_CheckArrayStore): Ditto.
  3336. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray,
  3337. JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray):
  3338. Moved to gcj/array.h.
  3339. (_Jv_Realloc): New function.
  3340. * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h.
  3341. * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h.
  3342. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray,
  3343. JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray,
  3344. JvNewDoubleArray): Implementations moved from prims.cc and
  3345. declared `inline'.
  3346. * gcj/javaprims.h (_Jv_Realloc): Prototype.
  3347. * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype.
  3348. 2000-03-06 Tom Tromey <tromey@cygnus.com>
  3349. * jni.cc (MARK_NONE): New define.
  3350. (MARK_USER): Likewise.
  3351. (MARK_SYSTEM): Likewise.
  3352. (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size'
  3353. smaller.
  3354. (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert.
  3355. (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE.
  3356. (_Jv_JNI_PushLocalFrame): Use MARK_USER.
  3357. (_Jv_JNI_PopLocalFrame): New version with additional `stop'
  3358. argument.
  3359. (call): Use MARK_SYSTEM.
  3360. (_Jv_GetJNIEnvNewFrame): New function.
  3361. (_Jv_LookupJNIMethod): New function.
  3362. (_Jv_JNI_PopSystemFrame): New function.
  3363. (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod.
  3364. 2000-03-05 Tom Tromey <tromey@cygnus.com>
  3365. Fix for PR libgcj/43:
  3366. * include/Makefile.in: Rebuilt.
  3367. * include/Makefile.am (include_HEADERS): New define.
  3368. 2000-03-05 Anthony Green <green@redhat.com>
  3369. * gcj/javaprims.h ("Java"): Remove FirstThread.
  3370. * configure.host: Fix __NO_MATH_INLNES botch.
  3371. * Makefile.in: Rebuilt.
  3372. * Makefile.am (nat_source_files): Move natFirstThread.cc.
  3373. (gnu/gcj/runtime/FirstThread.h): Moved.
  3374. (ordinary_java_source_files): Move FirstThread.java.
  3375. * prims.cc: Deal with FirstThread movement.
  3376. (JvRunMain): Ditto.
  3377. (_Jv_RunMain): Ditto.
  3378. * gnu/gcj/runtime/FirstThread.java: Moved from java/lang.
  3379. * gnu/gcj/runtime/natFirstThread.cc: Ditto.
  3380. 2000-03-05 Warren Levy <warrenl@cygnus.com>
  3381. * java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
  3382. Handle null addresses.
  3383. 2000-03-04 Anthony Green <green@redhat.com>
  3384. * configure.host (libgcj_flags): Define __NO_MATH_INLINES.
  3385. See PR gcj/151.
  3386. 2000-03-04 Anthony Green <green@redhat.com>
  3387. * configure: Rebuilt.
  3388. * configure.in (ZLIBTESTSPEC): New macro.
  3389. (GCTESTSPEC): New macro.
  3390. (LIBGCJTESTSPEC): New macro.
  3391. * libgcj-test.spec.in: New file.
  3392. 2000-03-02 Tom Tromey <tromey@cygnus.com>
  3393. * include/java-interp.h: Don't include MethodInvocation.h.
  3394. (class _Jv_InterpMethod): Don't make MethodInvocation a friend.
  3395. * Makefile.in: Rebuilt.
  3396. * Makefile.am (gnu/gcj/runtime/MethodInvocation.h): Removed.
  3397. (ordinary_java_source_files): Don't mention
  3398. MethodInvocation.java.
  3399. * gnu/gcj/runtime/MethodInvocation.java: Removed.
  3400. * interpret.cc (MethodInvocation::continue1): Removed.
  3401. (run): Handle exceptions here.
  3402. * java/lang/ClassLoader.java (defineClass1, defineClass2):
  3403. Removed.
  3404. * java/lang/natClassLoader.cc (defineClass0): Catch exceptions
  3405. here.
  3406. (defineClass2): Removed.
  3407. * java/lang/reflect/Method.java (hack_trampoline, hack_call):
  3408. Removed.
  3409. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Catch
  3410. exceptions here.
  3411. (hack_call): Removed.
  3412. * java/lang/Class.h (Class): Removed hackRunInitializers,
  3413. hackTrampoline.
  3414. * java/lang/natClass.cc (hackRunInitializers): Removed.
  3415. (initializeClass): Catch exceptions here.
  3416. Include ExceptionInInitializerError.h.
  3417. * java/lang/Class.java (hackTrampoline, hackRunInitializers):
  3418. Removed.
  3419. * java/lang/Object.h (Object): Don't mention hack12_6.
  3420. * java/lang/natObject.cc (_Jv_FinalizeObject): Catch exceptions
  3421. here.
  3422. * java/lang/Object.java (hack12_6): Removed.
  3423. * java/lang/natThread.cc (run_): Renamed. Catch exceptions here.
  3424. (start): Use run_, not run__.
  3425. * java/lang/Thread.java (run_): Renamed from run__; old run_
  3426. removed.
  3427. * jni.cc (_Jv_JNI_FindClass): Handle exceptions.
  3428. (_Jv_JNI_EnsureLocalCapacity): Likewise.
  3429. (_Jv_JNI_DefineClass): Likewise.
  3430. (_Jv_JNI_ThrowNew): Likewise.
  3431. (_Jv_JNI_AllocObject): Likewise.
  3432. (_Jv_JNI_GetAnyMethodID): Likewise.
  3433. (_Jv_JNI_CallAnyMethodV): Likewise.
  3434. (_Jv_JNI_CallAnyMethodA): Likewise.
  3435. (_Jv_JNI_CallAnyVoidMethodV): Likewise.
  3436. (_Jv_JNI_CallAnyVoidMethodA): Likewise.
  3437. (_Jv_JNI_GetAnyFieldID): Likewise.
  3438. (_Jv_JNI_NewString): Likewise.
  3439. (_Jv_JNI_NewStringUTF): Likewise.
  3440. (_Jv_JNI_GetStringUTFChars): Likewise.
  3441. (_Jv_JNI_NewObjectArray): Likewise.
  3442. (_Jv_JNI_NewPrimitiveArray): Likewise.
  3443. (_Jv_JNI_GetPrimitiveArrayRegion): Likewise.
  3444. (_Jv_JNI_GetStringRegion): Likewise.
  3445. (_Jv_JNI_GetStringUTFRegion): Likewise.
  3446. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise.
  3447. (_Jv_JNI_MonitorEnter): Likewise.
  3448. (_Jv_JNI_MonitorExit): Likewise.
  3449. (_Jv_JNI_ToReflectedField): Likewise.
  3450. (_Jv_JNI_ToReflectedMethod): Likewise.
  3451. (_Jv_JNI_RegisterNatives): Likewise.
  3452. (_Jv_JNI_AttachCurrentThread): Likewise.
  3453. (_Jv_JNI_DestroyJavaVM): Likewise.
  3454. 2000-02-28 Mo DeJong <mdejong@cygnus.com>
  3455. * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
  3456. error caused by the incorrect casting of a long to an int.
  3457. 2000-02-28 Mo DeJong <mdejong@cygnus.com>
  3458. * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
  3459. SIGSEV caused by use of the wrong instance variable.
  3460. 2000-02-27 Bryce McKinlay <bryce@albatross.co.nz>
  3461. * java/io/File.java (File(String, String)): For dirPath, treat an
  3462. empty String the same as `null'.
  3463. 2000-02-26 Anthony Green <green@cygnus.com>
  3464. * gnu/gcj/io/MimeTypes.java: Test for null.
  3465. * jni.cc (_Jv_JNI_AttachCurrentThread): Minor cleanup.
  3466. (JNI_GetCreatedJavaVMs): Remove compiler warning.
  3467. * java/net/URLConnection.java: Update copyright notice.
  3468. 2000-02-25 Tom Tromey <tromey@cygnus.com>
  3469. * jni.cc (_Jv_JNI_RegisterNatives): Conditionalize body on
  3470. `INTERPRETER'.
  3471. 2000-02-25 Bryce McKinlay <bryce@albatross.co.nz>
  3472. * java/net/URLConnection.java (initializeDateFormats): New
  3473. private method.
  3474. (getHeaderFieldDate): Call initializeDateFormats if required.
  3475. locale, dateFormat1, dateFormat2, dateFormat3: Don't initialize
  3476. these.
  3477. Fix for PR libgcj/38.
  3478. 2000-02-24 Warren Levy <warrenl@cygnus.com>
  3479. * java/math/BigInteger.java(ival): Made private.
  3480. (words): Ditto.
  3481. (neg): Ditto.
  3482. 2000-02-20 Anthony Green <green@cygnus.com>
  3483. * Makefile.in: Rebuilt.
  3484. * Makefile.am (ordinary_java_source_files): Add
  3485. gnu/gcj/io/DefaultMimeTypes.java and gnu/gcj/io/MimeTypes.java
  3486. * scripts/MakeDefaultMimeTypes.java: New file.
  3487. * scripts/mime.types: New file.
  3488. * scripts/classes.pl: Moved from top level.
  3489. * classes.pl: Moved to scripts directory.
  3490. * java/net/URLConnection.java: Implement guessContentTypeFromName.
  3491. * gnu/gcj/io/MimeTypes.java: New file.
  3492. * gnu/gcj/io/DefaultMimeTypes.java: New file.
  3493. 2000-02-20 Tom Tromey <tromey@cygnus.com>
  3494. * boehm.cc (_Jv_AllocBytes): Clear returned memory.
  3495. 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
  3496. * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
  3497. (setSize): ditto.
  3498. 2000-02-18 Tom Tromey <tromey@cygnus.com>
  3499. * include/jvm.h (_Jv_GetJavaVM): Declare.
  3500. * include/java-interp.h (_Jv_GetFirstMethod): New function.
  3501. (_Jv_MethodBase::get_method): New method.
  3502. (_Jv_JNIMethod::set_function): New method.
  3503. * jni.cc (_Jv_JNI_UnregisterNatives): New function.
  3504. (_Jv_JNI_RegisterNatives): New function.
  3505. (_Jv_JNIFunctions): Updated for new functions.
  3506. (_Jv_GetJavaVM): New function.
  3507. (_Jv_JNI_GetJavaVM): Use it. Now static.
  3508. (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
  3509. is already a Java thread but does not have a JNIEnv yet.
  3510. * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
  3511. function.
  3512. 2000-02-17 Tom Tromey <tromey@cygnus.com>
  3513. * gcj/field.h (_Jv_Field::getClass): Don't use JvAssert.
  3514. Fixes PR gcj/152.
  3515. 2000-02-16 Tom Tromey <tromey@cygnus.com>
  3516. * jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.
  3517. * jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.
  3518. (_Jv_JNI_NewObject): Likewise.
  3519. (_Jv_JNI_NewObjectA): Likewise.
  3520. (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value
  3521. as "return" type to _Jv_CallAnyMethodA.
  3522. (_Jv_JNI_CallAnyMethodA): Likewise.
  3523. (_Jv_JNI_CallAnyVoidMethodV): Likewise.
  3524. * jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not
  3525. findClass.
  3526. 2000-02-15 Tom Tromey <tromey@cygnus.com>
  3527. * resolve.cc (ncode): Set args_raw_size. Compute jni_cif and
  3528. jni_arg_types.
  3529. (init_cif): Added `rtype_p' argument.
  3530. * include/java-interp.h (class _Jv_MethodBase): Added
  3531. args_raw_size.
  3532. (class _Jv_InterpMethod): Removed args_raw_size.
  3533. (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields.
  3534. * jni.cc (call): Pass JNIEnv and (for static methods only) the
  3535. class pointer as well as the ordinary arguments.
  3536. * jni.cc (mangled_name): Skip leading `(' in signature.
  3537. * jni.cc (add_char): Added missing `else'.
  3538. * jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc
  3539. fails.
  3540. 2000-02-15 Bryce McKinlay <bryce@albatross.co.nz>
  3541. * NEWS: Updated.
  3542. * java/lang/natRuntime.cc (_load): Include library path with
  3543. exception message.
  3544. * java/lang/natSystem.cc (init_properties): set java.lang.classpath
  3545. property.
  3546. * java/lang/natThread.cc (dumpStack): Removed.
  3547. * java/lang/Thread.java (dumpStack): Implemented.
  3548. 2000-02-15 Tom Tromey <tromey@cygnus.com>
  3549. * java/lang/natRuntime.cc (_load): On Unix, prefix library name
  3550. with `lib' for loadLibrary. Fixes PR gcj/150.
  3551. 2000-02-14 Warren Levy <warrenl@cygnus.com>
  3552. * gnu/gcj/math/MPN.java(findLowestBit): Made methods public.
  3553. * java/math/BigInteger.java(BigInteger(int,int,java.util.Random):
  3554. New constructor.
  3555. (min): Implemented.
  3556. (max): Implemented.
  3557. (modPow): Rewritten to not use the naive, slow, brute force approach.
  3558. (isProbablePrime): Implemented.
  3559. (testBit): Implemented.
  3560. (flipBit): Implemented.
  3561. (getLowestSetBit): Implemented.
  3562. 2000-02-16 Anthony Green <green@redhat.com>
  3563. * configure.host: Use the same options for i386 and i486 as we do
  3564. for i586 and i686.
  3565. 2000-02-12 Tom Tromey <tromey@cygnus.com>
  3566. * java/io/File.java (createTempFile): Use low bits from counter,
  3567. not high bits.
  3568. Fri Feb 11 19:48:08 2000 Anthony Green <green@cygnus.com>
  3569. * THANKS: More thanks.
  3570. 2000-02-11 Tom Tromey <tromey@cygnus.com>
  3571. * interpret.cc (continue1): Use STOREA, not STOREI, to implement
  3572. astore instruction. From Hans Boehm.
  3573. 2000-02-11 Warren Levy <warrenl@cygnus.com>
  3574. * java/math/BigInteger.java(BigInteger(String, int)): New constructor.
  3575. (BigInteger(String)): New constructor.
  3576. (not): Rewritten using version from Kawa's BitOps class.
  3577. (valueOf): New private methods from Kawa's BitOps class.
  3578. (swappedOp): ditto.
  3579. (bitOp): ditto.
  3580. (setBitOp): ditto.
  3581. (and): Implemented.
  3582. (or): Implemented.
  3583. (xor): Implemented.
  3584. (andNot): Implemented.
  3585. (clearBit): Implemented.
  3586. (setBit): Implemented.
  3587. (bitCount): Implemented.
  3588. (toByteArray): Implemented.
  3589. 2000-02-11 Tom Tromey <tromey@cygnus.com>
  3590. * java/io/File.java (nextValue): Now synchronized.
  3591. 2000-02-10 Tom Tromey <tromey@cygnus.com>
  3592. * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
  3593. * java/io/FileDescriptor.java (EXCL): New static field.
  3594. * java/io/File.java (tmpdir): New static field.
  3595. (createTempFile): New method.
  3596. (nextValue): New method.
  3597. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir
  3598. property.
  3599. * include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.
  3600. (jboolean): Declare as an attributed int, not a bool.
  3601. (_Jv_func): Declare differently for C.
  3602. * gnu/gcj/jni/natNativeThread.cc: New file.
  3603. * gnu/gcj/jni/NativeThread.java: New file.
  3604. * java/lang/Thread.java (data): Now a RawData.
  3605. * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv):
  3606. Declare.
  3607. * Makefile.in: Rebuilt.
  3608. * Makefile.am (java/lang/Thread.h): New target.
  3609. (ordinary_java_source_files): Added NativeThread.java.
  3610. (nat_source_files): Added natNativeThread.cc.
  3611. * java/lang/natThread.cc: Include <jni.h>
  3612. (struct natThread): Added `jni_env' field.
  3613. (_Jv_GetCurrentJNIEnv): New function.
  3614. (_Jv_SetCurrentJNIEnv): Likewise.
  3615. (initialize_native): Initialize jni_env.
  3616. Include RawData.h.
  3617. * jni.cc (ThreadGroupClass): New define.
  3618. (_Jv_JNI_InvokeFunctions): New structure.
  3619. (JNI_GetCreatedJavaVMs): New function.
  3620. (the_vm): New global.
  3621. (JNI_GetDefaultJavaVMInitArgs): New function.
  3622. Include NativeThread.h.
  3623. (NativeThreadClass): New define.
  3624. (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1.
  3625. (_Jv_JNI_DestroyJavaVM): New function.
  3626. (_Jv_JNI_AttachCurrentThread): New function.
  3627. (_Jv_JNI_DetachCurrentThread): New function.
  3628. (_Jv_JNI_GetEnv): New function.
  3629. (JNI_CreateJavaVM): New function.
  3630. (_Jv_JNI_GetJavaVM): New function.
  3631. (_Jv_JNIFunctions): Added entry for GetJavaVM.
  3632. * include/jni.h (JavaVMAttachArgs): New structure.
  3633. (JNI_EDETACHED): New define.
  3634. (JNI_EVERSION): Likewise.
  3635. (JavaVM): Define properly.
  3636. (struct JNIInvokeInterface): New structure.
  3637. (class _Jv_JavaVM): New class.
  3638. (JNI_OnLoad, JNI_OnUnload): Declare.
  3639. (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
  3640. JNI_GetCreatedJavaVMs): Declare.
  3641. (JavaVMInitArgs): New typedef.
  3642. (JavaVMOption): Likewise.
  3643. (JNI_ERR): New define.
  3644. (JNI_OK): Likewise.
  3645. 2000-02-10 Andrew Haley <aph@cygnus.com>
  3646. * interpret.cc: Don't include fdlibm.h.
  3647. Replace #if with #ifdef throughout.
  3648. Declare extern __ieee754_fmod.
  3649. (continue1): Remove op_getfield, op_getstatic, op_putfield,
  3650. op_putstatic insns.
  3651. * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer.
  3652. Search class hierarchy for superclass vtable.
  3653. * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall
  3654. off the end of a pointer list.
  3655. * java/lang/natThread.cc (stop): Don't abort, throw an exception
  3656. instead.
  3657. (suspend): Ditto.
  3658. 2000-02-09 Tom Tromey <tromey@cygnus.com>
  3659. * java/lang/natRuntime.cc (_load): Call add_library.
  3660. (loadLibraryInternal): Likewise.
  3661. * gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call
  3662. iconv_close when handle is not NULL. Thanks to Andrew Haley.
  3663. (Output_iconv::finalize): Likewise.
  3664. 2000-02-08 Tom Tromey <tromey@cygnus.com>
  3665. * java/util/Properties.java (setProperty): New method.
  3666. (store): New method.
  3667. 2000-02-07 Tom Tromey <tromey@cygnus.com>
  3668. * java/lang/Runtime.java (_load): Declare.
  3669. (load, loadLibrary): Wrote in terms of _load.
  3670. * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in
  3671. library.
  3672. (loadLibrary): Likewise.
  3673. Include <jni.h>.
  3674. (_load): New method.
  3675. (loadLibrary, load): Removed.
  3676. * jni.cc (ThrowableClass): New define.
  3677. (_Jv_JNI_Throw): Check argument.
  3678. (_Jv_JNI_ThrowNew): Likewise.
  3679. (wrap_value): Don't wrap object if it is NULL.
  3680. (_Jv_JNI_DefineClass): Use wrap_value.
  3681. (_Jv_JNI_FindClass): Likewise.
  3682. (_Jv_JNI_GetSuperclass): Likewise.
  3683. (_Jv_JNI_ExceptionOccurred): Likewise.
  3684. (_Jv_JNI_AllocObject): Likewise.
  3685. (_Jv_JNI_GetObjectClass): Likewise.
  3686. (_Jv_JNI_NewString): Likewise.
  3687. (_Jv_JNI_NewStringUTF): Likewise.
  3688. (_Jv_JNI_NewObjectArray): Likewise.
  3689. (_Jv_JNI_GetObjectArrayElement): Likewise.
  3690. (_Jv_JNI_NewPrimitiveArray): Likewise.
  3691. (_Jv_JNI_ToReflectedField): Likewise.
  3692. (_Jv_JNI_ToReflectedMethod): Likewise.
  3693. (_Jv_JNI_AllocObject): Check argument.
  3694. (_Jv_JNI_NewObjectV): Likewise.
  3695. (_Jv_JNI_NewObject): Likewise.
  3696. (_Jv_JNI_NewObjectA): Likewise.
  3697. (_Jv_JNI_GetObjectClass): Likewise.
  3698. (_Jv_JNI_GetField): Likewise.
  3699. (_Jv_JNI_SetField): Likewise.
  3700. * interpret.cc (PUSHL): Don't use expression statement.
  3701. (PUSHD): Likewise.
  3702. (LOADL): Likewise.
  3703. (STOREL): Likewise.
  3704. * jni.cc (add_char): Conditional on INTERPRETER.
  3705. (mangled_name): Likewise.
  3706. (call): Likewise.
  3707. * include/java-interp.h (class _Jv_MethodBase): Conditional on
  3708. INTERPRETER.
  3709. (class _Jv_JNIMethod): Likewise.
  3710. 2000-02-04 Warren Levy <warrenl@cygnus.com>
  3711. * Makefile.am: Added MPN.java and BigInteger.java.
  3712. * Makefile.in: Rebuilt.
  3713. * gnu/gcj/math/MPN.java: New file. From Kawa by Per Bothner
  3714. <per@bothner.com>.
  3715. * java/math/BigInteger.java: New file. Based primarily on
  3716. Kawa's IntNum.java by Per Bothner <per@bothner.com>.
  3717. 2000-02-04 Tom Tromey <tromey@cygnus.com>
  3718. * defineclass.cc (handleMethodsBegin): Allocate _Jv_MethodBase
  3719. pointers.
  3720. (handleMethodsEnd): Fixed error messages. Create a _Jv_JNIMethod
  3721. if the method is native.
  3722. * resolve.cc (ncode): Don't handle native methods.
  3723. (_Jv_JNIMethod::ncode): New method.
  3724. (_Jv_PrepareClass): Handle native methods.
  3725. * jni.cc (call): Renamed from _Jv_JNI_conversion_call.
  3726. Include AbstractMethodError.h.
  3727. (add_char): New function.
  3728. (mangled_name): Likewise.
  3729. * include/java-interp.h (class _Jv_JNIMethod): New class.
  3730. (class _Jv_MethodBase): New class.
  3731. (class _Jv_InterpMethod): Derive from _Jv_MethodBase.
  3732. (_Jv_InterpClass): Changed `interpreted_methods' field to type
  3733. `_Jv_MethodBase'.
  3734. * include/jvm.h (_Jv_FindSymbolInExecutable): Declare.
  3735. * java/lang/natRuntime.cc (libraries_size, libraries_count,
  3736. libraries): New globals.
  3737. (add_library): New function.
  3738. (_Jv_FindSymbolInExecutable): New function.
  3739. * java/lang/natClassLoader.cc (initiated_classes, loaded_classes):
  3740. Now static.
  3741. 2000-02-04 Andrew Haley <aph@cygnus.com>
  3742. * java/lang/Throwable.java (CPlusPlusDemangler): New class.
  3743. (printStackTrace): Use a CPlusPlusDemangler to demangle names.
  3744. * java/lang/natThrowable.cc (printRawStackTrace): Rename
  3745. printStackTrace to printRawStackTrace.
  3746. 2000-02-03 Tom Tromey <tromey@cygnus.com>
  3747. * java/util/Calendar.java (toString): New method.
  3748. * java/util/SimpleTimeZone.java (clone): New method.
  3749. (toString): New method.
  3750. * java/util/TimeZone.java (clone): New method.
  3751. * java/text/SimpleDateFormat.java (clone): New method.
  3752. * java/text/NumberFormat.java (clone): New method.
  3753. (equals): New method.
  3754. * java/text/Format.java (clone): New method.
  3755. * java/text/DateFormatSymbols.java (DateFormatSymbols): New
  3756. constructor.
  3757. (clone): New method.
  3758. * java/text/DateFormat.java (clone): New method.
  3759. * java/text/Collator.java (clone): New method.
  3760. 2000-02-03 Tom Tromey <tromey@cygnus.com>
  3761. * java/io/PipedOutputStream.java (write(byte[], int, int)): New
  3762. method.
  3763. 2000-02-01 Tom Tromey <tromey@cygnus.com>
  3764. * include/java-interp.h (_Jv_JNI_conversion_call): Declare.
  3765. * resolve.cc (ncode): Use _Jv_JNI_conversion_call when
  3766. constructing the closure if the function is native.
  3767. * jni.cc (_Jv_JNI_conversion_call): Now returns `void'. No longer
  3768. a template function, #if'd out, or static.
  3769. Include <java-interp.h>.
  3770. * include/jni.h (class _Jv_JNIEnv): Corrected calls using `...'.
  3771. * include/jni.h (class _Jv_JNIEnv): Added all C++ inline methods.
  3772. * jni.cc (_Jv_JNI_PopLocalFrame): Leave loop when `n == NULL'.
  3773. (_Jv_JNI_conversion_call): _Jv_JNI_PopLocalFrame will never leave
  3774. `locals == NULL'.
  3775. (wrap_value): New function.
  3776. (_Jv_JNI_CallAnyMethodV): Use it.
  3777. (_Jv_JNI_CallAnyMethodA): Likewise.
  3778. (_Jv_JNI_GetField): Use wrap_value; removed specialized version.
  3779. (_Jv_JNI_GetStaticField): Likewise.
  3780. * jni.cc (_Jv_JNI_GetField): Specialize for jobject.
  3781. (_Jv_JNI_GetStaticField): Likewise.
  3782. 2000-01-31 Tom Tromey <tromey@cygnus.com>
  3783. * prims.cc (_Jv_MallocUnchecked): New function.
  3784. (main_init): Call _Jv_JNI_Init.
  3785. * include/jvm.h (_Jv_MallocUnchecked): Declare.
  3786. (_Jv_JNI_Init): Declare.
  3787. * jni.cc: Include Hashtable.h, OutOfMemoryError.h, Integer.h,
  3788. <string.h>.
  3789. (_Jv_JNI_NewGlobalRef): New function.
  3790. (_Jv_JNI_DeleteGlobalRef): New function.
  3791. (_Jv_JNI_DeleteLocalRef): New function.
  3792. (_Jv_JNI_conversion_call): Initialize and clear local reference
  3793. frame.
  3794. (_Jv_JNI_NewLocalRef): New function.
  3795. (struct _Jv_JNI_LocalFrame): New structure.
  3796. (_Jv_JNI_PushLocalFrame): New function.
  3797. (_Jv_JNI_EnsureLocalCapacity): New function.
  3798. (FRAME_SIZE): New define.
  3799. (_Jv_JNI_GetStringChars): Mark string, not characters.
  3800. (_Jv_JNI_ReleaseStringChars): Unmark string, not characters.
  3801. (_Jv_JNI_GetPrimitiveArrayElements): Mark array, not elements.
  3802. (_Jv_JNI_ReleasePrimitiveArrayElements): Unmark array, not
  3803. elements.
  3804. (_Jv_JNI_DefineClass): Make return value a local ref.
  3805. (_Jv_JNI_FindClass): Likewise.
  3806. (_Jv_JNI_GetSuperclass): Likewise.
  3807. (_Jv_JNI_ExceptionOccurred): Likewise.
  3808. (_Jv_JNI_AllocObject): Likewise.
  3809. (_Jv_JNI_GetObjectClass): Likewise.
  3810. (_Jv_JNI_CallAnyMethodV): Likewise.
  3811. (_Jv_JNI_NewString): Likewise.
  3812. (_Jv_JNI_NewStringUTF): Likewise.
  3813. (_Jv_JNI_NewObjectArray): Likewise.
  3814. (_Jv_JNI_GetObjectArrayElement): Likewise.
  3815. (_Jv_JNI_ToReflectedField): Likewise.
  3816. (_Jv_JNI_ToReflectedMethod): Likewise.
  3817. (_Jv_JNIFunctions): Updated table for new functions.
  3818. (_Jv_JNI_Init): New function.
  3819. (mark_for_gc): Wrote.
  3820. (unmark_for_gc): Wrote.
  3821. * include/jni.h (struct JNINativeInterface): Removed name from
  3822. PopLocalFrame parameter.
  3823. (class _Jv_JNIEnv): Added `locals' field.
  3824. Mon Jan 31 00:43:15 2000 Anthony Green <green@redhat.com>
  3825. * gnu/gcj/convert/natIconv.cc (read): Minor fixes.
  3826. (write): Ditto.
  3827. 2000-01-30 Tom Tromey <tromey@cygnus.com>
  3828. * include/config.h.in: Rebuilt.
  3829. * acconfig.h (HAVE_ICONV): Define.
  3830. * configure: Rebuilt.
  3831. * configure.in: Check for `iconv' function.
  3832. * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
  3833. no specific encoder exists.
  3834. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
  3835. no specific encoder exists.
  3836. * Makefile.in: Rebuilt.
  3837. * Makefile.am (convert_source_files): Mention Input_iconv.java and
  3838. Output_iconv.java.
  3839. (nat_source_files): Added natIconv.cc.
  3840. * gnu/gcj/convert/natIconv.cc: New file.
  3841. * gnu/gcj/convert/Input_iconv.java: New file.
  3842. * gnu/gcj/convert/Output_iconv.java: New file.
  3843. 2000-01-28 Tom Tromey <tromey@cygnus.com>
  3844. * Makefile.in: Rebuilt.
  3845. * Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.
  3846. 2000-01-26 Tom Tromey <tromey@cygnus.com>
  3847. * gcj/method.h (JvNumMethods): Moved from Class.h.
  3848. (JvGetFirstMethod): Likewise.
  3849. * java/lang/Class.h (Object): Updated decl of
  3850. _Jv_JNI_ToReflectedField.
  3851. (Object): Added _Jv_JNI_ToReflectedMethod as a friend.
  3852. * Makefile.in: Rebuilt.
  3853. * Makefile.am (java/lang/reflect/Field.h): Added `jboolean'
  3854. argument of _Jv_JNI_ToReflectedField.
  3855. (java/lang/reflect/Constructor.h): Added _Jv_JNI_ToReflectedMethod
  3856. as a friend.
  3857. (java/lang/reflect/Method.h): Likewise.
  3858. * include/jni.h (class _Jv_JNIEnv): Added `klass' member. Use
  3859. __GCJ_JNI_IMPL__.
  3860. (jweak): New typedef.
  3861. (struct JNINativeInterface): Correctly declare remaining entries.
  3862. * jni.cc: Include Class.h, ClassLoader.h.
  3863. (_Jv_JNI_FindClass): New function.
  3864. (_Jv_JNI_DefineClass): New function.
  3865. (_Jv_JNI_conversion_call): New function.
  3866. (_Jv_JNI_FindClass): Use current class loader to find class.
  3867. (_Jv_JNI_ExceptionCheck): New function.
  3868. (_Jv_JNI_FromReflectedField): Now static.
  3869. (MethodClass): New define.
  3870. (_Jv_JNI_FromReflectedMethod): New function.
  3871. (_Jv_JNI_ToReflectedMethod): Likewise.
  3872. Include Method.h.
  3873. (_Jv_JNI_IsAssignableFrom): Renamed.
  3874. (_Jv_JNI_GetStringRegion): New function.
  3875. Include StringIndexOutOfBoundsException.h.
  3876. (_Jv_JNI_GetStringUTFRegion): New function.
  3877. (_Jv_JNIFunctions): Updated for new functions.
  3878. (_Jv_JNI_GetPrimitiveArrayCritical): New function
  3879. (_Jv_JNI_ReleasePrimitiveArrayCritical): Likewise.
  3880. (_Jv_JNI_GetStringCritical): New function.
  3881. (_Jv_JNI_ReleaseStringCritical): Likewise.
  3882. (get_throwable): Removed.
  3883. (GCJ_JV_JNIENV_FRIEND): Removed.
  3884. (__GCJ_JNI_IMPL__): Define.
  3885. Include method.h.
  3886. * resolve.cc (get_ffi_type_from_signature): Handle case where
  3887. boolean is an int.
  3888. Tue Jan 25 08:51:16 2000 Tom Tromey <tromey@ferrule.cygnus.com>
  3889. * interpret.cc (run): Don't call println.
  3890. Don't include PrintStream.h.
  3891. * gcj/field.h (struct _Jv_Field): Use "jshort" as type for
  3892. nameIndex. Use "jint" as type for boffset.
  3893. * java/lang/Class.h (struct _Jv_Method): Made accflags a
  3894. _Jv_ushort.
  3895. (Class): Likewise. Also changed type of method_count,
  3896. vtable_method_count, size_in_bytes, field_count,
  3897. static_field_count, interface_count.
  3898. * gcj/array.h (__JArray): Made `length' a const jsize, not an
  3899. int.
  3900. 2000-01-21 Tom Tromey <tromey@cygnus.com>
  3901. * java/lang/reflect/natConstructor.cc (newInstance): Use
  3902. _Jv_CallAnyMethodA.
  3903. * include/jvm.h: Declare _Jv_CallAnyMethodA.
  3904. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Renamed
  3905. from _Jv_CallNonvirtualMethodA. Changed interface; overloaded.
  3906. Include <jni.h>.
  3907. (COPY): Removed.
  3908. (invoke): Use _Jv_CallAnyMethodA.
  3909. (VAL): Redefined.
  3910. * java/lang/Class.h (Class): Declare JvGetFirstStaticField,
  3911. JvNumStaticFields, JvNumMethods, and JvGetFirstMethod as friend
  3912. functions.
  3913. (struct _Jv_Method): Added getNextMethod method.
  3914. (JvNumMethods): New function.
  3915. (JvGetFirstMethod): Likewise.
  3916. * gcj/field.h (JvGetFirstStaticField): New function.
  3917. (JvNumStaticFields): Likewise.
  3918. (getNextField): Renamed from getNextInstanceField.
  3919. (struct _Jv_Field): New method getClass.
  3920. * jni.cc: Wrote many new functions.
  3921. * include/jni.h (JNI_TRUE): Define.
  3922. (JNI_FALSE): Likewise.
  3923. (jobject, jclass, jstring, jarray, jthrowable, jobjectArray,
  3924. jbyteArray, jshortArray, jintArray, jlongArray, jbooleanArray,
  3925. jcharArray, jfloatArray, jdoubleArray): New typedefs.
  3926. (jfieldID, jmethodID): Likewise.
  3927. (JNI_COMMIT, JNI_ABORT): New defines.
  3928. (JNINativeMethod): New struct.
  3929. (struct JNINativeInterface): Correctly declared more entries.
  3930. (class _Jv_JNIEnv): Added `ex' member.
  3931. (JNI_VERSION_1_1): New define.
  3932. (JNI_VERSION_1_2): Likewise.
  3933. * boehm.cc (_Jv_MarkObj): Use getNextField, not
  3934. getNextInstanceField.
  3935. 2000-01-20 Tom Tromey <tromey@cygnus.com>
  3936. * resolve.cc (StringClass): Removed.
  3937. * defineclass.cc (StringClass): Removed.
  3938. 2000-01-19 Bryce McKinlay <bryce@albatross.co.nz>
  3939. * NEWS: updated.
  3940. 2000-01-19 Tom Tromey <tromey@cygnus.com>
  3941. * interpret.cc (PC_REGISTER_ASM): Removed.
  3942. * java/lang/natThrowable.cc: Don't use `#pragma implementation'.
  3943. From Bryce McKinlay.
  3944. * All files: Updated copyright to reflect Cygnus purchase.
  3945. 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>
  3946. * configure: Rebuilt.
  3947. * configure.in: Recognize --disable-interpreter.
  3948. 2000-01-18 Andrew Haley <aph@cygnus.com>
  3949. * name-finder.cc (lookup): Check for dladdr function.
  3950. acconfig.h (HAVE_DLADDR): Add.
  3951. configure.in: Check for HAVE_DLADDR
  3952. configure: Rebuilt.
  3953. include/config.h.in: Rebuilt.
  3954. 2000-01-17 Andrew Haley <aph@cygnus.com>
  3955. * prims.cc (_Jv_RunMain): Set the name of this executable.
  3956. 2000-01-17 Tom Tromey <tromey@cygnus.com>
  3957. * java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
  3958. when backtrace can't be computed.
  3959. * configure: Rebuilt.
  3960. * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call.
  3961. * java/lang/Runtime.java (loadLibraryInternal): Declare.
  3962. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy.
  3963. (_Jv_FindClassInCache): Likewise.
  3964. (_Jv_FindClass): Don't conditionalize body on INTERPRETER.
  3965. (findSystemClass): Try to load class from compiled module.
  3966. Include Runtime.h.
  3967. * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename.
  3968. (loadLibrary): Likewise.
  3969. (lt_preloaded_symbols): Define.
  3970. (loadLibraryInternal): New method.
  3971. * include/config.h.in: Rebuilt.
  3972. * acconfig.h (USE_LTDL): Added.
  3973. * Makefile.am (SUBDIRS): Added $(DIRLTDL).
  3974. (INCLUDES): Added $(INCLTDL).
  3975. (libgcj_la_DEPENDENCIES): Added $(LIBLTDL).
  3976. (libgcj_la_LIBADD): Likewise.
  3977. * aclocal.m4, configure: Rebuilt.
  3978. * configure.in: Added libltdl support.
  3979. 2000-01-15 Tom Tromey <tromey@cygnus.com>
  3980. * prims.cc (_Jv_PrimClass): Use `JV_STATE_NOTHING', not `0'.
  3981. 2000-01-14 Andrew Haley <aph@cygnus.com>
  3982. * java/lang/natThrowable.cc: New file.
  3983. * java/lang/Throwable.java (fillInStackTrace): Make native.
  3984. (printStackTrace): Call native method to do this.
  3985. (Throwable): Call fillInStackTrace.
  3986. (stackTrace): New variable.
  3987. * include/jvm.h: Add _Jv_ThisExecutable functions.
  3988. * prims.cc: (_Jv_execName): New variable.
  3989. (catch_segv): Call fillInStackTrace.
  3990. (catch_fpe): Ditto.
  3991. (_Jv_ThisExecutable): New functions.
  3992. (JvRunMain): Set the name of this executable.
  3993. * Makefile.am: Add java/lang/natThrowable.cc.
  3994. Add name-finder.cc.
  3995. * Makefile.in: Rebuilt.
  3996. * acconfig.h: Add HAVE_PROC_SELF_EXE.
  3997. * configure.in: Force link with __frame_state_for in
  3998. FORCELIBGCCSPEC. Add new checks for backtrace.
  3999. * include/config.h.in: Rebuilt.
  4000. * name-finder.cc: New file.
  4001. * include/name-finder.h: New file.
  4002. 2000-01-16 Anthony Green <green@cygnus.com>
  4003. * java/lang/StringBuffer.java (StringBuffer): Don't special case
  4004. null argument.
  4005. 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
  4006. * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
  4007. 2000-01-13 Tom Tromey <tromey@cygnus.com>
  4008. * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
  4009. not system loader, as initiating loader.
  4010. 2000-01-11 Tom Tromey <tromey@cygnus.com>
  4011. * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
  4012. HP/UX. From David Scott Urban.
  4013. 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
  4014. * java/lang/natMath.cc (pow): Cast args to `double', not
  4015. `jdouble'.
  4016. (atan2): Likewise.
  4017. (IEEEremainder): Likewise.
  4018. * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
  4019. * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
  4020. 2000-01-09 Anthony Green <green@cygnus.com>
  4021. * java/lang/natString.cc (init): Test for overflow condition
  4022. during out of bounds check.
  4023. (getChars): Throw StringIndexOutOfBoundsException, not
  4024. ArrayIndexOutOfBoundsException.
  4025. (getBytes): Ditto.
  4026. (regionMatches): Obey case option during string comparison.
  4027. * configure.host (ligcj_interpreter): New variable. Enable
  4028. interpreter by default on IA-32.
  4029. * configure.in: Examine libgcj_interpreter.
  4030. * configure: Rebuilt.
  4031. 2000-01-07 Tom Tromey <tromey@cygnus.com>
  4032. * mauve-libgcj: Don't disable ClassTest.
  4033. * java/lang/natClass.cc (getClasses): Wrote.
  4034. 2000-01-06 Tom Tromey <tromey@cygnus.com>
  4035. * java/lang/natClass.cc (_getConstructors): Correctly check
  4036. whether method name is the init name.
  4037. (getMethod): Look at accflags on method in `klass', not `this'.
  4038. 2000-01-05 Tom Tromey <tromey@cygnus.com>
  4039. * java/lang/natClass.cc (getMethod): Compute offset relative to
  4040. `klass's methods table, not `this's table.
  4041. * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
  4042. In unwrapping/widening case, check whether `k' is null, not
  4043. whether it is primitive. Initialize `num' from `argelts', not
  4044. `paramelts'. Correct create and pass arguments to ffi_call.
  4045. Don't let presence of `this' argument affect index used to look in
  4046. argument arrays.
  4047. (COPY): Set appropriate element in `values' vector.
  4048. * java/lang/natClass.cc: Include <gcj/method.h>.
  4049. * java/lang/Class.h (_getMethods): Correctly declare as private,
  4050. not public.
  4051. * java/lang/Class.h (_getMethods): Declare.
  4052. * java/lang/Class.java (_getMethods): Declare.
  4053. * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
  4054. (getDeclaredClasses): Always return empty array.
  4055. (_getMethods): New method.
  4056. (getMethods): Wrote.
  4057. (getDeclaredMethod): Return `rmethod'.
  4058. (finit_name): New global.
  4059. (getDeclaredMethods): Check for finit_name.
  4060. (_getMethods): Likewise.
  4061. (getMethod): Only return public methods.
  4062. * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
  4063. jboolean and select correct ffi type on that basis.
  4064. (_Jv_CallNonvirtualMethodA): Handle `void' return type.
  4065. Constructor call always has `void' return type.
  4066. 2000-01-04 Tom Tromey <tromey@cygnus.com>
  4067. * java/lang/Class.h (getSignature): Updated.
  4068. * java/lang/Class.java (getSignature): Updated.
  4069. * java/lang/natClass.cc (getSignature): Added `is_constructor'
  4070. argument.
  4071. (getConstructor): Ensure constructor is public.
  4072. (_getConstructors): Check for public-ness of constructor when
  4073. `declared' is false, not when it is true.
  4074. 2000-01-04 Warren Levy <warrenl@cygnus.com>
  4075. * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
  4076. comment.
  4077. (receive): Set the sender's address in the DatagramPacket.
  4078. 2000-01-04 Tom Tromey <tromey@cygnus.com>
  4079. * java/lang/reflect/natConstructor.cc (newInstance): Pass
  4080. declaring class as return_type argument to
  4081. _Jv_CallNonvirtualMethodA.
  4082. * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
  4083. constructor case, create object and use it as `this' argument.
  4084. * java/lang/Class.h (_getConstructors): Declare.
  4085. (_getFields): Declare.
  4086. * java/lang/Class.java (getConstructors): Wrote.
  4087. (_getConstructors): New native method.
  4088. (getDeclaredConstructors): Wrote.
  4089. (_getFields): Declare new native method.
  4090. * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
  4091. incorrect comment.
  4092. (getMethod): Work correctly when class is primitive.
  4093. (getDeclaredMethods): Likewise. Compute offset using `method',
  4094. not `mptr'.
  4095. (getDeclaredMethod): Likewise.
  4096. (getConstructor): Wrote.
  4097. (ConstructorClass): New define.
  4098. (getDeclaredConstructor): Wrote.
  4099. (_getConstructors): New method.
  4100. (_getFields): New method.
  4101. (getFields): Wrote.
  4102. * Makefile.in: Rebuilt.
  4103. * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
  4104. * prims.cc: Remove `#pragma implementation'.
  4105. * gcj/array.h: Remove `#pragma interface'.
  4106. * prims.cc (_Jv_equaln): New function.
  4107. * java/lang/Class.java (getSignature): Declare.
  4108. * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
  4109. * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
  4110. resolve.cc.
  4111. (getSignature): New method.
  4112. (getDeclaredMethod): Wrote.
  4113. (getMethod): Wrote.
  4114. Include StringBuffer.h.
  4115. * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
  4116. as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
  4117. a friend.
  4118. (getSignature): Declare.
  4119. * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
  4120. (_Jv_equaln): Declare.
  4121. (_Jv_CallNonvirtualMethodA): Declare.
  4122. * Makefile.in: Rebuilt.
  4123. * Makefile.am (nat_source_files): Added natConstructor.cc.
  4124. (java/lang/reflect/Constructor.h): New target.
  4125. * java/lang/reflect/natConstructor.cc: New file.
  4126. * java/lang/reflect/Constructor.java (newInstance): Now native.
  4127. (declaringClass): Renamed from decl_class.
  4128. (offset): Renamed from index.
  4129. (getType): New native method.
  4130. (getModifiers): Now native.
  4131. (getParameterTypes): Call getType if required.
  4132. (hashCode): Include hash code from declaring class.
  4133. (modifiers): Removed.
  4134. (toString): Call getType if required.
  4135. * gcj/method.h (_Jv_FromReflectedConstructor): New function.
  4136. * java/lang/reflect/natMethod.cc (hack_call): New method.
  4137. Removed `#if 0' around FFI code.
  4138. Include <gnu/gcj/RawData.h>.
  4139. (invoke): Use _Jv_CallNonvirtualMethodA. Throw
  4140. IllegalArgumentException when argument object and class disagree.
  4141. (_Jv_GetTypesFromSignature): New function.
  4142. (getType): Use it.
  4143. (ObjectClass): New define.
  4144. (_Jv_CallNonvirtualMethodA): New function.
  4145. * java/lang/reflect/Method.java (hack_trampoline): New method.
  4146. (hack_call): New native method.