ChangeLog-1999 244 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109
  1. 1999-12-21 Per Bothner <per@bothner.com>
  2. * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
  3. offset in new Method.
  4. 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
  5. * java/lang/natObject.cc (notify): Throw message with
  6. IllegalMonitorStateException.
  7. (notifyAll): Ditto.
  8. (wait): Ditto.
  9. * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
  10. (isInterrupted_): New function, which does clear interrupt_flag.
  11. (interrupt): Use `isInterrupted_'.
  12. * java/lang/natThread.cc (interrupt): Add comment.
  13. (join): Set `prev' in joiner loop.
  14. Change various calls to `isInterrupted' to use `isInterrupted_'.
  15. * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
  16. on linux. Set result to 0 on an interrupt. Test interrupted status
  17. of java Thread object directly.
  18. FLAG_INTERRUPTED: removed.
  19. (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
  20. (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
  21. (_Jv_InitThreads): Don't block SIGINT.
  22. (_Jv_ThreadWait): Don't configure SIGINT handler.
  23. 1999-12-21 Tom Tromey <tromey@cygnus.com>
  24. * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
  25. 1999-12-20 Tom Tromey <tromey@cygnus.com>
  26. * java/lang/reflect/Modifier.java (STRICT): New constant.
  27. (isStrict): New method.
  28. (toString): Added `strict'.
  29. 1999-12-23 Anthony Green <green@cygnus.com>
  30. * configure: Rebuilt.
  31. * configure.in (LIBDATASTARTSPEC): Force data_start in with
  32. linker trick.
  33. 1999-12-19 Anthony Green <green@cygnus.com>
  34. * libgcjdata.c: New file.
  35. * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
  36. * configure: Rebuilt.
  37. * configure.in (LIBDATASTARTSPEC): Force data with a known name
  38. into the program.
  39. * Makefile.in: Rebuilt.
  40. * Makefile.am: Build libgcjdata.a.
  41. * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
  42. * configure: Rebuilt.
  43. * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
  44. into every program.
  45. 1999-12-17 Tom Tromey <tromey@cygnus.com>
  46. * java/lang/reflect/Method.java (toString): Call getType if
  47. required. Partial fix for PR libgcj/111. From Per Bothner.
  48. * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
  49. 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
  50. * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
  51. null String constructor parameter.
  52. * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
  53. for exception messages.
  54. BooleanClass: declare.
  55. (setOption): Use BooleanClass instead of Class.forName() for
  56. instanceof test.
  57. (bind): Cast 4th parameter of setsockopt to `char *' for
  58. compatibility with older Solaris headers.
  59. * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
  60. sprintf calls for exception messages.
  61. BooleanClass, IntegerClass: declare.
  62. (setOption): Use BooleanClass and IntegerClass, not Class.forName()
  63. for instanceof test.
  64. 1999-12-15 Tom Tromey <tromey@cygnus.com>
  65. * java/lang/natSystem.cc (init_properties): Don't set user.name or
  66. user.home if NO_GETUID defined. Only set user.dir if getcwd
  67. exists.
  68. * include/config.h.in: Rebuilt.
  69. * acconfig.h (NO_GETUID): New define.
  70. * configure.in: Rebuilt.
  71. * configure.in: Define NO_GETUID in cross case. Check for getcwd
  72. in native case.
  73. 1999-12-08 Tom Tromey <tromey@cygnus.com>
  74. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
  75. where no recursive mutexes exist. Fixes PR libgcj/117.
  76. 1999-12-05 Anthony Green <green@cygnus.com>
  77. * include/jvm.h: Declare many functions with
  78. __attribute__((__malloc__)).
  79. * gcj/javaprims.h: Ditto.
  80. Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
  81. * THANKS: Giving credit where credit is due.
  82. 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
  83. * java/net/ServerSocket.java (ServerSocket): Bind to any interface
  84. if bindAddr is null.
  85. * java/lang/natString.cc (equalsIgnoreCase): return false if
  86. anotherString is null.
  87. * java/lang/Boolean.java (valueOf): return FALSE if argument is
  88. null.
  89. 1999-11-30 Tom Tromey <tromey@cygnus.com>
  90. * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
  91. mutex to initialize. Initialize `count' if required.
  92. Fixes PR libgcj/98.
  93. 1999-11-27 Per Bothner <per@bothner.com>
  94. * exception.cc: Remove prototype declarations for malloc and free.
  95. These clash with recent versions of glibc, which specifies `throws ()'
  96. when __cplusplus is defined. Instead, #include <stdlib.h>.
  97. 1999-11-24 Tom Tromey <tromey@cygnus.com>
  98. * prims.cc (_Jv_NewObjectArray): Use
  99. _Jv_GetArrayElementFromElementType.
  100. (_Jv_NewPrimArray): Likewise.
  101. * java/lang/natObject.cc (clone): Use
  102. _Jv_GetArrayElementFromElementType instead of sizeof.
  103. * java/lang/natSystem.cc (arraycopy): Use
  104. _Jv_GetArrayElementFromElementType.
  105. * include/jvm.h (_Jv_GetArrayElementFromElementType): New
  106. function.
  107. 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
  108. * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
  109. Exception messages. PR java.net/57.
  110. (bind): set SO_REUSEADDR before bind.
  111. * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
  112. overruns. PR java.net/57.
  113. 1999-11-19 Tom Tromey <tromey@cygnus.com>
  114. * Makefile.am (DIVIDESPEC): Removed.
  115. (EXCEPTIONSPEC): Removed.
  116. 1999-11-19 Andrew Haley <aph@cygnus.com>
  117. * Makefile.am (JCFLAGS): Add -L$(here)
  118. (JC1FLAGS): Ditto.
  119. * Makefile.in: Rebuild.
  120. 1999-11-18 Tom Tromey <tromey@cygnus.com>
  121. * java/lang/natDouble.cc: Include <config.h>.
  122. * include/config.h.in: Rebuilt.
  123. * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
  124. * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
  125. targets.
  126. * configure: Rebuilt.
  127. * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
  128. requested by configure.host. Don't put `-D' option into
  129. libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
  130. * configure: Rebuilt.
  131. * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
  132. sjlj-exceptions.
  133. 1999-11-18 Andrew Haley <aph@cygnus.com>
  134. * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
  135. (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
  136. (JC1FLAGS): Ditto.
  137. * Makefile.in: Rebuild
  138. * acconfig.h: remove SJLJ_EXCEPTIONS
  139. * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
  140. Do not AC_DEFINE SJLJ_EXCEPTIONS.
  141. * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
  142. * gcj/Makefile.in, include/Makefile.in: rebuild.
  143. * include/config.h.in: remove SJLJ_EXCEPTIONS.
  144. 1999-11-18 Andrew Haley <aph@cygnus.com>
  145. * gij.cc (main): Rename label to prevent conflict.
  146. * exception.cc (_Jv_type_matcher): Don't check the table if we're
  147. using setjmp/longjmp exceptions: there isn't one.
  148. 1999-11-17 Andrew Haley <aph@cygnus.com>
  149. * exception.cc (_Jv_type_matcher): Ignore null exception tables.
  150. (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
  151. (__sjthrow): Add declaration.
  152. * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
  153. (JC1FLAGS): Ditto
  154. (AM_CFLAGS): Ditto
  155. (AM_CXXFLAGS): Ditto
  156. * Makefile.in: Rebuild
  157. * acconfig.h: Add SJLJ_EXCEPTIONS
  158. * configure.in: Add SJLJ_EXCEPTIONS
  159. * configure: Rebuild.
  160. * gcj/Makefile.in: Rebuild.
  161. * gcj/cni.h: Add support for sjlj-exceptions.
  162. * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
  163. * include/Makefile.in: Rebuild.
  164. * include/default-signal.h: Add support for sjlj-exceptions.
  165. 1999-11-18 Tom Tromey <tromey@cygnus.com>
  166. * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
  167. * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
  168. minus 1.
  169. (method_cache): Made larger.
  170. 1999-11-11 Tom Tromey <tromey@cygnus.com>
  171. * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
  172. initializing mutex. Initialize `count' when required.
  173. 1999-11-07 Anthony Green <green@trip.cygnus.com>
  174. * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
  175. data correctly.
  176. 1999-11-05 Tom Tromey <tromey@cygnus.com>
  177. * java/lang/natThread.cc (destroy): Removed incorrect comment.
  178. 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
  179. * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
  180. * prims.cc (parse_heap_size): Use end, not spec. Use 1024
  181. multipler for `k'.
  182. 1999-11-05 Tom Tromey <tromey@cygnus.com>
  183. * java/lang/natThread.cc (stop): Removed argument name.
  184. * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
  185. `private'; now has default access.
  186. * Makefile.in: Rebuilt.
  187. * Makefile.am (java/lang/ThreadGroup.h): Removed.
  188. 1999-11-04 Tom Tromey <tromey@cygnus.com>
  189. * java/lang/natClass.cc (method_cache_count): Removed.
  190. (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
  191. (_Jv_AddMethodToCache): Don't loop.
  192. * configure.in: Removed `qt' threads case.
  193. * include/quick-threads.h: Removed.
  194. * quick-threads.cc: Removed.
  195. * include/quick-threads.h (_Jv_ThreadCancel): Removed.
  196. (_Jv_ThreadDestroy): Likewise.
  197. * include/no-threads.h (_Jv_ThreadCancel): Removed.
  198. (_Jv_ThreadDestroy): Likewise.
  199. * include/posix-threads.h (struct _Jv_Thread_t): Removed
  200. `exception' field.
  201. (_Jv_ThreadCancel): Removed decl.
  202. (_Jv_ThreadDestroy): Removed.
  203. * posix-threads.cc (_Jv_ThreadCancel): Removed.
  204. (throw_cleanup): Removed.
  205. (really_start): Don't push or pop cleanup.
  206. (_Jv_ThreadInitData): Don't initialize `exception' field.
  207. * java/lang/Thread.java (stop): Officially unimplemented.
  208. * java/lang/natThread.cc (stop): Officially unimplemented.
  209. 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
  210. * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
  211. instead.
  212. 1999-11-02 Tom Tromey <tromey@cygnus.com>
  213. * boehm.cc: Don't include boehm-config.h.
  214. 1999-11-01 Tom Tromey <tromey@cygnus.com>
  215. * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
  216. (sum_blocks): Removed.
  217. (_Jv_GCFreeMemory): Use GC_get_free_bytes.
  218. 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
  219. * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
  220. before "super".
  221. * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
  222. * java/io/InputStreamReader (InputStreamReader): ditto.
  223. 1999-10-22 Tom Tromey <tromey@cygnus.com>
  224. * Makefile.in: Rebuilt.
  225. * Makefile.am (java/lang/ClassLoader.h): New target.
  226. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
  227. to `redirect'.
  228. * include/java-props.h (_Jv_Compiler_Properties): Changed
  229. declaration.
  230. * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
  231. * include/jvm.h (_Jv_GCSetInitialHeapSize,
  232. _Jv_GCSetMaximumHeapSize): Declare.
  233. (JvRunMain, _Jv_RunMain): Declare.
  234. (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
  235. * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
  236. (_Jv_GCSetMaximumHeapSize): Likewise.
  237. * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
  238. (_Jv_GCSetMaximumHeapSize): Likewise.
  239. * prims.cc (parse_heap_size): New function.
  240. (_Jv_SetInitialHeapSize): Likewise.
  241. (_Jv_SetMaximumHeapSize): Likewise.
  242. (_Jv_Compiler_Properties): New global.
  243. * gij.cc (help): New function.
  244. (version): Likewise.
  245. (heap_size): Likewise.
  246. (heap_max_size): Likewise.
  247. (main): Parse arguments. Set _Jv_Compiler_Properties.
  248. Include <config.h>, <java-props.h>.
  249. (_Jv_Compiler_Properties): Removed.
  250. 1999-10-18 Tom Tromey <tromey@cygnus.com>
  251. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
  252. method.
  253. (redirect): New static field.
  254. * java/lang/ClassLoader.java (getSystemClassLoader): Now
  255. native
  256. (getVMClassLoader0): Removed.
  257. * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
  258. (redirect): Removed.
  259. (getSystemClassLoader): Implemented.
  260. 1999-10-16 Anthony Green <green@cygnus.com>
  261. * java/lang/ClassLoader.java (getSystemResource): Use
  262. getSystemClassLoader instead of ClassLoader.system.
  263. (getSystemResourceAsStream): Ditto.
  264. * java/lang/natClassLoader.cc (redirect): Make static and
  265. remove #ifdef INTERPRETER so it is always defined.
  266. (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
  267. returns a VMClassLoader.
  268. * java/util/ResourceBundle.java (trySomeGetBundle): Create a
  269. PropertyResourceBundle if a properties file is found before a
  270. ResourceBundle class.
  271. 1999-10-15 Tom Tromey <tromey@cygnus.com>
  272. * gij.cc (main): Formatting fixes.
  273. (_Jv_Compiler_Properties): Define.
  274. * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
  275. declare.
  276. (init_properties): Set properites from _Jv_Compiler_Properties.
  277. * include/java-props.h (_Jv_Compiler_Properties,
  278. _Jv_Environment_Properties): Declare.
  279. * include/java-props.h: Added copyright.
  280. 1999-10-13 Anthony Green <green@cygnus.com>
  281. * libtool-version: Catch up by incrementing current.
  282. * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
  283. * configure, include/config.h.in: Rebuilt.
  284. * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
  285. * configure.in: Added --disable-getenv-properties and new define
  286. `DISABLE_GETENV_PROPERTIES'.
  287. * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
  288. (next_property_key): New function.
  289. (next_property_value): New function.
  290. (process_gcj_properties): New function.
  291. (JvRunMain): Call process_gcj_properties.
  292. (_JvRunMain): Ditto.
  293. * java/lang/natSystem.cc (init_properties): Set properties defined
  294. in GCJ_PROPERTIES.
  295. * include/java-props.h: New file.
  296. * java/lang/natSystem.cc (init_properties): Add new properties to
  297. conform with Java Product Versioning Specification.
  298. 1999-10-12 Tom Tromey <tromey@cygnus.com>
  299. * configure: Rebuilt.
  300. * configure.in: Fixed test for --disable-java-net.
  301. 1999-10-06 Tom Tromey <tromey@cygnus.com>
  302. * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
  303. when building Canadian cross.
  304. (NATIVE): Don't define when cross-compiling.
  305. 1999-10-04 Tom Tromey <tromey@cygnus.com>
  306. * java/net/natPlainSocketImpl.cc: Don't include headers if
  307. java.net is disabled.
  308. * Makefile.in: Rebuilt.
  309. * Makefile.am (ZINCS): Removed. This is defined in configure.in
  310. when needed, and must be left empty when not needed.
  311. 1999-10-01 Anthony Green <green@cygnus.com>
  312. * THANKS: Refreshed from htdocs version.
  313. 1999-10-01 Steve Chamberlain <sac@pobox.com>
  314. * Makefile.in: Rebuilt.
  315. * Makefile.am (ZINCS): Define
  316. * configure: Rebuilt.
  317. * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
  318. * java/lang/ieeefp.h: Add definitions for picoJava.
  319. 1999-10-01 Tom Tromey <tromey@cygnus.com>
  320. * configure: Rebuilt.
  321. * configure.in: Set classpath when invoking gcj. Use changequote
  322. around sed invocation.
  323. * java/net/natPlainSocketImpl.cc: Stub native functions if
  324. DISABLE_JAVA_NET is defined.
  325. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
  326. typo in exception string.
  327. (getTimeToLive): Likewise.
  328. Stub native functions if DISABLE_JAVA_NET is defined.
  329. * java/net/natInetAddress.cc: Stub native functions if
  330. DISABLE_JAVA_NET is defined.
  331. * configure.host: Disable java.net for mips-tx39.
  332. * configure, include/config.h.in: Rebuilt.
  333. * acconfig.h (DISABLE_JAVA_NET): Undefine.
  334. * configure.in: Added --disable-java-net and new define
  335. `DISABLE_JAVA_NET'.
  336. 1999-09-30 Tom Tromey <tromey@cygnus.com>
  337. * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
  338. 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
  339. * README: New file.
  340. 1999-09-28 Tom Tromey <tromey@cygnus.com>
  341. * configure: Rebuilt.
  342. * configure.in (PROCESS): In POSIX case, only set if not already
  343. set.
  344. * configure.host (PROCESS): Set in mips-tx39 case.
  345. * aclocal.m4, configure: Rebuilt.
  346. * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
  347. appropriate AC_PROG_ symbol.
  348. 1999-09-24 Tom Tromey <tromey@cygnus.com>
  349. * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
  350. `void *'.
  351. (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
  352. Fix for PR java.util/47:
  353. * configure, include/config.h: Rebuilt.
  354. * configure.in: Don't look for ctime or ctime_r.
  355. * Makefile.in: Rebuilt.
  356. * Makefile.am (nat_source_files): Don't mention natDate.cc.
  357. * java/util/natDate.cc: Removed.
  358. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
  359. static fields.
  360. (getAvailableIDs): Rewrote.
  361. (getTimeZone): Rewrote.
  362. * java/util/Date.java (toGMTString): New method.
  363. (toLocaleString): New method.
  364. (toString): Rewrote.
  365. 1999-09-23 Tom Tromey <tromey@cygnus.com>
  366. * configure: Rebuilt.
  367. * configure.in: Print message when checking to see if gcj can
  368. handle -fuse-divide-subroutine.
  369. * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
  370. dead code.
  371. * java/lang/FirstThread.java (run0): Renamed to `run'.
  372. (run): Removed.
  373. * prims.cc (main_init): New function.
  374. (JvRunMain): Call it.
  375. (_Jv_RunMain): Likewise.
  376. Include <signal.h>.
  377. (main_init): Ignore SIGPIPE. Fixes PR 51.
  378. 1999-09-22 Tom Tromey <tromey@cygnus.com>
  379. * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
  380. 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
  381. * java/text/MessageFormat.java (MessageFormat(String)): Set the
  382. default locale.
  383. * java/text/NumberFormat.java: Check that object is a Number. If
  384. not, throw IllegialArgumentException.
  385. 1999-09-21 Tom Tromey <tromey@cygnus.com>
  386. * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
  387. both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
  388. * include/posix-threads.h (_Jv_MutexDestroy): Use
  389. _Jv_PthreadGetMutex.
  390. (_Jv_MutexLock): Likewise.
  391. (_Jv_MutexUnlock): Likewise.
  392. * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
  393. previous patch; it too was incorrect.
  394. * java/io/PrintStream.java (PrintStream): Likewise.
  395. * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
  396. refer to `this' before calling superclass constructor.
  397. * java/io/PrintStream.java (PrintStream): Don't refer to `this'
  398. before calling superclass constructor.
  399. 1999-09-20 Tom Tromey <tromey@cygnus.com>
  400. * configure: Rebuilt.
  401. * configure.in: Send output of `-fuse-divide-subroutine' test
  402. compilation to /dev/null.
  403. 1999-09-14 Tom Tromey <tromey@cygnus.com>
  404. * include/java-insns.h: Turned constants into an enum. Added
  405. multiple-inclusion protection.
  406. 1999-09-10 Tom Tromey <tromey@cygnus.com>
  407. * configure: Rebuilt.
  408. * configure.in: Build include/Makefile.
  409. * Makefile.in: Rebuilt.
  410. * Makefile.am (SUBDIRS): Added gcj and include.
  411. (install-data-local): New target.
  412. (extra_headers): New macro.
  413. * include/Makefile.in: New file.
  414. * include/Makefile.am: New file.
  415. * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
  416. * java/lang/reflect/natField.cc: Don't include gcj/field.h or
  417. gcj/cni.h.
  418. * boehm.cc: Don't include java-threads.h or gcj/field.h.
  419. * resolve.cc: Include config.h.
  420. * defineclass.cc: Include config.h.
  421. * include/java-interp.h: Don't include config.h.
  422. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
  423. cni.h.
  424. * gcj/javaprims.h: Regenerated namespace decls.
  425. * classes.pl (scan): Don't put `;' after closing brace.
  426. * Makefile.in: Rebuilt.
  427. * Makefile.am (INCLUDES): Added -I for top_srcdir.
  428. * configure.in: Create gcj/Makefile.
  429. * gcj/Makefile.in: New file.
  430. * gcj/Makefile.am: New file.
  431. * java/lang/Object.h: Don't include any other headers.
  432. * gcj/array.h: Renamed from include/java-array.h.
  433. * gcj/field.h: Renamed from include/java-field.h.
  434. * gcj/method.h: Renamed from include/java-method.h.
  435. * gcj/cni.h, gcj/javaprims.h: Moved from include/.
  436. Updated all files to reflect new include structure.
  437. 1999-09-09 Tom Tromey <tromey@cygnus.com>
  438. * configure: Rebuilt.
  439. * configure.in: Fixed typo; variable is THREADSPEC and not
  440. THREADSPECS.
  441. 1999-09-08 Tom Tromey <tromey@cygnus.com>
  442. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
  443. previous change and implemented a correct test in the __m_count
  444. case.
  445. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
  446. in __m_count case.
  447. 1999-09-07 Tom Tromey <tromey@cygnus.com>
  448. * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
  449. code and don't set errno.
  450. * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
  451. not `r'. Changed `done_sleeping' to a `bool'.
  452. 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
  453. * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
  454. Added FLAG_INTERRUPTED to indicate that a thread was interrupted
  455. by another thread, rather than by the GC.
  456. (_Jv_CondWait): Prevent premature thread wakeup by GC.
  457. (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
  458. * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
  459. function.
  460. 1999-09-03 Tom Tromey <tromey@cygnus.com>
  461. * configure: Rebuilt.
  462. * configure.in: Check for fstat function.
  463. * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
  464. FIONREAD fails.
  465. 1999-09-02 Tom Tromey <tromey@cygnus.com>
  466. * include/java-array.h (jobjectArrayjchar): Removed unused
  467. declaration.
  468. * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
  469. _Jv_PrepareCompiledClass while holding class mutex.
  470. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  471. * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
  472. (_Jv_PthreadGetMutex): Use it.
  473. (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
  474. (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
  475. (_Jv_MutexLock): Likewise.
  476. (_Jv_MutexUnlock): Likewise.
  477. * include/config.h.in: Rebuilt.
  478. * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
  479. PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
  480. * configure: Rebuilt.
  481. * libgcj.spec.in: Don't mention INTERPSPEC.
  482. * configure.in (INTERPSPEC): Removed.
  483. Only run pthreads-related checks when using POSIX threads. Check
  484. for m_count and __m_count in mutex structure.
  485. 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
  486. * java/lang/natClass.cc: Fixed notification of threads
  487. when class initialization is complete.
  488. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  489. * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
  490. * resolve.cc: Removed constants defined by
  491. java.lang.reflect.Modifier.
  492. Include <java/lang/reflect/Modifier.h>.
  493. (_Jv_ResolvePoolEntry): Use values from Modifier.
  494. (_Jv_DetermineVTableIndex): Likewise.
  495. (_Jv_PrepareClass): Likewise.
  496. (ncode): Likewise.
  497. * defineclass.cc (_Jv_ClassReader): Removed constants defined by
  498. java.lang.reflect.Modifier.
  499. Include <java/lang/reflect/Modifier.h>.
  500. (checkExtends): Use values from Modifier.
  501. (checkImplements): Likewise.
  502. (handleField): Likewise.
  503. (handleConstantValueAttribute): Likewise.
  504. (handleFieldsEnd): Likewise.
  505. (handleMethod ): Likewise.
  506. (handleMethodsEnd): Likewise.
  507. (handleClassBegin): Likewise.
  508. * interpret.cc: Removed constants defined by
  509. java.lang.reflect.Modifier.
  510. (continue1): Use values from Modifier.
  511. * java/lang/natClassLoader.cc: Removed constants defined by
  512. java.lang.reflect.Modifier.
  513. * java/lang/natClassLoader.cc (_Jv_NewClass): Use
  514. JV_STATE_NOTHING, not `0'.
  515. * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
  516. * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
  517. * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
  518. except on Linux.
  519. (_Jv_PthreadGetMutex): New function.
  520. (_Jv_PthreadCheckMonitor): Use it.
  521. (_Jv_MutexInit): Likewise. ALso, initialize `count'.
  522. (_Jv_MutexLock): Update `count'.
  523. (_Jv_MutexUnlock): Likewise.
  524. (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
  525. appropriate.
  526. 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
  527. * Makefile.am (.java.lo): Add rule.
  528. * Makefile.in: Rebuilt.
  529. 1999-09-01 Tom Tromey <tromey@cygnus.com>
  530. * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
  531. * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
  532. function.
  533. (_Jv_CondNotify): Use it.
  534. (_Jv_CondNotifyAll): Likewise.
  535. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
  536. 1999-08-31 Tom Tromey <tromey@cygnus.com>
  537. * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
  538. declaration.
  539. 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
  540. * posix-threads.cc: Include <errno.h>.
  541. 1999-08-23 Tom Tromey <tromey@cygnus.com>
  542. * boehm.cc: Undefine TRUE and FALSE.
  543. * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
  544. 1999-08-21 Tom Tromey <tromey@cygnus.com>
  545. * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
  546. result. PR 40.
  547. 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
  548. * configure.in: Check for in_addr_t in netinet/in.h too. Check
  549. for ip_mreq too.
  550. * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
  551. (HAVE_STRUCT_IP_MREQ): Added.
  552. * configure, include/config.h.in: Rebuilt.
  553. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
  554. if needed.
  555. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
  556. Disable if ip_mreq is not available.
  557. * configure.in: Check types ssize_t and in_addr_t.
  558. * acconfig.h: Undefine them.
  559. * configure, include/config.h.in: Rebuilt.
  560. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
  561. function that detects the signature of getpwuid_r.
  562. (init_properties): Use it.
  563. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
  564. (toString): Use it.
  565. 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
  566. * interpret.cc (continue1): Implement explicit dispatch table.
  567. insn_target: Explicit interpreter switch table.
  568. SAVE_PC: New macro, moves pc saving code into instructions that
  569. require so.
  570. NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
  571. PC_REGISTER_ASM: New macro.
  572. INLINE_SWITCH: New macro. Constrols dispatching strategy.
  573. opcode: Remove local variable.
  574. {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
  575. (POKEI): Use _Jv_word.
  576. (iinc): Use _Jv_word.
  577. (dupx): Change reference argument (sp) to pointer.
  578. (jvdump): Remove
  579. * interpret.cc: Remove instruction timing instrumentation.
  580. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
  581. comment. Don't use _Jv_ClassNameSamePackage.
  582. * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
  583. URLPathEntry, CacheEntry}: Removed.
  584. * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
  585. package.
  586. (.java.lo): Rule removed.
  587. * Makefile.in: Rebuilt.
  588. 1999-08-19 Tom Tromey <tromey@cygnus.com>
  589. * java/lang/natThread.cc (class locker): New class.
  590. (join): Use a locker around _Jv_CondWait.
  591. (sleep): Likewise.
  592. 1999-08-18 Tom Tromey <tromey@cygnus.com>
  593. * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
  594. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
  595. 1999-08-18 Tom Tromey <tromey@cygnus.com>
  596. * include/javaprims.h ("Java"): Regenerated namespace decls.
  597. 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
  598. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
  599. from _Jv_InternClassStrings.
  600. * prims.cc (_Jv_RunMain): New function.
  601. (JvRunMain): Remove gij-support.
  602. * gij.cc (main): Use _Jv_RunMain.
  603. * java/util/zip/ZipFile.java: Call readDirectory in constructor.
  604. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
  605. argument in temp variable.
  606. (continue1): For all op_x2y insns, use temp variable for
  607. intermediate value. Also remove some comments.
  608. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
  609. (forName): Don't call _Jv_InitClass.
  610. * java/lang/Class.java (getResource,getResourceAsStream): Implement.
  611. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
  612. * java/util/jar/JarInputStream.java: New file.
  613. * java/util/jar/JarEntry.java: New file.
  614. * java/util/jar/JarFile.java: New file.
  615. * java/net/URLClassLoader.java: New file.
  616. * java/net/JarURLConnection.java: New file.
  617. * gnu/gcj/protocol/jar/Handler.java: New file.
  618. * gnu/gcj/protocol/jar/Connection.java: New file.
  619. * java/security/SecureClassLoader.java: New file.
  620. * java/lang/ClassLoader.java (parent): New variable.
  621. (ClassLoader (ClassLoader)): new constructor.
  622. (findClass): New method.
  623. (loadClass): Add default 1.2 implementation.
  624. (getSystemResourceAsBytes, getResourceAsBytes): Removed.
  625. (readfully): Removed.
  626. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
  627. (findSystemClass): New method.
  628. (VMClassLoader): Constructor rewritten.
  629. (init): New method.
  630. All other methods removed.
  631. * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
  632. to gnu::gcj::runtime::VMClassLoader.
  633. (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
  634. class entries.
  635. (VMClassLoader::findSystemClass): renamed from findBootClass.
  636. * Makefile.am: Add new files.
  637. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
  638. * Makefile.in: Rebuilt.
  639. 1999-08-17 Tom Tromey <tromey@cygnus.com>
  640. * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
  641. nano.
  642. * include/quick-threads.h (_Jv_CondWait): Don't round to 0
  643. inappropriately.
  644. 1999-08-16 Tom Tromey <tromey@cygnus.com>
  645. * configure: Rebuilt.
  646. * configure.in: Set DIVIDESPEC to empty string if compiler does
  647. not support -fuse-divide-subroutine.
  648. 1999-08-14 Per Bothner <per@bothner.com>
  649. * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
  650. * java/lang/natClass.cc (initializeClass): Likewise.
  651. * java/lang/ClassLoader.java (resolveClass0): New static method.
  652. (resolveClass): Call resolveClass0.
  653. (findSystemClass): No longer static.
  654. 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
  655. * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
  656. 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
  657. * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
  658. as long.
  659. Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  660. * Makefile: Rebuilt.
  661. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
  662. builds.
  663. * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
  664. present.
  665. * configure: Rebuilt.
  666. * configure.in: Properly align --help output, fix capitalization
  667. and punctuation.
  668. * acinclude.m4: Likewise.
  669. 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
  670. * include/javaprims.h (_Jv_word, _Jv_word2): New types.
  671. * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
  672. (_Jv_callInterpretedMethod): Unused. Remove.
  673. (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
  674. Use ffi_raw.
  675. * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
  676. (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
  677. * boehm.cc (_Jv_MarkObj): Use _Jv_word.
  678. * interpret.cc: use _Jv_word.
  679. * defineclass.cc: use_Jv_word.
  680. * resolve.cc: Use _Jv_word.
  681. (_Jv_ResolvePoolEntry): Return _Jv_word.
  682. * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
  683. * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
  684. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
  685. Change comment.
  686. Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
  687. * configure: Rebuilt.
  688. * configure.in (sched_yield): Try librt first, then libposix4.
  689. Add -lrt, -lposix4 to THREADSPEC.
  690. 1999-08-08 Anthony Green <green@cygnus.com>
  691. * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
  692. 1999-08-08 Anthony Green <green@cygnus.com>
  693. * defineclass.cc (_Jv_VerifyClassName): Verify array names
  694. correctly.
  695. 1999-08-08 Anthony Green <green@cygnus.com>
  696. * gij.cc: New file.
  697. * include/config.h.in: Rebuilt.
  698. * acconfig.h: Add INTERPRETER.
  699. * Makefile.in: Rebuilt.
  700. * Makefile.am (libffi_files): Identify the libffi object files for
  701. inclusion in libgcj.
  702. (LIBFFIINCS): Define.
  703. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
  704. Dummy definition for configurations without an interpreter.
  705. * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
  706. java::lang::Boolean constructor.
  707. * include/java-interp.h: Always include java-cpool.h.
  708. * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
  709. when INTERPRETER not defined.
  710. * java/lang/Class.h (finalize): Define.
  711. * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
  712. IOException from File.getCanonicalPath.
  713. (getStream): Likewise.
  714. * NEWS: More news.
  715. * THANKS: More thanks.
  716. 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
  717. * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
  718. jchar type.
  719. (_Jv_PrepareClass): Allow non-abstract classes to
  720. have abstract subclasses.
  721. (_Jv_ResolvePoolEntry): Revert subclass check for protected
  722. fields and methods.
  723. * interpret.cc (continue1/perform_invoke): Don't sign extend
  724. uint16 return val.
  725. (continue1/lshl,lshr): Push long, not int.
  726. (continue1/ulshr): Use UINT64, not long long.
  727. * defineclass.cc (handleFieldsEnd): Handle case when all fields
  728. are static.
  729. * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
  730. * java/lang/FirstThread.java (run): Add top-level exception
  731. handler.
  732. (run0): Renamed from run.
  733. 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
  734. * configure.in (--with-interpreter): Added.
  735. * include/config.h.in (INTERPRETER): Added.
  736. * java/lang/ClassLoader.java: File replaced.
  737. * java/lang/VMClassLoader.java: New file.
  738. * java/lang/natClassLoader.cc: New file.
  739. * gnu/gcj/runtime/MethodInvocation.java: New file.
  740. * gnu/gcj/util/path/SearchPath.java: New file.
  741. * gnu/gcj/util/path/PathEntry.java: New file.
  742. * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
  743. * gnu/gcj/util/path/ZipPathEntry.java: New file.
  744. * gnu/gcj/util/path/URLPathEntry.java: New file.
  745. * gnu/gcj/util/path/CacheEntry.java: New file.
  746. * include/java-interp.h: New file.
  747. * include/java-cpool.h: New file.
  748. * include/java-insns.h: New file.
  749. * defineclass.cc: New file.
  750. * interpret.cc: New file.
  751. * resolve.cc: New file.
  752. * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
  753. _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
  754. _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
  755. (finalize): New.
  756. (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
  757. STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
  758. prefix.
  759. (initializeClass): Use new JV_ prefixed names. Also, call
  760. ClassLoader::resolveClass instead of _Jv_ResolveClass.
  761. * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
  762. JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
  763. JV_STATE_LINKED): New.
  764. (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
  765. _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
  766. (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
  767. _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
  768. _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
  769. _Jv_InterpMethodInvocation): New friends for interpreter.
  770. (finalize): New.
  771. (CONSTANT_Class, CONSTANT_String, etc.): Moved to
  772. include/java-cpool.h and renamed with JV_ prefix.
  773. * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
  774. decls.
  775. (_Jv_UnregisterClass): New decl.
  776. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
  777. class loader argument.
  778. (_Jv_FindClass): Use class loader.
  779. * prims.cc (_Jv_makeUtf8Const): New function.
  780. (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
  781. (_Jv_NewPrimArray): Ditto.
  782. (_Jv_FindClassFromSignature): Ditto.
  783. * java/lang/reflect/natArray.cc (newInstance): Ditto.
  784. * java/lang/reflect/natMethod.cc (getType): Ditto.
  785. * include/java-field.h (_Jv_Field::isRef): Make robust for
  786. non-resolved contexts.
  787. * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
  788. Also, don't mark class->next field.
  789. * java/lang/VirtualMachineError.java: Added FIXME note.
  790. * configure.in (INTERPSPEC): New spec.
  791. * libgcj.spec.in: Added INTERPSPEC.
  792. * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
  793. gnu/gcj/runtime/MethodInvocation.
  794. (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
  795. (ordinary_java_source_files): Added above mentioned java classes.
  796. * configure: Rebuilt.
  797. * Makefile.in: Rebuilt.
  798. 1999-08-06 Tom Tromey <tromey@cygnus.com>
  799. * configure: Rebuilt.
  800. * configure.in: Look for sched_yield in -lrt.
  801. 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
  802. * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
  803. ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
  804. SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
  805. locales.
  806. (toString): Print correctly when `country' is empty.
  807. 1999-08-04 Per Bothner <per@bothner.com>
  808. * configure.in: Also do AC_SUBST for DIVIDESPEC.
  809. 1999-08-02 Tom Tromey <tromey@cygnus.com>
  810. * aclocal.m4, configure: Rebuilt for new libtool.
  811. 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
  812. * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
  813. * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
  814. * java/net/ServerSocket.java: Define ANY_IF.
  815. (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
  816. all network interfaces.
  817. * java/net/DatagramSocket.java (DatagramSocket): ditto.
  818. * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
  819. null.
  820. * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
  821. instead of null.
  822. * java/io/natFile.cc (performMkdir): Remove FIXME.
  823. * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
  824. 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
  825. * configure.in: Check for bstring.h.
  826. * configure, include/config.h.in: Rebuilt.
  827. * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
  828. * java/net/natPlainSocketImpl.cc: Likewise.
  829. 1999-07-31 Tom Tromey <tromey@cygnus.com>
  830. * NEWS: Likewise.
  831. * THANKS: New file.
  832. 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
  833. * configure.in: Check for struct hostent_data and need for
  834. -D_REENTRANT for gethostbyname_r declaration.
  835. * java/net/natInetAddress.cc: Define _REENTRANT if needed.
  836. (lookup): Use hostent_data for fixed_buffer.
  837. * configure, include/config.h.in: Rebuilt.
  838. 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
  839. * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
  840. available. Don't cast memmove args to (void*).
  841. * configure.in: Do not abort if memmove is not available.
  842. 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
  843. * java/lang/natString.cc (substring): optimize where substring is
  844. entire String.
  845. * java/io/File.java (getName): don't return separator with file name.
  846. * java/io/natFile.cc (attr): fix overflow.
  847. Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
  848. * mauve-libgcj: Disable Object Serialization tests.
  849. 1999-07-20 Warren Levy <warrenl@cygnus.com>
  850. * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
  851. Default to using PlainDatagramSocketImpl.
  852. * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
  853. 1999-07-19 Tom Tromey <tromey@cygnus.com>
  854. * include/stamp-h.in: New file.
  855. 1999-07-12 Tom Tromey <tromey@cygnus.com>
  856. * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
  857. _UINT32_T.
  858. 1999-07-07 Andrew Haley <aph@cygnus.com>
  859. * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
  860. bytes to make it point after the instruction where the trap
  861. occurred.
  862. (HANDLE_DIVIDE_OVERFLOW): Ditto.
  863. 1999-07-07 Tom Tromey <tromey@cygnus.com>
  864. * mauve-libgcj: Explicitly enable formerly disabled java.text
  865. tests.
  866. * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
  867. again.
  868. Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
  869. * java/net/URL.java (equals): Compare strings using String.equals.
  870. * java/net/URL.java (sameFile): Ditto.
  871. 1999-07-02 Warren Levy <warrenl@cygnus.com>
  872. * configure: Rebuilt.
  873. * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
  874. * include/config.h.in: Rebuilt.
  875. * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
  876. (mcastGrp): Updated FIXME comments.
  877. (setOption): Fixed typo.
  878. (getOption):Implemented IP_MULTICAST_IF.
  879. 1999-07-02 Warren Levy <warrenl@cygnus.com>
  880. * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
  881. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
  882. (getTimeToLive): Implemented.
  883. (setOption): Implemented IP_MULTICAST_IF.
  884. 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
  885. * java/lang/String.java (toString): Check for this == null and throw
  886. NullPointerException.
  887. 1999-07-01 Warren Levy <warrenl@cygnus.com>
  888. * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
  889. to count and revised comments to match.
  890. * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
  891. * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
  892. * gnu/gcj/convert/Input_SJIS.java (read): ditto.
  893. * gnu/gcj/convert/Input_UTF8.java (read): ditto.
  894. * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
  895. * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
  896. 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
  897. * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
  898. properly as count rather than outlength.
  899. * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
  900. output on overflow rather than buffer fill.
  901. * java/io/BufferedReader.java (fill): Don't clear out the buffer
  902. if markPos is 0 and there is still room in the buffer.
  903. 1999-07-01 Andrew Haley <aph@cygnus.com>
  904. * include/i386-signal.h: Replace sigaction () with __sigaction ().
  905. This is a workaround for a bug in glibc's pthreads package which
  906. doesn't deliver any sigcontext information to a signal handler.
  907. 1999-06-24 Tom Tromey <tromey@cygnus.com>
  908. * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
  909. * java/lang/fdlibm.h (HUGE): Conditionally define.
  910. Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
  911. * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
  912. * java/lang/e_log.c: Don't use __uint32_t.
  913. 1999-05-27 Eric Christopher <echristo@cygnus.com>
  914. * configure: Rebuilt
  915. * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
  916. * acconfig.h: Rebuilt
  917. * include/config.h.in: Rebuilt
  918. * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
  919. java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
  920. e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
  921. java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
  922. k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
  923. java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
  924. s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
  925. and namespace collision with __uint32_t
  926. 1999-06-23 Tom Tromey <tromey@cygnus.com>
  927. * java/util/zip/InflaterInputStream.java (read): Throw
  928. ZipException if inflater throws a DataFormatException.
  929. 1999-06-23 Warren Levy <warrenl@cygnus.com>
  930. * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
  931. * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
  932. * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
  933. is not final per JDK.
  934. * java/util/PropertyResourceBundle.java (handleGetObject): Method is
  935. public per JDK.
  936. * java/util/zip/DataFormatException.java: Class extends Exception.
  937. * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
  938. * java/util/zip/ZipEntry.java: Class implements ZipConstants.
  939. * java/util/zip/ZipInputStream.java: ditto.
  940. (closeEntry): Changed method name to match JDK spec.
  941. 1999-06-21 Tom Tromey <tromey@cygnus.com>
  942. * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
  943. From Jeff Sturm.
  944. * Makefile.in: Rebuilt.
  945. * Makefile.am (toolexeclibdir): Define as libdir when
  946. appropriate.
  947. * configure: Rebuilt.
  948. * configure.in (USE_LIBDIR): New conditional.
  949. 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
  950. * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
  951. hostname in returned InetAddress objects.
  952. (getLocalHostname): Fix typo.
  953. * java/net/InetAddress.java (getByName): Set hostname on return
  954. object.
  955. (getLocalHost): Call lookup directly to ensure that a fully-qualified
  956. name is returned.
  957. 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
  958. * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
  959. interfaces if host==NULL.
  960. (accept): Throw message with InterruptedIOException.
  961. (getOption): Cache localAddress.
  962. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
  963. 'address' for DatagramSocket.
  964. (setTimeToLive): Fix compiler warnings.
  965. (getOption): Cache localAddress.
  966. * java/net/Socket.java (getLocalAddress): Don't need local
  967. InetAddress object. Add FIXME comment about calling checkConnect().
  968. * java/net/ServerSocket.java (ServerSocket(int)): Initialize
  969. connection queue to 50 as per JDK 1.2 docs.
  970. (ServerSocket(int,int)): Listen on all network interfaces by
  971. default, per JDK 1.2 docs.
  972. * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
  973. Add localAddress caching.
  974. 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
  975. * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
  976. to JDK 1.2 docs.
  977. (write(byte[],int,int)): ditto.
  978. 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
  979. * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
  980. 1999-06-11 Warren Levy <warrenl@cygnus.com>
  981. * mauve-libgcj: Activated java.net Mauve tests.
  982. 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
  983. * java/net/natInetAddress.cc (aton): Fix typos.
  984. (lookup): Use a bigger buffer size for gethostbyname_r on all
  985. versions of glibc. Updated FIXME comment explaining this.
  986. Modified while loops to not set herr = ERANGE to work around glibc
  987. problems. Use user specified hostname in InetAddress result when
  988. available (consistent with JDK).
  989. 1999-06-10 Warren Levy <warrenl@cygnus.com>
  990. * java/io/FileDescriptor.java (FileDescriptor(String, int)):
  991. Throw FileNotFoundException instead of IOException.
  992. (open): ditto.
  993. * java/io/FileInputStream.java (FileInputStream): Doesn't throw
  994. IOException.
  995. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
  996. in static field name.
  997. * java/text/DecimalFormat.java: Throw IllegalArgumentException
  998. throughout rather than ParseException.
  999. 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
  1000. * java/lang/Runtime.java (exec): Convert prog name and arguments
  1001. to string array.
  1002. * java/lang/natPosixProcess.cc (startProcess): Fix typo in
  1003. environment array conversion. Preserve current environment if envp
  1004. not passed. Preserve PATH unless explicitly specified.
  1005. * java/io/DataInputStream.java (readLine): Fix case where '\r' is
  1006. followed by EOF. Set a flag when a line is terminated by '\r' and
  1007. ignore following '\n' if set.
  1008. 1999-06-02 Warren Levy <warrenl@cygnus.com>
  1009. * java/net/URL.java (URL(URL,String)): Initialize port to -1.
  1010. Ignore context if spec is an absolute URL. Fix braindead
  1011. string comparison.
  1012. (hashCode): Use JDK 1.2 style algorithm.
  1013. * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
  1014. context URL properly.
  1015. 1999-05-30 Anthony Green <green@cygnus.com>
  1016. * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
  1017. correctly. Clean up "/../" and "/./" path fragments.
  1018. 1999-05-28 Warren Levy <warrenl@cygnus.com>
  1019. * java/net/DatagramSocket.java (laddr): Removed.
  1020. (DatagramSocket): Removed attempts to get or set laddr if null.
  1021. (getLocalAddress): Reimplemented per spec.
  1022. * java/net/MulticastSocket.java (setTimeToLive): Throw exception
  1023. when ttl is 0.
  1024. (joinGroup): Throw NullPointerException if any argument is null.
  1025. (leaveGroup): ditto.
  1026. * java/net/PlainDatagramSocketImpl.java: Updated comments.
  1027. * java/net/PlainSocketImpl.java (timeout): Added.
  1028. (getInputStream): Added FIXME comment on how to support timeouts
  1029. for TCP.
  1030. * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
  1031. * java/net/Socket.java: Added FIXME comments to identify
  1032. conflicting specs between the JCL and JDK 1.2 documents.
  1033. * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
  1034. if host is null. Get localport value resolved by kernel if bind
  1035. lport is 0.
  1036. (receive): Implemented support for timeouts in UDP.
  1037. (setOption): Implemented based on natPlainSocketImpl version.
  1038. (getOption): ditto.
  1039. * java/net/natPlainSocketImpl.cc (bind): Get localport value
  1040. resolved by kernel if bind lport is 0.
  1041. (connect): Get localport value resolved by kernel if bind wasn't
  1042. done to set localport.
  1043. (accept): Implemented support for timeouts for ServerSocket.
  1044. (setOption): Save value for SO_TIMEOUT.
  1045. (getOption): Return timeout for SO_TIMEOUT.
  1046. 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
  1047. * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
  1048. * java/net/DatagramSocketImpl.java (getOption): Made abstract.
  1049. (setOption): Made abstract.
  1050. * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
  1051. to avoid cpp conflicts in native code.
  1052. * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
  1053. cpp conflicts in native code.
  1054. * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
  1055. * java/net/Socket.java (getLocalAddress): Implemented.
  1056. (setTcpNoDelay): Implemented.
  1057. (getTcpNoDelay): Implemented.
  1058. (setSoLinger): Implemented.
  1059. (getSoLinger): Implemented.
  1060. (getSoTimeout): Verify class type.
  1061. (setSendBufferSize): Implemented.
  1062. (getSendBufferSize): Implemented.
  1063. (setReceiveBufferSize): Implemented.
  1064. (getReceiveBufferSize): Implemented.
  1065. (toString): Prepended "Socket".
  1066. * java/net/SocketImpl.java (toString): Rewritten.
  1067. (getOption): Made abstract.
  1068. (setOption): Made abstract.
  1069. * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
  1070. (setOption): Implemented.
  1071. (getOption): Implemented.
  1072. 1999-05-26 Warren Levy <warrenl@cygnus.com>
  1073. * java/net/DatagramSocket.java (DatagramSocket): Get local host
  1074. address when null. Set SO_REUSEADDR for multicasts.
  1075. (getSoTimeout): Implemented.
  1076. (setSoTimeout): Implemented.
  1077. * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
  1078. * java/net/MulticastSocket.java (getInterface): Implemented.
  1079. (setInterface): Implemented.
  1080. (setTimeToLive): Check for invalid ttl.
  1081. (joinGroup): Verify multicast address and security.
  1082. (leaveGroup): Verify multicast address and security.
  1083. (send): Implemented.
  1084. * java/net/PlainDatagramSocketImpl.java (timeout): Added.
  1085. (iface): Added.
  1086. (ttl): Added.
  1087. (setOption): Added.
  1088. (getOption): Added.
  1089. (mcastGrp): Added.
  1090. (getTTL): Implemented as non-native.
  1091. (setTTL): ditto.
  1092. (join): ditto.
  1093. (leave): ditto.
  1094. * java/net/ServerSocket.java (setSoTimeout): Implemented.
  1095. (getSoTimeout): Implemented.
  1096. (setSocketFactory): Made synchronized.
  1097. * java/net/Socket.java (setSoTimeout): Implemented.
  1098. (getSoTimeout): Implemented.
  1099. (close): Made synchronized.
  1100. (setSocketImplFactory): Made synchronized.
  1101. * java/net/SocketImpl.java: Implement SocketOptions interface.
  1102. * java/net/natInetAddress.cc: Corrected module name at top of file.
  1103. * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
  1104. (bind): Added FIXME.
  1105. (peek): Implemented.
  1106. (setTTL): Removed.
  1107. (getTTL): Removed.
  1108. (join): Removed.
  1109. (leave): Removed.
  1110. (mcastGrp): Added.
  1111. (setOption): Implemented for SO_REUSEADDR.
  1112. (getOption): Implemented for SO_REUSEADDR.
  1113. 1999-05-24 Tom Tromey <tromey@cygnus.com>
  1114. * java/util/ResourceBundle.java (getBundle): Throw
  1115. NullPointerException if baseName is null.
  1116. 1999-05-22 Tom Tromey <tromey@cygnus.com>
  1117. * java/util/zip/ZipInputStream.java (fill): New method.
  1118. (compressed_len): New instance variable.
  1119. (getNextStream): Set it.
  1120. (read): Reset inflater on EOF. Only read via `super' if entry is
  1121. deflated.
  1122. (skip): Only skip via `super' if entry is deflated.
  1123. * java/util/zip/Deflater.java (last_input_count): Removed.
  1124. * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
  1125. is length 0.
  1126. (needsInput): Don't use last_input_count.
  1127. (setInput): Don't set last_input_count.
  1128. * java/util/zip/natInflater.cc (getRemaining): Return correct
  1129. result.
  1130. (inflate): Return 0 if input array is length 0.
  1131. (setInput): Don't set last_input_count.
  1132. * java/util/zip/Inflater.java (last_input_count): Removed.
  1133. 1999-05-21 Tom Tromey <tromey@cygnus.com>
  1134. * Makefile.in: Rebuilt.
  1135. * Makefile.am (INCLUDES): Added $(ZINCS).
  1136. * configure: Rebuilt.
  1137. * configure.in (ZINCS): New subst.
  1138. 1999-05-21 Andrew Haley <aph@cygnus.com>
  1139. * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
  1140. to signal options to allow the same exceptions to be rethrown
  1141. later.
  1142. 1999-05-20 Andrew Haley <aph@cygnus.com>
  1143. * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
  1144. added.
  1145. * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
  1146. (INIT_FPE): Exception string made more informative.
  1147. * include/sparc-signal.h (INIT_FPE): Exception string made more
  1148. informative.
  1149. * testsuite/libjava.lang/Divide_1.java: New file.
  1150. * testsuite/libjava.lang/Divide_1.out: New file.
  1151. 1999-05-19 Tom Tromey <tromey@cygnus.com>
  1152. * aclocal.m4, configure: Rebuilt.
  1153. * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
  1154. * java/util/zip/GZIPOutputStream.java (write(byte[])): New
  1155. method.
  1156. * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
  1157. Include <stdlib.h>.
  1158. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
  1159. Include <stdlib.h>.
  1160. (update): Fail in default case. Always initialize `strat'.
  1161. * mauve-libgcj: Enable java.util.zip.
  1162. 1999-05-18 Warren Levy <warrenl@cygnus.com>
  1163. * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
  1164. DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
  1165. PlainDatagramSocketImpl.java, and SocketOptions.java.
  1166. (nat_source_files): Added natPlainDatagramSocketImpl.cc.
  1167. * Makefile.in: Rebuilt.
  1168. * java/net/DatagramPacket.java: New file.
  1169. * java/net/DatagramSocket.java: New file.
  1170. * java/net/DatagramSocketImpl.java: New file.
  1171. * java/net/MulticastSocket.java: New file.
  1172. * java/net/PlainDatagramSocketImpl.java: New file.
  1173. * java/net/SocketOptions.java: New file.
  1174. * java/net/natPlainDatagramSocketImpl.cc: New file.
  1175. 1999-05-18 Tom Tromey <tromey@cygnus.com>
  1176. * java/util/zip/ZipOutputStream.java (level): Initial value is
  1177. Deflater.DEFAULT_COMPRESSION.
  1178. (close): New method.
  1179. (closeEntry): Likewise.
  1180. (finish): Likewise.
  1181. (put_version): Likewise.
  1182. (write_entry): Likewise.
  1183. (put2, put4): Now return `int'.
  1184. (comment): Default to empty string.
  1185. (bytes_written): New instance variable.
  1186. (chain): Likewise.
  1187. * java/util/zip/ZipEntry.java (setComment): Limit length of
  1188. comment string.
  1189. (setCrc): Check CRC validity.
  1190. (setExtra): Check argument validity.
  1191. (setMethod): Likewise.
  1192. (setSize): Likewise.
  1193. (ZipEntry): Likewise.
  1194. * include/javaprims.h: Updated namespace declarations.
  1195. * Makefile.in: Rebuilt.
  1196. * Makefile.am (ordinary_java_source_files): Mention new files.
  1197. (nat_source_files): Likewise.
  1198. * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
  1199. EOFException.
  1200. (read4): Likewise.
  1201. (getInputStream): Handle compressed entries.
  1202. * java/util/zip/GZIPOutputStream.java: New file.
  1203. * java/util/zip/GZIPInputStream.java: New file.
  1204. * java/util/zip/DataFormatException.java: New file.
  1205. * java/util/zip/CheckedInputStream.java: New file.
  1206. * java/util/zip/CheckedOutputStream.java: New file.
  1207. * java/util/zip/InflaterInputStream.java: Implemented.
  1208. * java/util/zip/natInflater.cc: New file.
  1209. * java/util/zip/Deflater.java: Implemented.
  1210. * java/util/zip/natDeflater.cc: New file.
  1211. * java/util/zip/DeflaterOutputStream.java: Implemented.
  1212. * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
  1213. ZipException, not IOException.
  1214. * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
  1215. not IOException.
  1216. 1999-05-17 Tom Tromey <tromey@cygnus.com>
  1217. * java/lang/natSystem.cc (init_properties): URL now points to
  1218. sourceware.
  1219. 1999-05-12 Per Bothner <bothner@cygnus.com>
  1220. * java/util/Calendar.java (set): First call computeFields if needed.
  1221. * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
  1222. 1999-05-12 Tom Tromey <tromey@cygnus.com>
  1223. * configure: Rebuilt.
  1224. * configure.in: Look for -ldl when using the Boehm collector.
  1225. Look for sched_yield in -lposix4.
  1226. 1999-05-12 Per Bothner <bothner@cygnus.com>
  1227. * java/io/File.java (mkdirs): Handle a null parent directory.
  1228. 1999-05-12 Tom Tromey <tromey@cygnus.com>
  1229. * include/javaprims.h: Updated namespace declarations.
  1230. * classes.pl (scan): Uniquify class list.
  1231. * Makefile.in, configure: Rebuilt.
  1232. * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
  1233. (built_java_source_files): New macro.
  1234. (nat_headers): Added built_java_source_files.
  1235. (javao_files): Likewise.
  1236. (EXTRA_libgcj_la_SOURCES): Likewise.
  1237. (libgcj.zip): Create built class files.
  1238. ($(built_java_source_files:.java=.class)): New target.
  1239. (jv_convert_LDADD): Added -L$(here)/.libs.
  1240. * configure.in: Create links for ConcreteProcess.java and
  1241. natConcreteProcess.cc.
  1242. * java/lang/Runtime.java (exec): Create a ConcreteProcess.
  1243. * java/lang/natEcosProcess.cc: New file.
  1244. * java/lang/EcosProcess.java: New file.
  1245. * java/lang/PosixProcess.java: New file.
  1246. * java/lang/natPosixProcess.cc: New file.
  1247. 1999-05-12 Warren Levy <warrenl@cygnus.com>
  1248. * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
  1249. * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
  1250. * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
  1251. (connect): Throw ConnectException.
  1252. 1999-05-11 Tom Tromey <tromey@cygnus.com>
  1253. * Makefile.in: Rebuilt.
  1254. * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
  1255. * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
  1256. our libraries.
  1257. * Makefile.in: Rebuilt.
  1258. * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
  1259. and it causes problems with libtool.
  1260. * Makefile.in, configure: Rebuilt.
  1261. * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
  1262. (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
  1263. (jv_convert_DEPENDENCIES): Added ZDEPS.
  1264. * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
  1265. directory.
  1266. (THREADSPEC): Added `-L' to point to qthreads build directory.
  1267. (ZLIBS): New subst.
  1268. (ZDEPS): New subst.
  1269. * configure, Makefile.in: Rebuilt.
  1270. * Makefile.am (toolexeclib_DATA): New macro.
  1271. * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
  1272. Recognize --with-system-zlib.
  1273. (GCSPEC): New subst.
  1274. (THREADSPEC): New subst.
  1275. (SYSTEMSPEC): New subst.
  1276. (ZLIBSPEC): New subst.
  1277. * libgcj.spec.in: New file.
  1278. 1999-05-10 Tom Tromey <tromey@cygnus.com>
  1279. * java/io/InputStreamReader.java (read): If length is 0, return
  1280. 0. Reset `wpos' and `wcount' when buffer has been filled and
  1281. emptied.
  1282. * java/util/Properties.java (save): Removed `FIXME' comment.
  1283. (load): Invalid characters in \u now treated as terminators.
  1284. Make sure to append character resulting from `\' handling.
  1285. Cast to `char' when appending to key or value.
  1286. (skip_ws): Inverted test for whitespace.
  1287. * java/io/RandomAccessFile.java (RandomAccessFile): Removed
  1288. `FIXME' comment.
  1289. (readLine): Likewise.
  1290. (readFully): Implemented.
  1291. * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
  1292. * java/awt/natToolkit.cc: Added copyright header.
  1293. * java/util/zip/InflaterInputStream.java: Added copyright header.
  1294. * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
  1295. comment.
  1296. * java/io/SequenceInputStream.java (SequenceInputStream): Removed
  1297. `FIXME' comment.
  1298. (getNextStream): Likewise.
  1299. * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
  1300. locale.toString().
  1301. (getBundle): Don't explicitly throw null pointer exception.
  1302. * gnu/gcj/RawData.java: Added copyright header.
  1303. * include/jni.h (_Jv_va_list): Always define as va_list.
  1304. 1999-05-9 Anthony Green <green@cygnus.com>
  1305. * java/text/DateFormat.java (computeInstance): Separate time
  1306. and date styles.
  1307. (getDateTimeInstance): Ditto.
  1308. (getDateTimeInstance(int,int)): New method.
  1309. * Makefile.in: Rebuilt.
  1310. * Makefile.am (ordinary_java_source_files): Add new classes.
  1311. * java/util/PropertyResourceBundle.java: New file.
  1312. * gnu/gcj/util/EnumerationChain.java: New file.
  1313. 1999-05-07 Tom Tromey <tromey@cygnus.com>
  1314. * acconfig.h (GCJVERSION): New undef.
  1315. * java/lang/natSystem.cc (init_properties): Define java.version,
  1316. java.class.version, os.name, os.arch, os.version.
  1317. Include <sys/utsname.h> if required.
  1318. * configure: Rebuilt.
  1319. * configure.in: Compute and define GCJVERSION.
  1320. * java/lang/natSystem.cc (default_file_encoding): Now static.
  1321. * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
  1322. * libtool-version: New file.
  1323. * Makefile.in: Rebuilt.
  1324. * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
  1325. -release.
  1326. * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
  1327. Comment out FieldPosition, ParsePosition, and SimpleDateFormat
  1328. again (oops).
  1329. * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
  1330. (we pick those up already).
  1331. 1999-05-05 Per Bothner <bothner@cygnus.com>
  1332. * java/awt/*: Check a bunch of classes, a few complete, but mostly
  1333. stub classes. (This is enough to get Kawa to compile against libgcj.)
  1334. * gnu/gcj/RawData.java: New class.
  1335. * doc/cni.sgml: Document RawData.
  1336. * java/util/zip/InflaterInputStream.java: New stub class.
  1337. * java/util/zip/ZipInputStream.java: New class. Partly works.
  1338. * java/util/zip/ZipConstants.java: Add two (internal) constants.
  1339. * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
  1340. * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
  1341. * java/util/zip/ZipOutputStream.java: Start implementation.
  1342. * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
  1343. (default_file_encoding): New global, initial value is above macro.
  1344. (init_properties): Default file.encoding to default_file_encoding.
  1345. * Makefile.am: Add new classes.
  1346. 1999-05-05 Tom Tromey <tromey@cygnus.com>
  1347. * Makefile.in: Rebuilt.
  1348. * Makefile.am (CLEANFILES): Don't mention $(class_files).
  1349. (clean-local): New target
  1350. * java/lang/natRuntime.cc: Include <ltdl.h> if required.
  1351. (load, loadLibrary): Now native.
  1352. (init): New method.
  1353. * java/lang/Runtime.java (load, loadLibrary): Now native.
  1354. (init): New native method.
  1355. (Runtime): Use init.
  1356. * prims.cc: Include <ltdl.h> if required.
  1357. (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
  1358. 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
  1359. * configure.in: Switch from irix threads to posix threads
  1360. * configure: Regenerate.
  1361. 1999-04-30 Tom Tromey <tromey@cygnus.com>
  1362. * Makefile.in: Rebuilt.
  1363. * Makefile.am (jv_convert_LDADD): Added -lgcc.
  1364. 1999-04-29 Tom Tromey <tromey@cygnus.com>
  1365. * java/lang/StringBuffer.java (ensureCapacity): Don't resize
  1366. vector when shared.
  1367. * java/util/Locale.java (Locale(String,String)): Implement in
  1368. terms of 3-argument version; variant now defaults to empty
  1369. string.
  1370. (toString): Assume variant is not null.
  1371. (equals): Assume all strings are not null.
  1372. (Locale): Throw NullPointerException if any argument is null.
  1373. * java/util/ResourceBundle.java (getBundle): Don't try the base
  1374. name; now implicit in partialGetBundle call.
  1375. (trySomeGetBundle): Search for parent bundles and call setParent
  1376. as required.
  1377. (partialGetBundle): Added `langStop' argument. Use
  1378. `Locale.toString' to compute bundleName.
  1379. (resource_cache): New static field.
  1380. (partialGetBundle): Cache the returned resource bundle. Now
  1381. synchronized.
  1382. * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
  1383. missing `<'.
  1384. * mauve-libgcj: Enable Collator and RuleBasedCollator.
  1385. * java/text/natCollator.cc (decomposeCharacter): `base' now
  1386. `const'.
  1387. * Makefile.in: Rebuilt.
  1388. * Makefile.am (ordinary_java_source_files): Added
  1389. CollationElementIterator, CollationKey, Collator,
  1390. RuleBasedCollator.
  1391. (nat_source_files): Added natCollator.cc.
  1392. * java/text/RuleBasedCollator.java (ceiNext): No longer static.
  1393. (compare): Pass `this' to CollationElementIterator constructor.
  1394. (getCollationElementIterator): Likewise.
  1395. (ceiNext): Fix off-by-one error when finding initial substring.
  1396. (next): Correctly mask off bits when computing return value.
  1397. Fixed return values when one string is shorter than the other.
  1398. * java/text/CollationElementIterator.java (collator): New field.
  1399. (CollationElementIterator): Added collator argument.
  1400. (next): Call ceiNext on collator object.
  1401. 1999-04-26 Tom Tromey <tromey@cygnus.com>
  1402. * natCollator.cc: New file.
  1403. * java/util/GregorianCalendar.java (setDefaultTime): New method.
  1404. (GregorianCalendar): Use it in all constructors.
  1405. * java/util/Calendar.java (Calendar): Changed argument name to
  1406. `zone' to match code.
  1407. * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
  1408. * java/text/CollationKey.java: New file.
  1409. * java/text/CollationElementIterator.java: New file.
  1410. * java/text/Collator.java: New file.
  1411. * java/text/RuleBasedCollator.java: New file.
  1412. * Makefile.in: Rebuilt.
  1413. * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
  1414. (jv_convert_LDADD): Explicltly add -lm -lc.
  1415. 1999-04-26 Tom Tromey <tromey@cygnus.com>
  1416. * configure, Makefile.in: Rebuilt.
  1417. * configure.in: Added AM_PROG_LIBTOOL.
  1418. (GCOBJS): Use `.lo' form of files.
  1419. (THREADOBJS): Likewise.
  1420. (GCDEPS): Use `.la' form of library.
  1421. (GCLIBS): Set to be the same as GCDEPS.
  1422. (THREADDEPS): Use `.la' form of library.
  1423. (THREADLIBS): Set to be the same as THREADDEPS.
  1424. * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
  1425. toolexeclib_LIBRARIES.
  1426. (libgcj_la_SOURCES): Renamed for libtoolization.
  1427. (EXTRA_libgcj_la_SOURCES): Likewise.
  1428. (libgcj_la_DEPENDENCIES): Likewise.
  1429. (libgcj_la_LIBADD): Likewise.
  1430. ($(nat_files)): Use LTCXXCOMPILE.
  1431. ($(c_files)): Use LTCOMPILE.
  1432. (GCJCOMPILE): New macro.
  1433. (.class.o): Use it.
  1434. (.java.o): Likewise.
  1435. ($(javao_files)): Likewise.
  1436. (jv_convert_LINK): Use LIBTOOL.
  1437. (nat_files): Use `.lo' files.
  1438. (c_files): Likewise.
  1439. (javao_files): Likewise.
  1440. (.class.lo): Renamed.
  1441. (.java.lo): Likewise.
  1442. ($(nat_files)): Depend on %.lo.
  1443. ($(c_files)): Likewise.
  1444. ($(javao_files)): Likewise.
  1445. (jv_convert_LDADD): Link against .lo files.
  1446. (jv_convert_DEPENDENCIES): Depend on .lo files.
  1447. (maintainer-check): Depend on libgcj.la, but examine .a file.
  1448. (jv_convert_DEPENDENCIES): Depend on libgcj.la.
  1449. (libgcj_la_LDFLAGS): New macro.
  1450. 1999-04-23 Warren Levy <warrenl@cygnus.com>
  1451. * Makefile.am: Added URLDecoder and URLEncoder.
  1452. * Makefile.in: Rebuilt.
  1453. * java/net/ServerSocket.java (setSocketFactory): Renamed from
  1454. setSocketImplFactory to match spec.
  1455. * java/net/Socket.java (getSoLinger): Changed return type to
  1456. match spec.
  1457. * java/net/URLDecoder.java: New file.
  1458. * java/net/URLEncoder.java: New file.
  1459. 1999-04-21 Tom Tromey <tromey@cygnus.com>
  1460. * java/lang/natString.cc (getBytes): Reverted earlier change and
  1461. applied correct fix from Per Bothner.
  1462. * java/lang/String.java: Don't throw
  1463. UnsupportedEncodingException.
  1464. * java/lang/natString.cc (getBytes): Correctly size result
  1465. buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
  1466. 1999-04-20 Andrew Haley <aph@cygnus.com>
  1467. * include/sparc-signal.h: new file.
  1468. * configure.in: include/sparc-signal.h added.
  1469. * configure: regenerated.
  1470. * prims.cc (JvRunMain): signal handling code rewritten to be more
  1471. portable.
  1472. (catch_segv): ditto.
  1473. (catch_fpe): ditto.
  1474. * include/i386-signal.h: reorganized.
  1475. * include/default-signal.h: reorganized.
  1476. 1999-04-19 Tom Tromey <tromey@cygnus.com>
  1477. * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
  1478. once. From Anthony Green.
  1479. 1999-04-19 Andrew Haley <aph@cygnus.com>
  1480. * Makefile.in: Processed with new automake.
  1481. 1999-04-19 Tom Tromey <tromey@cygnus.com>
  1482. * include/javaprims.h: Removed security namespace.
  1483. 1999-04-20 Anthony Green <green@cygnus.com>
  1484. * java/io/PrintStream.java (println): Remove extra println.
  1485. 1999-04-19 Anthony Green <green@cygnus.com>
  1486. * Makefile.in: Rebuilt.
  1487. * Makefile.am (ordinary_java_source_files): Add new security files.
  1488. * java/security/NoSuchAlgorithmException.java,
  1489. java/security/MessageDigest.java: New files.
  1490. * include/javaprims.h: Add security namespace.
  1491. 1999-04-16 Per Bothner <bothner@cygnus.com>
  1492. * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
  1493. * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
  1494. * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
  1495. * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
  1496. * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
  1497. * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
  1498. * gnu/gcj/convert/natInput_SJIS.cc: New file.
  1499. * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
  1500. * gnu/gcj/convert/natOutput_SJIS.cc: New file.
  1501. * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
  1502. * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
  1503. * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
  1504. * Makefile.am: Various changes for new files and conversions.
  1505. * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
  1506. New overloading, allows greater efficiency.
  1507. * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
  1508. New overloading (for efficiency - avoids copying).
  1509. * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
  1510. * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
  1511. * java/io/InputStreamReader.java (<init>): Set super.in correctly.
  1512. * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
  1513. (writeChars): Don't be quite so eager to flush.
  1514. * java/io/PrintStream.java: Rewrite. Now more similar to
  1515. OutputStreamWriter, using explicit UnicodeToBytes converter.
  1516. Also, autoflush does not need to flush so often.
  1517. * java/lang/natString.cc (getBytes): More efficient algorithm.
  1518. (init(jbyteArray,jint,jint,jstring)): More efficient.
  1519. 1999-04-15 Warren Levy <warrenl@cygnus.com>
  1520. * Makefile.am (ordinary_java_source_files): Added new Connection
  1521. and Handler classes in gnu.gcj.protocol.file package.
  1522. * Makefile.in: Rebuilt.
  1523. * gnu/gcj/protocol/file/Connection.java: New file.
  1524. * gnu/gcj/protocol/file/Handler.java: New file.
  1525. * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
  1526. if doInput allows input.
  1527. (getOutputStream): Check if doOutput allows output.
  1528. * java/net/URLStreamHandler.java (parseURL): Fix indentation.
  1529. 1999-04-14 Tom Tromey <tromey@cygnus.com>
  1530. * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
  1531. buffer larger to work around bug.
  1532. From Bryce McKinlay <bryce@albatross.co.nz>.
  1533. 1999-04-14 Andrew Haley <aph@cygnus.com>
  1534. * java/lang/natDouble.java (doubleToLongBits): ensure that all
  1535. NaNs are always converted to the same long value.
  1536. * java/lang/natFloat.java (floatToIntBits): ditto, but for float
  1537. converted to int.
  1538. 1999-04-13 Tom Tromey <tromey@cygnus.com>
  1539. * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
  1540. instead switch on actual element type.
  1541. * Makefile.in: Rebuilt.
  1542. * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
  1543. 1999-04-13 Andrew Haley <aph@cygnus.com>
  1544. * include/i386-signal.h, include/default-signal.h: New files.
  1545. * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
  1546. handler.
  1547. (catch_fpe): New function.
  1548. * configure.in: Make link to appropriate include/java-signal.h.
  1549. * configure: Rebuilt.
  1550. * Makefile.am: include/java-signal.h added to dependency list.
  1551. * Makefile.in: Rebuilt.
  1552. 1999-04-12 Urban Widmark <urban@svenskatest.se>
  1553. * java/io/DataInputStream.java (readLine): Corrected handling of
  1554. empty lines, from null to "".
  1555. 1999-04-12 Tom Tromey <tromey@cygnus.com>
  1556. * Makefile.in: Rebuilt.
  1557. * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
  1558. * java/lang/natSystem.cc (SystemClass): New define.
  1559. (init_properties): Synchronize.
  1560. 1999-04-08 Geoff Berry <gcb@gnu.org>
  1561. * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
  1562. * natPlainSocketImpl.cc (accept): Add missing else if check
  1563. for AF_INET6.
  1564. 1999-04-08 Tom Tromey <tromey@cygnus.com>
  1565. * java/lang/Long.java (parseLong): Corrected overflow detection
  1566. code.
  1567. * java/lang/Integer.java (parseInt): Corrected overflow detection
  1568. code.
  1569. * java/io/PrintStream.java (print): Handle null string argument.
  1570. (println): Likewise.
  1571. 1999-04-07 Warren Levy <warrenl@cygnus.com>
  1572. * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
  1573. Set count to 0 when InputStreamReader returns -1 for EOF.
  1574. 1999-04-07 Tom Tromey <tromey@cygnus.com>
  1575. * mauve-libgcj: Omit java.text.Collator,
  1576. java.text.RuleBasedCollator.
  1577. 1999-04-06 Tom Tromey <tromey@cygnus.com>
  1578. * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
  1579. IOException from getHttpHeaders().
  1580. (getHeaderFieldKey): Likewise.
  1581. * include/javaprims.h: Regenerated declarations.
  1582. * Makefile.in: Rebuilt.
  1583. * Makefile.am (ordinary_java_source_files): Updated for removed
  1584. files.
  1585. 1999-04-06 Per Bothner <bothner@cygnus.com>
  1586. * java/util/zip/Adler32.java: New class.
  1587. * java/util/zip/CRC32.java: Add working method bodies.
  1588. * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
  1589. * Makefile.in: Re-generate.
  1590. Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
  1591. * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
  1592. from version in removed www hierarchy.
  1593. * gnu/gcj/protocol/http/Handler.java: New file. Copied from
  1594. version in removed www hierarchy.
  1595. * gnu/gcj/www/protocol/http/Connection.java: Removed.
  1596. * gnu/gcj/www/protocol/http/Handler.java: Removed.
  1597. * gnu/gcj/www/protocol/http: Removed dir.
  1598. * gnu/gcj/www/protocol: Removed dir.
  1599. * gnu/gcj/www: Removed dir.
  1600. * java/net/HttpURLConnection.java: Revised comments to indicate
  1601. missing JDK 1.2 methods.
  1602. * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
  1603. hierarchy rather than the gnu/gcj/www/protocol one.
  1604. * java/net/URLConnection.java: Updated status comments.
  1605. (setContentHandler): Look in gnu/gcj/content hierarchy rather than
  1606. the gnu/gcj/www/content one.
  1607. 1999-04-06 Per Bothner <bothner@cygnus.com>
  1608. * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
  1609. The gen-from-JIS program is in $(CONVERT_DIR).
  1610. 1999-04-06 Tom Tromey <tromey@cygnus.com>
  1611. * mauve-libgcj: Renamed from mauve-libjava.
  1612. Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
  1613. * java/net/HttpURLConnection.java (getResponseCode): Implemented.
  1614. (getResponseMessage): Implemented.
  1615. (getResponseVals): New private method.
  1616. * java/net/URLConnection.java (getContent): Implemented.
  1617. (setContentHandler): Convert non-alphabetic/numeric chars per spec.
  1618. 1999-04-05 Tom Tromey <tromey@cygnus.com>
  1619. * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
  1620. (jv_convert_SOURCES): Renamed.
  1621. (EXTRA_jv_convert_SOURCES): Likewise.
  1622. (jv_convert_LDFLAGS): Likewise.
  1623. (jv_convert_LINK): Likewise.
  1624. (jv_convert_LDADD): Likewise.
  1625. (jv_convert_DEPENDENCIES): Likewise.
  1626. * Makefile.in: Rebuilt.
  1627. * Makefile.am (toolexeclibdir): Reference toolexecdir, not
  1628. tooldir.
  1629. Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
  1630. * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
  1631. method for comparison.
  1632. * java/net/URLConnection.java (getContentLength): Implemented.
  1633. (getContentType): Implemented.
  1634. (getContentEncoding): Implemented.
  1635. (getExpiration): Implemented.
  1636. (getDate): Implemented.
  1637. (getLastModified): Implemented.
  1638. (getHeaderFieldInt): Implemented.
  1639. (getHeaderFieldDate): Implemented.
  1640. Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
  1641. * java/net/URLConnection.java (toString): Implemented.
  1642. (setContentHandlerFactory): Implemented.
  1643. (setContentHandler): Wrote new private helper method.
  1644. 1999-04-01 Tom Tromey <tromey@cygnus.com>
  1645. * Makefile.in: Rebuilt.
  1646. * Makefile.am ($(java_source_files:.java=.class): Reverted change
  1647. of 1999-03-31; we always want to build all the .class files.
  1648. Depend on java_source_files, not libgcj.zip.
  1649. (nat_headers): Define in terms of ordinary_java_source_files.
  1650. 1999-03-31 Tom Tromey <tromey@cygnus.com>
  1651. * Makefile.in: Rebuilt.
  1652. * Makefile.am (special_java_source_files): New macro.
  1653. (java_source_files): Use it.
  1654. (ordinary_java_source_files): New macro.
  1655. (java_source_files): Use it.
  1656. ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
  1657. creating headers for those files with hand-maintained headers.
  1658. * include/javaprims.h: Regenerated namespace declarations.
  1659. * classes.pl (scan): Include [0-9] in regexp for matching class
  1660. names; for java.util.zip.CRC32.
  1661. * Makefile.in: Rebuilt.
  1662. * Makefile.am (nat_headers): Redefined to generate all possible
  1663. header files.
  1664. * java/util/zip/ZipException.java: In package java.util.zip, not
  1665. java.net.
  1666. 1999-03-30 Tom Tromey <tromey@cygnus.com>
  1667. * configure: Rebuilt.
  1668. * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
  1669. eh-common.h when not building in tree with gcc.
  1670. * Makefile.in: Rebuilt.
  1671. * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
  1672. $(libgcj_a_OBJECTS)): Changed how we list files that depend on
  1673. nat_headers.
  1674. ($(java_source_files:.java=.class)): New target.
  1675. * Makefile.in: Rebuilt.
  1676. * Makefile.am (java_source_files): Added
  1677. java/net/HttpURLConnection.java and
  1678. gnu/gcj/www/protocol/http/Connection.java.
  1679. Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
  1680. * gnu/gcj/www/protocol/http/Connection.java: New file.
  1681. * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
  1682. * java/net/HttpURLConnection.java: New file.
  1683. * java/net/URLConnection.java (getHeaderField): Implemented default.
  1684. (getHeaderFieldKey): Implemented default method.
  1685. 1999-03-30 Tom Tromey <tromey@cygnus.com>
  1686. * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
  1687. * java/util/zip/Deflater.java: Added copyright header.
  1688. * java/util/zip/CRC32.java: Added copyright header.
  1689. * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
  1690. that it is automatically generated.
  1691. ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
  1692. * gnu/gcj/convert/BytesToUnicode.java,
  1693. gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
  1694. gnu/gcj/convert/Input_EUCJIS.java,
  1695. gnu/gcj/convert/Input_UTF8.java,
  1696. gnu/gcj/convert/JIS0208_to_Unicode.cc,
  1697. gnu/gcj/convert/JIS0212_to_Unicode.cc,
  1698. gnu/gcj/convert/Output_8859_1.java,
  1699. gnu/gcj/convert/Output_JavaSrc.java,
  1700. gnu/gcj/convert/Output_UTF8.java,
  1701. gnu/gcj/convert/UnicodeToBytes.java,
  1702. gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
  1703. * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
  1704. * Makefile.in, configure: Rebuilt.
  1705. * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
  1706. not if test subdir exists.
  1707. (--enable-gcj-classes): Removed; gcj always used to generate
  1708. .class files.
  1709. (JAVA, JAVAC): Removed.
  1710. (--enable-single-compilation, --enable-source-compilation):
  1711. Removed.
  1712. (here): New subst.
  1713. (NATIVE): New conditional.
  1714. * Makefile.am (toolexecdir): Renamed from tooldir to allow
  1715. `install-exec' to work.
  1716. (toolexeclibdir): Likewise.
  1717. (toollib_LIBRARIES): Likewise.
  1718. (AM_MAKEFLAGS): Don't pass tooldir.
  1719. (JAVAC): New macro.
  1720. (javao_files): Redefined.
  1721. (java_source_files): New macro.
  1722. (c_source_files): New macro.
  1723. (c_files): Redefined in terms of c_source_files.
  1724. (java_io_files, java_lang_files, java_net_files, java_text_files,
  1725. java_util_files, gnu_files, java_files): Removed.
  1726. (class_io_files, class_lang_files, class_net_files,
  1727. class_text_files, class_util_files, class_gnu_files, class_files):
  1728. Removed.
  1729. (nat_source_files): New macro.
  1730. (nat_files): Redefined in terms of nat_source_files.
  1731. (EXTRA_libgcj_a_SOURCES): Added c_source_files,
  1732. java_source_files. Removed no-such-file.c.
  1733. (here): Removed.
  1734. (ETAGS_ARGS): Removed.
  1735. (TAGS_DEPENDENCIES): Likewise.
  1736. (libgcj.zip): Depend on java_source_files. Use $(here) and not
  1737. pwd in rule.
  1738. (src_io_files, src_lang_files, src_text_files, src_util_files,
  1739. src_gnu_files): Removed.
  1740. Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
  1741. (BUILT_SOURCES): Removed.
  1742. (header-check): New target.
  1743. (javadir): Removed.
  1744. (noinst_PROGRAMS): New macro.
  1745. ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
  1746. on MAINTAINER_MODE.
  1747. ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
  1748. (gen-from-JIS): Build in top directory.
  1749. (convert_source_files): New macro.
  1750. (convert_SOURCES): New macro.
  1751. (convert_LDFLAGS): Likewise.
  1752. (convert_LINK): Likewise.
  1753. (convert_LDADD): Likewise.
  1754. (convert_DEPENDENCIES): Likewise.
  1755. (convert): Removed.
  1756. (gen-from-JIS): Removed.
  1757. (gen_from_JIS_SOURCES): New macro.
  1758. (gen_from_JIS_LDADD): Likewise.
  1759. (gen_from_JIS_DEPENDENCIES): Likewise.
  1760. * configure: Rebuilt.
  1761. * configure.in (CANADIAN): Set to `yes', not `canadian'.
  1762. (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
  1763. when defining conditional.
  1764. Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
  1765. * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
  1766. The Unicode Consortium does not permit their re-distribution.
  1767. * Makefile.am, Makefile.in: Add comments with URLs for removed files.
  1768. (JIS0208.h, JIS0212.h): Do not depend on removed files.
  1769. Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
  1770. * natSystem.c (init_properties): Use malloc, realloc, free after all.
  1771. Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
  1772. * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
  1773. from Unicode Consortium.
  1774. * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
  1775. * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
  1776. * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
  1777. New tables, generated using gen-from-JIS.
  1778. * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
  1779. * gnu/gcj/convert/Output_UTF8.java: Fix bug.
  1780. * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
  1781. * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
  1782. * gnu/gcj/convert/Convert.java: New application.
  1783. * Makefile.am, Makefile.in (convert): New program, using Convert.
  1784. Build the various JIS conversion tables (in maintainer mode).
  1785. Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
  1786. * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
  1787. * java/net/URL.java (URL): Deal with null property value. Use "."
  1788. as separator in building class name.
  1789. * java/net/URLConnection.java: Implemented majority of stubbed methods.
  1790. * java/net/URLStreamHandler.java (parseURL): Use "" in string
  1791. manipulations instead of 'null'. Comment cleanup. Use 0 for the
  1792. beginning of the substring rather than 'start'.
  1793. 1999-03-26 Tom Tromey <tromey@cygnus.com>
  1794. * include/java-chartables.h: Rebuilt.
  1795. * include/java-chardecomp.h: New file.
  1796. * chartables.pl: Generate output files directly. Added support
  1797. for generating decomposition header.
  1798. (canonical_decomposition, full_decomposition): New globals.
  1799. (DECOMPOSITION): New constant.
  1800. (process_char): Call add_decomposition.
  1801. (add_decomposition): New sub.
  1802. (write_decompositions): New sub.
  1803. 1999-03-25 Tom Tromey <tromey@cygnus.com>
  1804. * java/text/CollationElementIterator.java: New file.
  1805. * mauve-libjava: Omit StringTest.
  1806. Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
  1807. * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
  1808. without a '/' when parsing protocol. Handle ref outside of parseURL.
  1809. (hashCode): Implemented.
  1810. (set): Don't expand -1 to default port.
  1811. (getDefaultPort): Removed.
  1812. * java/net/URLStreamHandler.java (parseURL): Implemented.
  1813. (toExternalForm): Implemented.
  1814. 1999-03-23 Tom Tromey <tromey@cygnus.com>
  1815. * java/text/BreakIterator.java (getSentenceInstance):
  1816. Implemented.
  1817. * gnu/gcj/text/SentenceBreakIterator.java: New file.
  1818. * Makefile.in: Rebuilt.
  1819. * Makefile.am (nat_headers): Added IllegalAccessException.
  1820. * java/lang/natClass.cc (newInstance): Throw
  1821. IllegalAccessException, not IllegalAccessError.
  1822. Include IllegalAccessException.h.
  1823. 1999-03-22 Tom Tromey <tromey@cygnus.com>
  1824. * gnu/gcj/text/LineBreakIterator.java: New file.
  1825. * java/text/BreakIterator.java (getLineInstance): Implemented.
  1826. * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
  1827. copy constructor private.
  1828. (previous, next): Removed erroneous comment about line
  1829. separators.
  1830. (previous): Correctly recognize break between non-letter on the
  1831. left and letter on the right. Handle apostrophes correctly.
  1832. * java/text/BreakIterator.java (getWordInstance): Implemented.
  1833. * gnu/gcj/text/WordBreakIterator.java: New file.
  1834. * gnu/gcj/text/CharacterBreakIterator.java: Extend
  1835. BaseBreakIterator.
  1836. * gnu/gcj/text/BaseBreakIterator.java: New file.
  1837. 1999-03-19 Tom Tromey <tromey@cygnus.com>
  1838. * java/text/BreakIterator.java: New file (partially stubbed out).
  1839. * gnu/gcj/text/CharacterBreakIterator.java: New file.
  1840. * include/config.h.in: Rebuilt.
  1841. * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
  1842. (HAVE_TIMEZONE): Likewise.
  1843. * configure: Rebuilt.
  1844. * configure.in: Added timezone checks.
  1845. * java/util/natGregorianCalendar.cc (computeTime): Adjust for
  1846. timezone.
  1847. Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
  1848. * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
  1849. * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
  1850. * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
  1851. * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
  1852. * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
  1853. * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
  1854. * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
  1855. * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
  1856. * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
  1857. (BSD_COMP): Kludge needed for Solaris2.
  1858. Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
  1859. * java/net/URL.java (URL(java.net.URL, string): Moved code to
  1860. URL(java.net.URL, string, URLStreamHandler) and call it with a
  1861. null handler. In latter constructor, added SecurityManager check.
  1862. (set): Expect null handler on bad protocol rather than an exception.
  1863. (setURLStreamHandler): Simplified exception handling; return null
  1864. on invalid protocol.
  1865. 1999-03-18 Tom Tromey <tromey@cygnus.com>
  1866. * java/text/DecimalFormat.java (format(long,...)): Rewrote.
  1867. * java/lang/natSystem.cc (setOut, setIn, setErr): New native
  1868. methods.
  1869. Include PrintStream.h, InputStream.h.
  1870. * java/lang/System.java (ForwardingInputStream,
  1871. ForwardingOutputStream): Removed.
  1872. (setErr, setIn, setOut): Now native.
  1873. Reverted patch from 1999-02-12 to work around problem in
  1874. libgcc2.c.
  1875. * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
  1876. (_Jv_eh_free): Use free.
  1877. * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
  1878. for path name. Minor formatting fixes.
  1879. * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
  1880. * prims.cc (fail_on_finalization): New function.
  1881. (_Jv_GCWatch): Likewise.
  1882. * prims.cc (JvRunMain): Initialize `nullp'.
  1883. (nullp): New global.
  1884. (catch_segv): Throw nullp.
  1885. * Makefile.in: Rebuilt.
  1886. * Makefile.am (ZIP): In "null target" case, zip is found in the
  1887. build tree.
  1888. * prims.cc (_Jv_PrimClass): Initialize all elements of class
  1889. object.
  1890. Include Modifier.h.
  1891. * java/lang/StringBuffer.java (StringBuffer): Don't use
  1892. ensureCapacity to set initial capacity.
  1893. (capacity): Subtract `length' from return result.
  1894. Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
  1895. * java/io/natFileDescriptorPosix.cc (open): Throw
  1896. FileNotFoundException, but with filename and errno in msg.
  1897. Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
  1898. * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
  1899. functionality folded into java/net/URL.java per spec.
  1900. * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
  1901. than EEXIST for throwing FileNotFoundException.
  1902. * java/net/URL.java: Folded in default URLStreamHandlerFactory
  1903. algorithm per JDK 1.2 doc. Added SecurityManager checks.
  1904. * java/net/URLStreamHandler.java (parseURL): Added stub.
  1905. 1999-03-15 Andrew Haley <aph@cygnus.com>
  1906. * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
  1907. by one errors.
  1908. 1999-03-15 Andrew Haley <aph@cygnus.com>
  1909. * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
  1910. support.
  1911. 1999-03-12 Tom Tromey <tromey@cygnus.com>
  1912. * prims.cc (catch_segv): New function.
  1913. Include <signal.h> if HANDLE_SEGV defined. Include
  1914. NullPointerException.h.
  1915. (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
  1916. handler.
  1917. * java/text/SimpleDateFormat.java (equals): Ensure that object is
  1918. a SimpleDateFormat, not just a DateFormat.
  1919. (defaultCenturyStart, formatData, pattern): Now private.
  1920. (append): Now `final'. Use `NumberFormat.format'.
  1921. (parse): Wrote.
  1922. (SimpleDateFormat): Turn off groupin in NumberFormat object.
  1923. * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
  1924. result.
  1925. * java/text/MessageFormat.java (format): Use default MessageFormat
  1926. constructor.
  1927. (parse, parseObject): Wrote.
  1928. * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
  1929. constructor.
  1930. 1999-03-12 Andrew Haley <aph@cygnus.com>
  1931. * java/lang/String.java (indexOf): Replace with native method for
  1932. better performance.
  1933. * java/lang/natString.cc (IndexOf): As above.
  1934. * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
  1935. Argument check corrected.
  1936. (init(jbyteArray,jint,jint,jstring)): Likewise.
  1937. * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
  1938. 1.2 compliant method.
  1939. * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
  1940. added.
  1941. * java/lang/Float.java (byteValue, shortValue): Likewise.
  1942. 1999-03-11 Tom Tromey <tromey@cygnus.com>
  1943. * java/text/DecimalFormat.java (parse): Wrote.
  1944. * java/text/ChoiceFormat.java (parse): Set error index on
  1945. ParsePosition object.
  1946. * java/lang/Integer.java (parseInt): Throw exception on overflow
  1947. when intermediate result is most negative number. Changed
  1948. overflow detection as well.
  1949. * java/lang/Long.java (parseLong): Likewise.
  1950. * configure, Makefile.in: Rebuilt.
  1951. * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
  1952. CANADIAN when building in source tree that doesn't include gcc.
  1953. * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
  1954. define.
  1955. * java/text/ChoiceFormat.java (nextDouble): Correct some
  1956. off-by-one errors when masking or adding.
  1957. * java/text/DecimalFormat.java (format): Fill in FieldPosition
  1958. parameter, if given. Use `%', not IEEEremainder.
  1959. (scanFix): Throw error if multiplier already set.
  1960. (computePattern): Wrote.
  1961. 1999-03-11 Andrew Haley <aph@cygnus.com>
  1962. * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
  1963. 52.
  1964. (nextDouble): Corrected masking logic. Handle interaction between
  1965. `next' and negative numbers.
  1966. Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
  1967. * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
  1968. * java/net/URL.java: Added general comments.
  1969. 1999-03-10 Tom Tromey <tromey@cygnus.com>
  1970. * java/text/ChoiceFormat.java (parse): Wrote.
  1971. * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
  1972. * java/text/MessageFormat.java (MessageFormatElement.setLocale):
  1973. Create ChoiceFormat objects.
  1974. (format): Special-case ChoiceFormat.
  1975. (scanFormatElement): Include { and } in generated style string.
  1976. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  1977. * java/text/ChoiceFormat.java: New file.
  1978. Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
  1979. * java/net/BindException.java: Created.
  1980. * java/net/ConnectException.java: Created.
  1981. * java/net/ContentHandler.java: Created.
  1982. * java/net/ContentHandlerFactory.java: Created.
  1983. * java/net/FileNameMap.java: Created.
  1984. * java/net/MalformedURLException.java: Created.
  1985. * java/net/NoRouteToHostException.java: Created.
  1986. * java/net/ProtocolException.java: Created.
  1987. * java/net/ServerSocket.java (@author): Fixed typo.
  1988. * java/net/Socket.java (@author): Fixed typo.
  1989. * java/net/SocketImpl.java (@author): Fixed typo.
  1990. * java/net/SocketImplFactory.java (@author): Fixed typo.
  1991. * java/net/URL.java: Created - nearly complete.
  1992. * java/net/URLConnection.java: Created - near-empty stub.
  1993. * java/net/URLStreamHandler.java: Created - incomplete stub.
  1994. * java/net/URLStreamHandlerFactory.java: Created.
  1995. * java/net/UnknownServiceException.java: Created.
  1996. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  1997. * java/lang/System.java (ForwardingInputStream): New class.
  1998. (ForwardingOutputStream): Likewise.
  1999. (in, out, err): Now `final' forwarding streams.
  2000. (setIn, setOut, setErr): Use appropriate method on forwarding
  2001. streams.
  2002. * java/text/MessageFormat.java (MessageFormatElement): Now `final'
  2003. class.
  2004. Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
  2005. * java/util/zip/CRC32.java: New class (just an incomplete stub).
  2006. * java/util/zip/Checksum.java: New interface (complete).
  2007. * java/util/zip/Deflater.java: New class (near-empty stub).
  2008. * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
  2009. * java/util/zip/ZipConstants.java: New interface (near-empty stub).
  2010. * java/util/zip/ZipEntry.java: New class (complete).
  2011. * java/util/zip/ZipException.java: New class (complete).
  2012. * java/util/zip/ZipFile.java: New class (incomplete stub).
  2013. * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
  2014. 1999-03-09 Tom Tromey <tromey@cygnus.com>
  2015. * java/text/MessageFormat.java (MessageFormatElement): Removed
  2016. `public' specifiers.
  2017. * java/text/DecimalFormat.java (scanFormat): Increment index
  2018. before processing exponential format. Fixed a couple typos in
  2019. exception messages.
  2020. (format): Correct normalization of exponent.
  2021. 1999-03-08 Tom Tromey <tromey@cygnus.com>
  2022. * java/text/SimpleDateFormat.java (parse): Throw
  2023. IllegalArgumentException, not ParseException.
  2024. 1999-03-05 Tom Tromey <tromey@cygnus.com>
  2025. * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
  2026. when constructing DateFormatSymbols. Initialize numberFormat
  2027. field of superclass.
  2028. * java/text/DateFormat.java (equals): Rewrote.
  2029. (getAvailableLocales): New method.
  2030. (getDateInstance): New methods.
  2031. (getDateTimeInstance): Likewise.
  2032. (getTimeInstance): Likewise.
  2033. (getInstance): New method.
  2034. (computeInstance): New method.
  2035. * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
  2036. for US.
  2037. (safeGetResource): New method.
  2038. (DateFormatSymbols): Use Locale paramater.
  2039. (equals): Now protected.
  2040. Made instance variables private.
  2041. 1999-03-04 Tom Tromey <tromey@cygnus.com>
  2042. * java/text/DecimalFormat.java: New file.
  2043. * java/text/NumberFormat.java (groupingUsed,
  2044. maximumFractionDigits, maximumIntegerDigits,
  2045. minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
  2046. New fields.
  2047. (setDecimalSeparatorAlwaysShown, setMultiplier,
  2048. setPositivePrefix): Removed.
  2049. (setMinimumFractionDigits, setMaximumFractionDigits):
  2050. Implemented.
  2051. (format): Now final.
  2052. Added many new methods.
  2053. * Makefile.in: Rebuilt.
  2054. * Makefile.am (gnu_files): New macro.
  2055. (java_files): Added gnu_files.
  2056. (class_gnu_files): New macro.
  2057. (class_files): Use it.
  2058. (src_gnu_files): New macro.
  2059. (gnu.o): New target.
  2060. (javao_files): Added gnu.o.
  2061. * gnu/gcj/text/LocaleData_en_US.java: New file.
  2062. * gnu/gcj/text/LocaleData_en.java: New file.
  2063. * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
  2064. (DecimalFormatSymbols): Use ResourceBundle to find resources.
  2065. (safeGetString): New method.
  2066. (safeGetChar): Likewise.
  2067. 1999-03-03 Tom Tromey <tromey@cygnus.com>
  2068. * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
  2069. constants.
  2070. * java/text/FieldPosition.java (equals): Don't check for null
  2071. object; instanceof does this.
  2072. * java/util/Locale.java (clone): New method.
  2073. (equals): Likewise.
  2074. Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
  2075. * doc/cni.sgml: New file.
  2076. 1999-03-03 Tom Tromey <tromey@cygnus.com>
  2077. * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
  2078. * java/text/DecimalFormatSymbols.java: New file.
  2079. 1999-03-02 Tom Tromey <tromey@cygnus.com>
  2080. * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
  2081. exists.
  2082. * configure: Rebuilt.
  2083. * configure.in: Check for sys/filio.h.
  2084. * java/lang/Runtime.java (checkLink): Throw NullPointerException
  2085. if required.
  2086. (load): Always throw UnsatisfiedLinkError.
  2087. (loadLibrary): Likewise.
  2088. 1999-03-02 Anthony Green <green@cygnus.com>
  2089. * LIBGCJ_LICENSE: New file.
  2090. * LIBJAVA_LICENSE: Removed.
  2091. * Many files: libjava now libgcj.
  2092. 1999-03-02 Tom Tromey <tromey@cygnus.com>
  2093. * include/java-chartables.h: Rebuilt.
  2094. * chartables.pl (print_block): Make table `const'.
  2095. (print_numerics): Likewise.
  2096. (print_single_map): Likewise.
  2097. (print_all_block): Likewise.
  2098. (print_case_table): Likewise.
  2099. (print_fast_tables): Likewise.
  2100. * java/lang/natCharacter.cc (table_search): `table' argument now
  2101. const.
  2102. 1999-03-01 Tom Tromey <tromey@cygnus.com>
  2103. * java/util/Date.java (before, after): Inverted logic.
  2104. * java/util/Date.java (parse): Handle case where first character
  2105. in string is open parenthesis.
  2106. (skipParens): Rewrote.
  2107. * java/lang/reflect/natArray.cc: Include <stdlib.h>.
  2108. * java/lang/reflect/natField.cc: Include <stdlib.h>.
  2109. * java/util/Date.java (parse): Correctly compute beginning of
  2110. punctuation.
  2111. * java/util/Hashtable.java (get): Throw NullPointerException if
  2112. key is null.
  2113. (containsKey): Likewise.
  2114. * java/util/Properties.java (list): Truncate value to 37
  2115. characters and add `...'.
  2116. * java/lang/Byte.java (parseByte): Pass `radix' to
  2117. Integer.parseInt.
  2118. * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
  2119. fprintf.
  2120. Include System.h, PrintStream.h.
  2121. * java/lang/natSystem.cc (init_properties): Don't use malloc,
  2122. realloc, or free.
  2123. * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
  2124. exists.
  2125. * configure: Rebuilt.
  2126. * configure.in: Check for getpwuid_r. Look for `pwd.h', not
  2127. `pwd.d'.
  2128. * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
  2129. * java/lang/SecurityManager.java: Import java.net.*.
  2130. (checkMulticast): New methods.
  2131. Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
  2132. * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
  2133. (nat_files): Add java/lang/reflect/natArray.o.
  2134. (nat_headers): Add Field.h and NoSuchFieldException.h.
  2135. * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
  2136. _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
  2137. (_Jv_FromReflectedField): Fix buglet.
  2138. * include/jvm.h (_Jv_NewMultiArray): New declaration.
  2139. * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
  2140. * prims.cc (_Jv_Abort): Include message in print-out.
  2141. * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
  2142. (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
  2143. * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
  2144. * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
  2145. * include/config.h.in (HAVE_PWD_H): New feature macro.
  2146. * java/lang/natSystem.cc (init_properties): Set file.encoding,
  2147. user.name, user.home, user.dir.
  2148. * java/lang/reflect/Array.java: New class.
  2149. * java/lang/reflect/natArray.cc: New native methods.
  2150. * include/javaprims.h: Declare java::lang::reflect::Array.
  2151. * java/lang/Class.h (getField): New private method. Add friends.
  2152. * java/lang/Class.java (getField): Add private overload.
  2153. * java/lang/natClass.cc (getField, getField, getDeclaredField,
  2154. getDeclaredMethods): Add working implementations.
  2155. * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
  2156. Finish implementation, except for access control.
  2157. * java/lang/reflect/Modifier.java (toString): New overload.
  2158. * include/java-method.h: New file.
  2159. * java/lang/reflect/Method.java (index): Replaced by offset field.
  2160. Remove various private fields - get them from _Jv_Field instead.
  2161. * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
  2162. New method implementations.
  2163. * java/text/NumberFormat.java: Add a bunch of methods.
  2164. Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
  2165. * java/lang/StringBuffer.java (getChars): Fix bounds checks.
  2166. 1999-02-26 Tom Tromey <tromey@cygnus.com>
  2167. * include/config.h.in: Rebuilt.
  2168. * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
  2169. GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
  2170. HAVE_GETHOSTBYADDR_R): New defines.
  2171. * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
  2172. gethostbyaddr_r if available.
  2173. Include <errno.h>.
  2174. * configure: Rebuilt.
  2175. * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
  2176. * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
  2177. Don't use JvFree.
  2178. (lookup): Likewise.
  2179. Include <jvm.h>.
  2180. * include/jvm.h (_Jv_AllocBytesChecked): Declare.
  2181. * prims.cc (_Jv_AllocBytesChecked): New function.
  2182. * Makefile.in: Rebuilt.
  2183. * Makefile.am (SUBDIRS): Removed `test'.
  2184. * configure: Rebuilt.
  2185. * configure.in: Don't build test/Makefile.
  2186. * test/*: Removed all files.
  2187. Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
  2188. * java/lang/reflect/Constructor.java: Make class final to match spec.
  2189. * java/lang/reflect/Method.java: Ditto.
  2190. 1999-02-25 Tom Tromey <tromey@cygnus.com>
  2191. * java/net/natInetAddress.cc: Include <sys/types.h> before
  2192. <sys/socket.h>.
  2193. * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
  2194. <sys/socket.h>.
  2195. * java/net/natInetAddress.cc: Declare gethostname if required.
  2196. * include/config.h.in: Rebuilt.
  2197. * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
  2198. * configure: Rebuilt.
  2199. * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
  2200. declared in unistd.h.
  2201. 1999-02-24 Tom Tromey <tromey@cygnus.com>
  2202. * Makefile.in: Rebuilt.
  2203. * Makefile.am (java/io/FileDescriptor.h): Removed target.
  2204. * java/io/FileDescriptor.java (FileDescriptor): Changed protection
  2205. from private to "none".
  2206. * include/javaprims.h: Regenerated class declarations with new
  2207. classes.pl.
  2208. * classes.pl (scan): Only generate decls for java.lang, java.io,
  2209. and java.util.
  2210. 1999-02-24 Tom Tromey <tromey@cygnus.com>
  2211. * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
  2212. (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
  2213. 1999-02-23 Tom Tromey <tromey@cygnus.com>
  2214. * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
  2215. not already defined.
  2216. * java/io/natFile.cc (_REENTRANT): Only define if not already
  2217. defined.
  2218. * include/config.h.in: Rebuilt.
  2219. * acconfig.h (HAVE_BOEHM_GC): New define.
  2220. * configure: Rebuilt.
  2221. * configure.in: Define HAVE_BOEHM_GC if using it.
  2222. * posix-threads.cc: Include boehm-config.h and gc.h if
  2223. HAVE_BOEHM_GC.
  2224. * include/posix-threads.h: Added explanatory note about Boehm GC.
  2225. * java/io/BufferedReader.java (readLine): Only return null when
  2226. EOF seen before any characters read. (In particular, an empty
  2227. line should not return null.)
  2228. * java/io/BufferedInputStream.java (read): Only refill once per
  2229. invocation.
  2230. * mauve-libjava: Added java.text.StringCharacterIterator.iter,
  2231. java.lang.Character.classify12, java.lang.String.hash,
  2232. java.text.FieldPosition.Test, java.text.ParsePosition.Test,
  2233. java.text.SimpleDateFormat.getAndSet2DigitYearStart
  2234. * java/text/StringCharacterIterator.java (setIndex): No error if
  2235. index == end.
  2236. (next): Check for `pos == end', not `end - 1'.
  2237. (StringCharacterIterator): Allow `pos == end'. Explicitly check
  2238. for null text in each constructor.
  2239. (clone): Fixed order of arguments to constructor.
  2240. 1999-02-22 Tom Tromey <tromey@cygnus.com>
  2241. * include/config.h.in: Rebuilt.
  2242. * acconfig.h (HAVE_INET6): New define.
  2243. (HAVE_SOCKLEN_T): Likewise.
  2244. * java/net/PlainSocketImpl.java: Added copyright header.
  2245. * java/net/natPlainSocketImpl.cc: Added copyright header.
  2246. (union SockAddr): Use HAVE_INET6, not AF_INET6.
  2247. (bind): Likewise.
  2248. (connect): Likewise.
  2249. (accept): Likewise.
  2250. (socklen_t): New typedef.
  2251. (accept): Use socklen_t.
  2252. * java/net/natInetAddress.cc: Added copyright header.
  2253. (HAVE_GETHOSTNAME): Don't define.
  2254. (HAVE_INET_ADDR): Likewise.
  2255. (lookup): Fixed typo.
  2256. (aton): Don't use `address' as name of local variable.
  2257. (lookup): Use HAVE_INET6, not AF_INET6.
  2258. * configure: Rebuilt.
  2259. * configure.in: Look for functions inet_aton, inet_addr,
  2260. gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
  2261. Check for socklen_t typedef.
  2262. * exception.cc (__throw): Declare as __noreturn__.
  2263. Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
  2264. * Makefile.am, Makefile.in: Also build java/net.
  2265. (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
  2266. * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
  2267. * java/util/natGregorianCalendar.cc: #define _REENTRANT.
  2268. * prims.cc (_Jv_malloc, _Jv_Free): New functions.
  2269. * include/cni.h (JvMalloc, JvFree): New inline functions.
  2270. (JvThrow): Add __noreturn__ attribute.
  2271. * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
  2272. (_Jv_Throw): Add __noreturn__ attribute.
  2273. * java/net/PlainSocketImpl.java: Init fnum to -1.
  2274. * java/net/ServerSocket.java: Add missing throws clauses.
  2275. * java/lang/Socket.java: For the constructor taking a SocketImpl,
  2276. don't call create on the latter. Instead, other constructors
  2277. have to explicitly call SocketImpl.create.
  2278. * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
  2279. from size_t to int, to match ::accept prototype.
  2280. * java/net/natInetAddress.cc: Use JvFree rather than free.
  2281. 1999-02-22 Tom Tromey <tromey@cygnus.com>
  2282. * include/javaprims.h: Added new classes.
  2283. * java/text/StringCharacterIterator.java: New file.
  2284. * java/text/CharacterIterator.java: New file.
  2285. * java/text/ParseException.java (errorOffset): Now private.
  2286. Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
  2287. * java/net: New package.
  2288. * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
  2289. Socket.java,SocketException.java,SocketImpl.java,
  2290. SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
  2291. natPlainSocketImpl.cc}: New classes.
  2292. * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
  2293. <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
  2294. * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
  2295. HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
  2296. * classes.pl: Translate package into "namespace", not "class".
  2297. * include/javaprims.h: Update class list, using "namespace".
  2298. 1999-02-21 Tom Tromey <tromey@cygnus.com>
  2299. * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
  2300. Define when appropriate.
  2301. 1999-02-20 Tom Tromey <tromey@cygnus.com>
  2302. * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
  2303. as a single byte and \u07ff as two bytes.
  2304. (_Jv_GetStringUTFLength): Likewise.
  2305. * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
  2306. with 0x0f, not 0x1f.
  2307. 1999-02-19 Tom Tromey <tromey@cygnus.com>
  2308. * java/io/DataOutputStream.java (writeUTF): When encoding
  2309. character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
  2310. * java/io/DataInputStream.java (readUTF): Mask second byte of
  2311. 3-byte character with 0x3f, not 0x1f.
  2312. * java/io/DataInputStream.java (readLong): Cast result of
  2313. readUnsignedByte to long before using.
  2314. * java/io/FileInputStream.java (finalize): Only finalize `fd' if
  2315. it is not null.
  2316. * mauve-libjava: Re-enabled java.io.DataInputOutput.
  2317. * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
  2318. argument to avoid warning.
  2319. * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
  2320. argument to avoid warning.
  2321. 1999-02-18 Tom Tromey <tromey@cygnus.com>
  2322. * mauve-libjava: Omit java.io.DataInputOutput and
  2323. java.io.Utf8Encoding.
  2324. 1999-02-17 Tom Tromey <tromey@cygnus.com>
  2325. * Makefile.in: Rebuilt.
  2326. * Makefile.am (nat_headers): Added InterruptedIOException.h.
  2327. * java/io/natFileDescriptorPosix.cc: Include
  2328. InterruptedIOException.h, Thread.h.
  2329. (write): Throw InterruptedIOException when required.
  2330. (read): Likewise.
  2331. * posix-threads.cc: Include <signal.h>.
  2332. (_Jv_ThreadInterrupt): New function.
  2333. (INTR): New define.
  2334. (handle_intr): New function.
  2335. (_Jv_InitThreads): Register handle_intr via sigaction.
  2336. * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
  2337. * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
  2338. * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
  2339. * include/no-threads.h (_Jv_ThreadInterrupt): New function.
  2340. 1999-02-19 Andrew Haley <aph@cygnus.com>
  2341. * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
  2342. of subgroups.
  2343. (ThreadGroup (int)): Set the maximum priority of the initial
  2344. ThreadGroup.
  2345. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2346. * java/lang/natClass.cc (forName): Check for the case where a
  2347. classname is the name of an array and call FindClassFromSignature
  2348. to find the Class.
  2349. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2350. * java/lang/StringBuffer (insert (int, String)): Move up any
  2351. characters above the insert position and increase the length of
  2352. the string buffer by the length of the argument.
  2353. (insert (int, char[])): Likewise.
  2354. (insert (int, char)): Likewise.
  2355. (StringBuffer (String)): The initial capacity of the string buffer
  2356. is 16 plus the length of the argument.
  2357. (getChars): Add a JDK 1.2 FIXME.
  2358. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2359. * java/lang/Short.java (parseShort(String, int)): Pass radix to
  2360. Integer.parseInt.
  2361. 1999-02-18 Andrew Haley <aph@cygnus.com>
  2362. * java/lang/Double.java (equals): Use a bit-by-bit comparision
  2363. instead of floating-point equality. This is necessary for
  2364. correct floating-point Hashtables.
  2365. * java/lang/Float.java (equals): Ditto.
  2366. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2367. * java/util/Properties.java (list): Truncate value to 37
  2368. characters and add "...".
  2369. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2370. * java/util/Vector.java (Vector): Throw IllegalArgumentException
  2371. if initCap is negative.
  2372. (contains): Implement JDK1.2-style handling of null argument.
  2373. (removeElement): Likewise.
  2374. (indexOf): Likewise. Also, correctly handle case where idx is
  2375. negative.
  2376. (lastIndexOf): Likewise.
  2377. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2378. * java/lang/natString.cc (init): Increment source pointer in
  2379. loop.
  2380. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2381. * exception.cc: Include NullPointerException.h.
  2382. (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
  2383. 1999-02-16 Tom Tromey <tromey@cygnus.com>
  2384. * Makefile.in: Rebuilt.
  2385. * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
  2386. Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
  2387. * configure.in: Don't undefine EH_COMMON_INCLUDE just because
  2388. we're compiling canadian.
  2389. * configure: Regenerated.
  2390. 1999-02-12 Andrew Haley <aph@cygnus.com>
  2391. * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
  2392. deleted from libgcj.
  2393. 1999-02-12 Tom Tromey <tromey@cygnus.com>
  2394. * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
  2395. (_Jv_eh_free): Don't call free.
  2396. Don't declare malloc or free.
  2397. 1999-02-11 Tom Tromey <tromey@cygnus.com>
  2398. * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
  2399. 1999-02-11 Andrew Haley <aph@cygnus.com>
  2400. * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
  2401. wf_fmod.c: Deleted. These are all files from fdlibm which aren't
  2402. needed by java.lang.*.
  2403. * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
  2404. wf_fmod.o: Removed from libjava.a.
  2405. 1999-02-11 Tom Tromey <tromey@cygnus.com>
  2406. * include/javaprims.h: Reverted previous change; with it
  2407. exception.cc can't compile.
  2408. * include/javaprims.h (_Jv_Throw): Mark as noreturn.
  2409. * include/config.h.in: Rebuilt.
  2410. * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
  2411. HAVE_SCHED_YIELD.
  2412. * configure: Rebuilt.
  2413. * configure.in: Check for sched_yield. Look in thread library for
  2414. all thread functions.
  2415. * posix-threads.cc (_Jv_MutexInit): Handle case where system has
  2416. no recursive mutexes.
  2417. (_Jv_MutexDestroy): Define when required.
  2418. (_Jv_MutexLock): Likewise.
  2419. (_Jv_MutexUnlock): Likewise.
  2420. (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
  2421. * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
  2422. (_Jv_Mutex_t): New structure.
  2423. (_Jv_MutexDestroy): Only define if recursive mutexes available.
  2424. (_Jv_MutexLock): Likewise.
  2425. (_Jv_MutexUnlock): Likewise.
  2426. 1999-02-10 Tom Tromey <tromey@cygnus.com>
  2427. * aclocal.m4, configure, Makefile.in: Rebuilt.
  2428. * acinclude.m4: Renamed libjava to libgcj. Updated to use
  2429. automake 1.4.
  2430. * configure.in: Changed to track library changes.
  2431. * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
  2432. (AM_CXXFLAGS): Likewise.
  2433. (data_DATA): Likewise.
  2434. (AM_CFLAGS): Likewise.
  2435. (JC1FLAGS): Likewise.
  2436. (libgcj_a_SOURCES): Likewise.
  2437. (EXTRA_libgcj_a_SOURCES): Likewise.
  2438. (libgcj_a_DEPENDENCIES): Likewise.
  2439. (libgcj_a_LIBADD): Likewise.
  2440. (libgcj.zip): Likewise.
  2441. (CLEANFILES): Likewise.
  2442. ($(nat_headers)): Likewise.
  2443. (java/lang/FirstThread.h): Likewise.
  2444. (java/lang/ThreadGroup.h): Likewise.
  2445. (java/lang/String.h): Likewise.
  2446. (java/lang/reflect/Field.h): Likewise.
  2447. (BUILT_SOURCES): Likewise.
  2448. (maintainer-check): Likewise.
  2449. (CONFIG_STATUS_DEPENDENCIES): Likewise.
  2450. Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
  2451. * java/util/natGregorianCalendar.cc (computeFields): Only use
  2452. gmtime_r and localtime_r when configured for posix threads.
  2453. * java/io/natFile.cc (get_entry): Only use readdir_r when
  2454. configured for posix threads.
  2455. * java/util/natGregorianCalendar.cc: Update copyright notice.
  2456. * java/util/TimeZone.java: Ditto.
  2457. * java/util/SimpleTimeZone.java: Ditto.
  2458. 1999-02-08 Tom Tromey <tromey@cygnus.com>
  2459. * java/io/PrintStream.java (line_separator): New constant.
  2460. (print): Use line_separator, not `file.separator' property.
  2461. (println): Use line_separator.
  2462. * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
  2463. when trying to instantiate Class.
  2464. * java/lang/ThreadGroup.java (ThreadGroup): Throw
  2465. NullPointerException if argument is null.
  2466. * java/lang/Thread.java (setName): Throw NullPointerException, not
  2467. IllegalArgumentException.
  2468. (Thread): Likewise.
  2469. 1999-02-08 Andrew Haley <aph@cygnus.com>
  2470. * java/lang/natClass.cc (newInstance): Don't allow anyone to
  2471. create new Classes with Class.newInstance().
  2472. * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
  2473. semiciolon to end of an array Class's signature if the elements of
  2474. the array aren't themselves arrays.
  2475. * java/lang/natSystem.cc (arraycopy): The size of an element of an
  2476. array of objects is always sizeof(jobject), not the size of the
  2477. object to which the reference points.
  2478. 1999-02-08 Tom Tromey <tromey@cygnus.com>
  2479. * java/util/BitSet.java (and): Throw NullPointerException when
  2480. required.
  2481. (or): Likewise.
  2482. (xor): Likewise.
  2483. * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
  2484. if argument is negative.
  2485. (clear): Correctly compute `offset'. Throw
  2486. IndexOutOfBoundsException when required.
  2487. (set): Likewise.
  2488. (get): Likewise. Also, return correct value.
  2489. (ensure): Changed meaning of argument.
  2490. (toString): Wrap contents in `{}'; put spaces after commas.
  2491. (hashCode): Don't try to examine elements off the end of array.
  2492. (or): Correctly include bits past the end of this bit set.
  2493. (xor): Likewise.
  2494. Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
  2495. * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
  2496. instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
  2497. 1999-02-04 Andrew Haley <aph@cygnus.com>
  2498. * java/lang/natClass.cc (Class::forName): Remove code which mapped
  2499. '/' in signatures to '.'
  2500. (Class::getName): Likewise,
  2501. (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
  2502. signature.
  2503. * java/lang/natFirstThread.cc (run): Change '/' in main's
  2504. signature to '.'.
  2505. 1999-02-03 Andrew Haley <aph@cygnus.com>
  2506. * configure.host: -ffloat-store added when compiling libjava on
  2507. x86. fdlibm apparently relies on this.
  2508. * java/lang/ThreadGroup.java (add): throw an exception if the
  2509. ThreadGroup has been destroyed.
  2510. * java/lang/natMath.cc (round): Ensure correct NaN and overflow
  2511. behaviour.
  2512. 1999-01-27 Tom Tromey <tromey@cygnus.com>
  2513. * java/lang/StringBuffer.java (StringBuffer): Handle null
  2514. argument.
  2515. 1999-01-21 Tom Tromey <tromey@cygnus.com>
  2516. * java/lang/natFirstThread.cc (run): Don't require main to be
  2517. public.
  2518. Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
  2519. * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
  2520. 1999-01-20 Tom Tromey <tromey@cygnus.com>
  2521. * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
  2522. StringClass.
  2523. (rehash): Likewise.
  2524. (intern): Likewise.
  2525. (unintern): Likewise.
  2526. (_Jv_NewStringUtf8Const): Likewise.
  2527. * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
  2528. Character.isLetter, to see if character is self-quoting. Also,
  2529. correctly handle quoted characters.
  2530. (parse): Fixed typo. Also now throws ParseException.
  2531. 1999-01-15 Tom Tromey <tromey@cygnus.com>
  2532. * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
  2533. * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
  2534. _Jv_SyncInfo has `init' member.
  2535. * include/quick-threads.h (_Jv_MutexUnlock): Return result of
  2536. coop_mutex_unlock.
  2537. * java/lang/natObject.cc (_Jv_MonitorExit): Throw
  2538. IllegalMonitorStateException if unlock fails.
  2539. * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
  2540. zero.
  2541. (_Jv_NewObjectArray): Likewise.
  2542. 1999-01-14 Tom Tromey <tromey@cygnus.com>
  2543. * java/lang/Character.java (isJavaIdentifierPart): Allow
  2544. LETTER_NUMBER characters.
  2545. * chartables.pl (process_char): Fixed error messages.
  2546. * include/java-chartables.h: Rebuilt with UniData 2.1.8.
  2547. * chartables.pl: Updated comments. Changed detection of non-digit
  2548. numeric values (no longer miss \u00b2 and friends).
  2549. * java/lang/Character.java (isJavaIdentifierPart): Recognize
  2550. currency symbols and connector punctuation.
  2551. (isIdentifierIgnorable): Make 7f-9f ignorable.
  2552. * prims.cc (_Jv_NewObjectArray): Check for overflow.
  2553. (_Jv_NewPrimArray): Likewise.
  2554. (SIZE_T_MAX): New define.
  2555. * java/lang/ClassLoader.java (system): Now private and final.
  2556. * boehm.cc (_Jv_MarkObj): Handle case where object's class is
  2557. null.
  2558. * configure: Rebuilt.
  2559. * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
  2560. well.
  2561. * exception.cc: Include gansidecl.h.
  2562. 1999-01-14 Andrew Haley <aph@cygnus.com>
  2563. * java/lang/Math.java, java/lang/natMath.cc: min and max routines
  2564. corrected: they didn't treat -0.0 and NaNs correctly.
  2565. Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
  2566. * nogc.cc: Use calloc to zero out memory.
  2567. 1999-01-11 Tom Tromey <tromey@cygnus.com>
  2568. * java/lang/natClass.cc (isInstance): Return false if this class
  2569. is primitive, not if class of `obj' is primitive.
  2570. (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
  2571. * java/io/SequenceInputStream.java (close): Handle case where `in'
  2572. is already null.
  2573. * java/text/DateFormat.java (format): New method.
  2574. * mauve-libjava: Omit java.text.DateFormat.
  2575. 1999-01-08 Tom Tromey <tromey@cygnus.com>
  2576. * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
  2577. argument.
  2578. * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
  2579. argument.
  2580. (_Jv_CondNotifyAll): Likewise.
  2581. * configure: Rebuilt.
  2582. * configure.in: Change --enable-source-compilation logic to work
  2583. correctly.
  2584. 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
  2585. * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
  2586. and RUNTESTFLAGS from AM_MAKEFLAGS.
  2587. * configure.in: AM_RUNTESTFLAGS added.
  2588. * configure.host: AM_RUNTESTFLAGS added.
  2589. * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
  2590. * configure: rebuilt.
  2591. * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
  2592. * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
  2593. argv[] made conditional because embedded targets may not have
  2594. argv[].
  2595. * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
  2596. explanatory comments added in call to super.
  2597. * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
  2598. exception thrown in the test harness itself added.
  2599. * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
  2600. Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
  2601. * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
  2602. 1999-01-06 Tom Tromey <tromey@cygnus.com>
  2603. * java/io/natFile.cc (get_entry): New function.
  2604. (performList): Use get_entry.
  2605. * include/config.h.in: Rebuilt.
  2606. * acconfig.h (HAVE_READDIR_R): New define.
  2607. * configure: Rebuilt.
  2608. * configure.in: Look for readdir_r.
  2609. * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
  2610. * java/util/natDate.cc: Added copyright header.
  2611. 1999-01-05 Tom Tromey <tromey@cygnus.com>
  2612. * include/config.h.in: Rebuilt.
  2613. * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
  2614. HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
  2615. * configure: Rebuilt.
  2616. * configure.in: Check for access, stat, mkdir, rename, rmdir,
  2617. unlink, and realpath.
  2618. * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
  2619. (stat): Conditionalize on HAVE_STAT.
  2620. (attr): Likewise.
  2621. (getCanonicalPath): Conditionalize on HAVE_REALPATH.
  2622. (performMkdir): Conditionalize on HAVE_MKDIR.
  2623. (performRenameTo): Conditionalize on HAVE_RENAME.
  2624. (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
  2625. * include/config.h.in: Rebuilt.
  2626. * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
  2627. * configure: Rebuilt.
  2628. * configure.in: Check for gmtime_r and localtime_r. For cross
  2629. builds, assume they exist.
  2630. * mauve-libjava: Include java.text.DateFormatSymbols again.
  2631. * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
  2632. from setAmPmStrings.
  2633. * mauve-libjava: Omit java.text.DateFormatSymbols.
  2634. 1999-01-04 Tom Tromey <tromey@cygnus.com>
  2635. * java/io/PushbackReader.java: `off' already includes `numBytes'.
  2636. * java/io/LineNumberReader.java (read): Decrement `count' in
  2637. loop.
  2638. * java/io/BufferedWriter.java (write): Correctly determine when
  2639. incoming data would overrun buffer. Flush buffer if write causes
  2640. it to become full.
  2641. * java/io/BufferedOutputStream.java (write): Increment `count'
  2642. after copying data into buffer.
  2643. * java/io/FilterOutputStream.java (close): Call flush first.
  2644. * java/io/PipedReader.java (read): If read causes `out' to catch
  2645. up with `in', then set `in' to -1.
  2646. * java/io/LineNumberInputStream.java (read): If no bytes read,
  2647. return -1. If no bytes requested, return 0.
  2648. * java/lang/StringBuffer.java (insert): If `str' is null, use
  2649. string "null".
  2650. 1998-12-30 Anthony Green <green@cygnus.com>
  2651. * README: Removed.
  2652. * LIBJAVA_LICENSE, COPYING.LIB: Created.
  2653. 1998-12-23 Tom Tromey <tromey@cygnus.com>
  2654. * java/io/PushbackInputStream.java (read): `off' already includes
  2655. `numBytes'.
  2656. 1998-12-17 Tom Tromey <tromey@cygnus.com>
  2657. * Makefile.in: Rebuilt.
  2658. * Makefile.am (GCJ_canadian): Include target_alias.
  2659. * java/lang/natFirstThread.cc (run): Require main's class to be
  2660. public.
  2661. 1998-12-16 Tom Tromey <tromey@cygnus.com>
  2662. * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
  2663. * java/util/ResourceBundle.java (getBundle): Throw
  2664. NullPointerException if locale argument is null.
  2665. * java/lang/natClass.cc (forName): Throw NullPointerException if
  2666. argument is null.
  2667. Include NullPointerException.h.
  2668. 1998-12-14 Tom Tromey <tromey@cygnus.com>
  2669. * java/lang/Character.java (Character): Implement Comparable.
  2670. (compareTo): New methods.
  2671. * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
  2672. correct country and language codes.
  2673. (UK, US): New constants.
  2674. (setDefault): Language codes are lower-case.
  2675. * java/lang/natClass.cc (getDeclaredConstructor): New method.
  2676. (getDeclaredConstructors): Likewise.
  2677. (getDeclaredField): Likewise.
  2678. (getDeclaredFields): Likewise.
  2679. (getDeclaredMethod): Likewise.
  2680. (getDeclaredMethods): Likewise.
  2681. (getField): Likewise.
  2682. (getFields): Likewise.
  2683. (getMethod): Likewise.
  2684. (getMethods): Likewise.
  2685. * java/lang/Class.java: Declare new methods.
  2686. * java/lang/Class.h: Declare new methods.
  2687. * java/lang/natString.cc: Removed `#pragma implementation'.
  2688. * include/cni.h (_Jv_GetStringChars): New function.
  2689. * Makefile.in: Rebuilt.
  2690. * Makefile.am (java/lang/String.h): Don't generate definition for
  2691. _Jv_GetStringChars.
  2692. * java/lang/natString.cc: Added `#pragma implementation'.
  2693. * Makefile.in: Rebuilt.
  2694. * Makefile.am (libjava.zip): Put build directory first in class
  2695. path to avoid bug in compiler.
  2696. 1998-12-14 Anthony Green <green@cygnus.com>
  2697. * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
  2698. * include/javaprims.h: Add EventObject, ListResourceBundle and
  2699. ResourceBundle.
  2700. 1998-12-13 Anthony Green <green@cygnus.com>
  2701. * mauve-libjava: Run the ResourceBundle tests.
  2702. * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
  2703. NULL.
  2704. Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
  2705. * configure.in, configure: Make --enable-gcj-classes and
  2706. --enable-source-compilation the default. (Nervously...) Yeah!
  2707. Based on a patch from Tom Tromey.
  2708. 1998-12-13 Tom Tromey <tromey@cygnus.com>
  2709. * java/util/EventObject.java: New file.
  2710. * java/util/EventListener.java: New file.
  2711. * include/javaprims.h: Updated class declarations.
  2712. * Makefile.in: Rebuilt.
  2713. * Makefile.am (nat_headers): Added Constructor.h.
  2714. (java/lang/String.h): Don't inline String::length().
  2715. * java/lang/Class.h (getConstructor, getConstructors): Declare.
  2716. * java/lang/Class.java (initializeClass, hackRunInitializers,
  2717. hackTrampoline): No need to mark `final'.
  2718. (getConstructor, getConstructors): Declare.
  2719. * java/lang/reflect/Field.java (equals): New method.
  2720. * java/lang/natClass.cc (getConstructor): New method.
  2721. (getConstructors): Likewise.
  2722. Include Method.h, Field.h, Constructor.h.
  2723. * java/lang/reflect/Constructor.java: New file.
  2724. * java/lang/reflect/Method.java (toString): No space before open
  2725. paren.
  2726. (equals): Simplified.
  2727. 1998-12-13 Anthony Green <green@cygnus.com>
  2728. * java/util/ResourceBundle.java: New file.
  2729. * java/util/ListResourceBundle.java: New file.
  2730. 1998-12-12 Tom Tromey <tromey@cygnus.com>
  2731. * java/lang/System.java (in, out, err): Now buffered streams by
  2732. default.
  2733. * include/javaprims.h: Updated class declarations.
  2734. * Makefile.in: Rebuilt.
  2735. * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
  2736. InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
  2737. Long.h, Boolean.h.
  2738. (nat_files): Added natMethod.o.
  2739. * java/lang/reflect/natMethod.cc: New file.
  2740. * java/lang/reflect/Field.java (Field): Now extends
  2741. AccessibleObject.
  2742. * java/lang/reflect/AccessibleObject.java: New file.
  2743. * java/lang/reflect/InvocationTargetException.java: New file.
  2744. 1998-12-11 Tom Tromey <tromey@cygnus.com>
  2745. * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
  2746. java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
  2747. Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
  2748. * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
  2749. 1998-12-09 Tom Tromey <tromey@cygnus.com>
  2750. * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
  2751. HAVE_CTIME_R.
  2752. * java/lang/natCharacter.cc (toTitleCase): Handle case where
  2753. character is already titlecase.
  2754. * java/lang/Character.java (isJavaLetter): Follow spec.
  2755. (isJavaLetterOrDigit): Likewise.
  2756. * java/util/GregorianCalendar.java (gregorianCutover): Append
  2757. `L'.
  2758. * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
  2759. 1998-12-08 Tom Tromey <tromey@cygnus.com>
  2760. * java/lang/reflect/Modifier.java (toString): Replace second
  2761. `static' with `synchronized'.
  2762. * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
  2763. * java/lang/Object.h (Object::hack12_6): Declare.
  2764. * java/lang/Object.java (hack12_6): New function.
  2765. 1998-12-07 Tom Tromey <tromey@cygnus.com>
  2766. * include/java-array.h (__JArray::clone): Removed decl.
  2767. * prims.cc (__JArray::clone): Removed.
  2768. * java/lang/natObject.cc (clone): Incorporate code to clone an
  2769. array.
  2770. * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
  2771. (_Jv_FindArrayClass): Set dtable_method_count on new class.
  2772. Correctly use dtable_method_count.
  2773. 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
  2774. * java/lang/Double.java (isInfinite, isNaN): Handle correct
  2775. IEEE754 values.
  2776. 1998-12-06 Anthony Green <green@cygnus.com>
  2777. * mauve-libjava: Don't test ResourceBundle.
  2778. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  2779. More JDK 1.2 spec fixes:
  2780. * java/util/Date.java (millis): Now private.
  2781. * java/text/DateFormat.java (DateFormat): Constructor now
  2782. protected.
  2783. * java/lang/Void.java (Void): New private constructor.
  2784. * java/lang/System.java (System): New private constructor.
  2785. * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
  2786. body.
  2787. (currentClassLoader): New method.
  2788. (currentLoadedClass): New method.
  2789. * java/lang/Math.java (Math): New private constructor.
  2790. * java/lang/Compiler.java (Compiler): New private constructor.
  2791. * java/lang/Class.java (Class): New private constructor.
  2792. * java/lang/Double.java (toString): Removed access specifier from
  2793. two-argument `toString' method.
  2794. 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
  2795. * java/lang/s_rint.c (rint): Make the variable w volatile; this
  2796. causes it to be flushed from an fp register (where it may be
  2797. longer than double precision) to a double in memory. This is
  2798. essential to ensure correct rounding behaviour.
  2799. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  2800. * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
  2801. function.
  2802. * java/lang/Character.java (isIdentifierIgnorable): Added comment
  2803. explaining apparent divergence from JDK 1.2.
  2804. 1998-12-04 Per Bothner <bothner@cygnus.com>
  2805. * include/no-threads.h: Remove unused parameter names.
  2806. This silences a bunch of warnings.
  2807. 1998-12-04 Tom Tromey <tromey@cygnus.com>
  2808. * include/config.h.in: Rebuilt.
  2809. * acconfig.h (HAVE_CTIME_R): New symbol.
  2810. 1998-12-03 Tom Tromey <tromey@cygnus.com>
  2811. * mauve-libjava: Added many more categories to reject.
  2812. Changes to follow JDK1.2 spec:
  2813. * java/lang/System.java (arraycopy, init_properties, checkSetIO,
  2814. setErr, setIn, setOut): No need to be `final'.
  2815. * java/lang/natObject.cc (wait): `nanos' argument is an int.
  2816. * java/lang/Object.h (Object::wait): `nanos' argument is an int.
  2817. * java/lang/Object.java (wait): `nanos' argument is an int.
  2818. * java/lang/VirtualMachineError.java: Class is abstract.
  2819. * java/lang/ThreadDeath.java: Made constructors public.
  2820. * java/io/FileDescriptor.java (FileDescriptor): Added missing
  2821. constructor.
  2822. Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
  2823. * java/text/DateFormatSymbols.java (getAmPmStrings,
  2824. getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
  2825. Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
  2826. * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
  2827. writeDouble, writeByte, writeBytes, writeChar, writeChars,
  2828. writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
  2829. and 1.2.
  2830. * java/lang/IllegalThreadStateException.java
  2831. (IllegalThreadStateException): Changed extending class to match spec.
  2832. * java/lang/NumberFormatException.java
  2833. (java/lang/NumberFormatException): Changed extending class to match
  2834. spec.
  2835. * java/util/Observer.java (Observer): Changed sig to match JCL.
  2836. Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
  2837. * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
  2838. writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
  2839. signature to match JDK 1.1 and 1.2.
  2840. Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
  2841. * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
  2842. * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
  2843. * Makefile.in, configure: Rebuilt.
  2844. * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
  2845. name.
  2846. 1998-12-02 Tom Tromey <tromey@cygnus.com>
  2847. * mauve-libjava: New file.
  2848. The remaining `-W -Wall' fixes:
  2849. * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
  2850. avoid warning.
  2851. * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
  2852. `else'.
  2853. * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
  2854. warning.
  2855. * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
  2856. avoid warning.
  2857. * java/lang/e_log.c (__ieee754_log): Added braces to avoid
  2858. ambiguous `else'.
  2859. * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
  2860. warning.
  2861. * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
  2862. suggestion.
  2863. * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
  2864. suggestion.
  2865. * java/lang/mprec.c (Balloc): Removed unused variable.
  2866. (mult): Added parentheses per gcc suggestion.
  2867. (pow5mult): Likewise.
  2868. (lshift): Likewise.
  2869. (ulp): Likewise.
  2870. (b2d): Likewise.
  2871. (d2b): Likewise.
  2872. * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
  2873. suggestion. Added cast to `int' to avoid signed/unsigned
  2874. comparison.
  2875. * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
  2876. parameter.
  2877. (IsAssignableFrom): Likewise.
  2878. (_Jv_JNI_GetObjectField): Likewise.
  2879. (_Jv_JNI_GetByteField): Likewise.
  2880. (_Jv_JNI_GetShortField): Likewise.
  2881. (_Jv_JNI_GetIntField): Likewise.
  2882. (_Jv_JNI_GetLongField): Likewise.
  2883. (_Jv_JNI_GetStringLength): Likewise.
  2884. (_Jv_JNI_ToReflectedField): Likewise.
  2885. (_Jv_JNI_FromReflectedField): Likewise.
  2886. (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
  2887. * Makefile.in: Rebuilt.
  2888. * Makefile.am (AM_CFLAGS): Define conditionally.
  2889. (WARNINGS): New macro.
  2890. (AM_CXXFLAGS): Include WARNINGS.
  2891. * configure: Rebuilt.
  2892. * configure.in (USING_GCC): New conditional.
  2893. * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
  2894. * java/lang/Character.java: Changed classification constants to
  2895. type `byte' to match JDK 1.2 docs.
  2896. 1998-12-01 Tom Tromey <tromey@cygnus.com>
  2897. Some fixes to be `-W -Wall' clean:
  2898. * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
  2899. (_Jv_MarkArray): Likewise.
  2900. * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
  2901. (to_upper_title): Likewise.
  2902. (isTitleCase): Likewise.
  2903. (toTitleCase): Likewise.
  2904. (getNumericValue): Likewise.
  2905. (isLowerCase): Likewise.
  2906. * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
  2907. (avoids compiler warning).
  2908. * java/lang/natClass.cc (getDeclaredClasses): Always return a
  2909. value.
  2910. (getDeclaringClass): Likewise.
  2911. (_Jv_LookupInterfaceMethod): Likewise.
  2912. (_Jv_NewClass): Removed name of unused parameter.
  2913. * exception.cc (_Jv_type_matcher): Removed unused variable.
  2914. (_Jv_setup_eh_info): Removed name of unused parameter.
  2915. * prims.cc (_Jv_NewArray): Always return a value.
  2916. (_Jv_FindClassFromSignature): Likewise.
  2917. * include/java-field.h (getNameUtf8Const): Removed name of unused
  2918. parameter.
  2919. * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
  2920. unused parameter.
  2921. (_Jv_ThreadSetPriority): Likewise.
  2922. * java/lang/natString.cc (hashChars): Now static.
  2923. * java/lang/FirstThread.java (FirstThread): Now final.
  2924. * java/io/File.java (performMkdir, performRenameTo): Now private.
  2925. * java/lang/natSystem.cc (currentTimeMillis): Return a value even
  2926. if no time function defined.
  2927. * configure: Rebuilt.
  2928. * configure.in: Look for ctime_r, ctime.
  2929. * java/util/Date.java (toString): Now native.
  2930. * java/util/natDate.cc (toString): Rewrote.
  2931. 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
  2932. * Add LDFLAGS line to allow TX39 test cases to link when cross
  2933. compiling.
  2934. 1998-11-23 Anthony Green <green@cygnus.com>
  2935. * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
  2936. no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
  2937. quick-threads.cc, include/boehm-gc.h, include/cni.h,
  2938. include/java-array.h, include/java-assert.h, include/java-field.h,
  2939. include/javaprims.h, include/jni.h, include/jvm.h,
  2940. include/no-gc.h, include/no-threads.h, include/posix-threads.h,
  2941. include/quick-threads.h, java/io/BufferedInputStream.java,
  2942. java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
  2943. java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
  2944. java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
  2945. java/io/CharArrayWriter.java,
  2946. java/io/CharConversionException.java, java/io/DataInput.java,
  2947. java/io/DataInputStream.java, java/io/DataOutput.java,
  2948. java/io/DataOutputStream.java, java/io/EOFException.java,
  2949. java/io/File.java, java/io/FileDescriptor.java,
  2950. java/io/FileInputStream.java, java/io/FileNotFoundException.java,
  2951. java/io/FileOutputStream.java, java/io/FileReader.java,
  2952. java/io/FileWriter.java, java/io/FilenameFilter.java,
  2953. java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
  2954. java/io/FilterReader.java, java/io/FilterWriter.java,
  2955. java/io/IOException.java, java/io/InputStream.java,
  2956. java/io/InputStreamReader.java,
  2957. java/io/InterruptedIOException.java,
  2958. java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
  2959. java/io/OutputStream.java, java/io/OutputStreamWriter.java,
  2960. java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
  2961. java/io/PipedReader.java, java/io/PipedWriter.java,
  2962. java/io/PrintStream.java, java/io/PrintWriter.java,
  2963. java/io/PushbackInputStream.java, java/io/PushbackReader.java,
  2964. java/io/RandomAccessFile.java, java/io/Reader.java,
  2965. java/io/SequenceInputStream.java, java/io/Serializable.java,
  2966. java/io/StreamTokenizer.java,
  2967. java/io/StringBufferInputStream.java, java/io/StringReader.java,
  2968. java/io/StringWriter.java, java/io/SyncFailedException.java,
  2969. java/io/UTFDataFormatException.java,
  2970. java/io/UnsupportedEncodingException.java, java/io/Writer.java,
  2971. java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
  2972. java/io/natFileDescriptorPosix.cc,
  2973. java/lang/AbstractMethodError.java,
  2974. java/lang/ArithmeticException.java,
  2975. java/lang/ArrayIndexOutOfBoundsException.java,
  2976. java/lang/ArrayStoreException.java, java/lang/Boolean.java,
  2977. java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
  2978. java/lang/Class.java, java/lang/ClassCastException.java,
  2979. java/lang/ClassCircularityError.java,
  2980. java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
  2981. java/lang/ClassNotFoundException.java,
  2982. java/lang/CloneNotSupportedException.java,
  2983. java/lang/Cloneable.java, java/lang/Comparable.java,
  2984. java/lang/Compiler.java, java/lang/Double.java,
  2985. java/lang/Error.java, java/lang/Exception.java,
  2986. java/lang/ExceptionInInitializerError.java,
  2987. java/lang/FirstThread.java, java/lang/Float.java,
  2988. java/lang/IllegalAccessError.java,
  2989. java/lang/IllegalAccessException.java,
  2990. java/lang/IllegalArgumentException.java,
  2991. java/lang/IllegalMonitorStateException.java,
  2992. java/lang/IllegalStateException.java,
  2993. java/lang/IllegalThreadStateException.java,
  2994. java/lang/IncompatibleClassChangeError.java,
  2995. java/lang/IndexOutOfBoundsException.java,
  2996. java/lang/InstantiationError.java,
  2997. java/lang/InstantiationException.java, java/lang/Integer.java,
  2998. java/lang/InternalError.java, java/lang/InterruptedException.java,
  2999. java/lang/LinkageError.java, java/lang/Long.java,
  3000. java/lang/Math.java, java/lang/NegativeArraySizeException.java,
  3001. java/lang/NoClassDefFoundError.java,
  3002. java/lang/NoSuchFieldError.java,
  3003. java/lang/NoSuchFieldException.java,
  3004. java/lang/NoSuchMethodError.java,
  3005. java/lang/NoSuchMethodException.java,
  3006. java/lang/NullPointerException.java, java/lang/Number.java,
  3007. java/lang/NumberFormatException.java, java/lang/Object.h,
  3008. java/lang/Object.java, java/lang/OutOfMemoryError.java,
  3009. java/lang/Process.java, java/lang/Runnable.java,
  3010. java/lang/Runtime.java, java/lang/RuntimeException.java,
  3011. java/lang/SecurityException.java, java/lang/SecurityManager.java,
  3012. java/lang/Short.java, java/lang/StackOverflowError.java,
  3013. java/lang/String.java, java/lang/StringBuffer.java,
  3014. java/lang/StringIndexOutOfBoundsException.java,
  3015. java/lang/System.java, java/lang/Thread.java,
  3016. java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
  3017. java/lang/Throwable.java, java/lang/UnknownError.java,
  3018. java/lang/UnsatisfiedLinkError.java,
  3019. java/lang/UnsupportedOperationException.java,
  3020. java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
  3021. java/lang/Void.java, java/lang/natCharacter.cc,
  3022. java/lang/natClass.cc, java/lang/natDouble.cc,
  3023. java/lang/natFirstThread.cc, java/lang/natFloat.cc,
  3024. java/lang/natMath.cc, java/lang/natObject.cc,
  3025. java/lang/natRuntime.cc, java/lang/natString.cc,
  3026. java/lang/natSystem.cc, java/lang/natThread.cc,
  3027. java/lang/reflect/Field.java, java/lang/reflect/Member.java,
  3028. java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
  3029. java/text/DateFormat.java, java/text/DateFormatSymbols.java,
  3030. java/text/FieldPosition.java, java/text/Format.java,
  3031. java/text/NumberFormat.java, java/text/ParseException.java,
  3032. java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
  3033. java/util/BitSet.java, java/util/Calendar.java,
  3034. java/util/ConcurrentModificationException.java,
  3035. java/util/Date.java, java/util/Dictionary.java,
  3036. java/util/EmptyStackException.java, java/util/Enumeration.java,
  3037. java/util/GregorianCalendar.java, java/util/Hashtable.java,
  3038. java/util/Locale.java, java/util/MissingResourceException.java,
  3039. java/util/NoSuchElementException.java, java/util/Observable.java,
  3040. java/util/Observer.java, java/util/Properties.java,
  3041. java/util/Random.java, java/util/SimpleTimeZone.java,
  3042. java/util/Stack.java, java/util/StringTokenizer.java,
  3043. java/util/TimeZone.java, java/util/TooManyListenersException.java,
  3044. java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
  3045. copyright notices.
  3046. * exception.cc: Include eh-common.h instead of duplicating
  3047. code.
  3048. 1998-11-23 Tom Tromey <tromey@cygnus.com>
  3049. * configure.host: Don't add `-O2' to libjava_flags. Only add
  3050. `-Os' to libjava_flags once.
  3051. 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
  3052. * Makefile.am: add LIBJAVA_JAVAFLAGS.
  3053. * Makefile.in: likewise
  3054. * acconfig.h: add ECOS conditional for configure.h
  3055. * config.h.in: likewise
  3056. * configure: add test for --with-ecos
  3057. * configure.in: likewise
  3058. * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
  3059. rename call to avoid name clash.
  3060. * java/lang/natSystem.cc: add eCos clock support.
  3061. * java/util/natGregorianCalendar.cc: add eCos support.
  3062. 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  3063. * Makefile.am, Makefile.in, configure.host: tx39 build option
  3064. "-G 0" added.
  3065. Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
  3066. * java/io/BufferedReader.java: Added more comments for clarity.
  3067. (mark): Used more mnemonic name for local var extraBuffSpace.
  3068. * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
  3069. confusion with private method of same name in superclass.
  3070. (skipRedundantLF): Set fields in special case to avoid infinite
  3071. recursion. Check if markPos has been invalidated in special case.
  3072. (readLine): Rewritten to use readLine method of superclass.
  3073. (skip): Incorporated code from lineEnd.
  3074. Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
  3075. * java/io/BufferedReader.java (readLine): New method.
  3076. (lineEnd): new private method.
  3077. (mark): Track special case for readLine of getting '\r' at the
  3078. end of the buffer.
  3079. (reset): Ditto.
  3080. (read): Ditto.
  3081. (fill): Ditto.
  3082. (skip): Ditto.
  3083. * java/io/InputStreamReader.java (read): Return number chars skipped
  3084. rather than requested.
  3085. * java/lang/StringBuffer.java (append): Update count and differentiate
  3086. between field and local variable.
  3087. * java/util/Date.java (parseTz): Evaluate in minutes rather than
  3088. seconds. Deal with military style time.
  3089. (parse): Consistently treat all timezones in minutes until final
  3090. calculation. Flag as non-local timezone. Return value in milliseconds.
  3091. (setTime): Adjust for year offset from 1900.
  3092. (UTC): Adjust for year offset from 1900.
  3093. 1998-11-17 Tom Tromey <tromey@cygnus.com>
  3094. * configure: Rebuilt.
  3095. * configure.in: Switch on host, not target.
  3096. * Makefile.in: Rebuilt.
  3097. * Makefile.am (GCJ_no): New macro.
  3098. (GCJ): Use @CANADIAN@.
  3099. (GCJH_no): New macro
  3100. (GCJH_canadian): New macro.
  3101. (GCJH): Use @CANADIAN@.
  3102. (ZIP_no): New macro.
  3103. (ZIP_canadian): New macro.
  3104. (ZIP): Use @CANADIAN@.
  3105. * aclocal.m4, configure: Rebuilt.
  3106. * configure.in (CANADIAN): Compute and subst.
  3107. Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
  3108. * java/io/FileDescriptor.java (finalize): Only close file
  3109. descriptor if valid.
  3110. 1998-11-17 Tom Tromey <tromey@cygnus.com>
  3111. * prims.cc (_Jv_InitRuntime): Removed.
  3112. 1998-11-16 Tom Tromey <tromey@cygnus.com>
  3113. * java/io/FileOutputStream.java (close): Only close file
  3114. descriptor if valid.
  3115. (finalize): New method.
  3116. * prims.cc (_Jv_NewObjectArray): Set vtbl last.
  3117. (_Jv_NewPrimArray): Likewise.
  3118. * boehm.cc (_Jv_RegisterFinalizer): Use
  3119. GC_REGISTER_FINALIZER_NO_ORDER.
  3120. (GC_GENERIC_MALLOC): New define.
  3121. (_Jv_AllocObj): Use it.
  3122. (_Jv_AllocArray): Likewise.
  3123. (_Jv_AllocBytes): Likewise.
  3124. (_Jv_MarkObj): Just return if vtbl not set.
  3125. (_Jv_MarkArray): Likewise.
  3126. (MAYBE_MARK): New macro; use everywhere.
  3127. (_Jv_MarkObj): Mark fields belonging to superclasses as well.
  3128. Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
  3129. * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
  3130. to a jlong before calculation to prevent overflow.
  3131. 1998-11-16 Tom Tromey <tromey@cygnus.com>
  3132. * Makefile.in: Rebuilt.
  3133. * Makefile.am (nat_headers): Fixed typo.
  3134. 1998-11-15 Tom Tromey <tromey@cygnus.com>
  3135. * java/lang/Class.h (Class::getName): Removed definition.
  3136. * Makefile.in: Rebuilt.
  3137. * Makefile.am (nat_headers): Added InstantiationException.h,
  3138. NoSuchMethodException.h.
  3139. * java/lang/natClass.cc (clinit_name): Renamed from init_name.
  3140. (init_name): New global.
  3141. (hackRunInitializers): Use clinit_name.
  3142. Include InstantiationException.h, NoSuchMethodException.h.
  3143. (newInstance): Do some error checking (but not all). Call
  3144. constructor.
  3145. (forName): Throw exception if class not found.
  3146. (getName): New method.
  3147. (forName): Transform class name from external format to internal
  3148. format before lookup.
  3149. 1998-11-15 Anthony Green <green@cygnus.com>
  3150. * java/lang/Class.h (Class::forName): Method is static.
  3151. * java/lang/natClass.cc (newInstance): Add simple implementation.
  3152. (forName): Ditto.
  3153. Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
  3154. * java/lang/Class.h (Class::accflags): Must be unsigned short (not
  3155. int), for compatibility with jc1.
  3156. 1998-11-14 Tom Tromey <tromey@cygnus.com>
  3157. * include/config.h.in: Rebuilt.
  3158. * acconfig.h (LINUX_THREADS): New define.
  3159. * configure: Rebuilt.
  3160. * configure.in: Define LINUX_THREADS if using POSIX threads on
  3161. Linux. Look for pthread_mutexattr_setkind_np function.
  3162. * posix-threads.cc (throw_cleanup): New function.
  3163. (really_start): Push cleanup function.
  3164. (_Jv_ThreadCancel): New function.
  3165. (daemon_mutex, daemon_cond, non_daemon_count): New globals.
  3166. (_Jv_ThreadInitData): Set `exception' field in new structure.
  3167. (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
  3168. thread.
  3169. (_Jv_ThreadWait): New function.
  3170. (_Jv_InitThreads): Initialize daemon globals.
  3171. (FLAG_DAEMON): New macro.
  3172. (really_start): Notify daemon_cond when non-daemon thread exits.
  3173. Include <java/lang/System.h>.
  3174. (struct starter): `object' field now a thread.
  3175. (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
  3176. * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
  3177. (_Jv_ThreadWait): Removed definition.
  3178. (_Jv_Thread_t): Added `exception' field.
  3179. (_Jv_ThreadCancel): Removed definition.
  3180. 1998-11-13 Tom Tromey <tromey@cygnus.com>
  3181. * Makefile.in: Rebuilt.
  3182. * Makefile.am (libjava.zip): Compute javac before changing
  3183. directory.
  3184. * Makefile.in: Rebuilt.
  3185. * Makefile.am (libjava.zip): Include directory entries.
  3186. * Makefile.in: Rebuilt.
  3187. * Makefile.am (expanded): New macro.
  3188. (GCJ): Use it.
  3189. 1998-11-12 Tom Tromey <tromey@cygnus.com>
  3190. * prims.cc (clone): New function.
  3191. * include/java-array.h (__JArray::clone): Removed definition.
  3192. * java/lang/natObject.cc (clone): Don't assert that class is not
  3193. an array; array's `clone' method just calls this one.
  3194. * Makefile.in: Rebuilt.
  3195. * Makefile.am (libjava.zip): Renamed target from classes.stamp.
  3196. Now creates zip file. Changed all users.
  3197. (ZIP): New macro.
  3198. (data_DATA): New macro.
  3199. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  3200. * configure: Rebuilt.
  3201. * configure.in: Recognize --enable-java-gc, not --enable-gc.
  3202. Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
  3203. * java/io/InputStream.java (reset): Add msg to thrown exception.
  3204. Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
  3205. * java/io/LineNumberInputStream.java: Rewritten.
  3206. * java/io/StringBufferInputStream.java: Removed extraneous import.
  3207. Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
  3208. * java/io/StringBufferInputStream.java: Rewritten.
  3209. * java/util/Date.java (parseMonth): Optimize.
  3210. (parseDayOfWeek): Created.
  3211. (parse): Optimize to use parseDayOfWeek.
  3212. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  3213. * java/lang/StringBuffer.java (append): Handle case where STR is
  3214. `null'.
  3215. * include/javaprims.h: Regenerated class declarations.
  3216. * configure: Rebuilt.
  3217. * configure.in: Added --enable-gcj-classes,
  3218. --enable-single-compilation, --enable-source-compilation flags.
  3219. * Makefile.in: Rebuilt.
  3220. * Makefile.am (java_io_files): New macro.
  3221. (java_lang_files): Likewise.
  3222. (java_text_files): Likewise.
  3223. (java_util_files): Likewise.
  3224. (java_files): Use new macros.
  3225. (java-io.o): New target.
  3226. (java-lang.o): Likewise.
  3227. (java-text.o): Likewise.
  3228. (java-util.o): Likewise.
  3229. (src_io_files): New macro.
  3230. (src_lang_files): Likewise.
  3231. (src_text_files): Likewise.
  3232. (src_util_files): Likewise.
  3233. (class_io_files): New macro.
  3234. (class_lang_files): Likewise.
  3235. (class_text_files): Likewise.
  3236. (class_util_files): Likewise.
  3237. (class_files): Use new macros.
  3238. (javao_files): Define conditionally.
  3239. (.java.o): New target.
  3240. ($(javao_files)): New target.
  3241. (GCJ): new macro.
  3242. (GCJH): Added $(EXEEXT).
  3243. (CLASSPATH_ENV): Removed.
  3244. (GCJCOMPILE): New macro.
  3245. Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
  3246. * java/util/Date.java (parse): Written from scratch.
  3247. 1998-11-11 Tom Tromey <tromey@cygnus.com>
  3248. * java/lang/Throwable.java (toString): Correct sense of test for
  3249. determining when to include detail message in result.
  3250. * java/lang/ThreadDeath.java (ThreadDeath): Added missing
  3251. constructor.
  3252. Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
  3253. * java/lang/Class.h: Use _Jv_RegisterClasses, not
  3254. _Jv_RegisterClass.
  3255. * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
  3256. (_Jv_RegisterClass): Use it.
  3257. * include/jvm.h (_Jv_RegisterClasses): Declare.
  3258. * java/lang/natObject.cc (init): Removed.
  3259. (sync_init): Never call _Jv_InitializeSyncMutex.
  3260. (_Jv_InitializeSyncMutex): Don't set `init'.
  3261. * prims.cc (JvRunMain): Don't run init functions.
  3262. Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
  3263. * java/lang/natClass.cc (initializeClass): Set state before
  3264. resolving constants.
  3265. * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
  3266. (STATE_RESOLVED): New macro.
  3267. (initializeClass): Call resolveConstants.
  3268. (hackRunInitializers): Don't call resolveConstants.
  3269. (_Jv_FindArrayClass): Move short-circuit return for primitive
  3270. element types earlier in function.
  3271. 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
  3272. * prims.cc (no_memory): New global.
  3273. (_Jv_makeUtf8Const): Throw no_memory.
  3274. (_Jv_AllocObject): Likewise.
  3275. (_Jv_NewObjectArray): Likewise.
  3276. (_Jv_NewPrimArray): Likewise.
  3277. (JvRunMain): Initialize no_memory.
  3278. Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
  3279. * java/io/FileInputStream.java: Corrected date comment.
  3280. * java/io/SequenceInputStream.java: Rewritten.
  3281. Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
  3282. * java/lang/FirstThread.java (die): New method.
  3283. * java/lang/natFirstThread.cc (die): Removed.
  3284. (DIE): New macro.
  3285. (run): Use `DIE', not `die'.
  3286. Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
  3287. * java/io/CharArrayReader.java (read): Move check into synchronized
  3288. block to prevent a close while in progress.
  3289. (reset): Ditto.
  3290. (skip): Ditto.
  3291. * java/io/PushbackReader.java (read): Ditto.
  3292. (ready): Ditto.
  3293. (unread): Ditto.
  3294. * java/io/StringReader.java (mark): Ditto.
  3295. (read): Ditto.
  3296. (reset): Ditto.
  3297. (skip): Ditto.
  3298. Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
  3299. * java/io/PipedInputStream.java: Updated status.
  3300. (connect): Added code to prevent infinite recursion and to
  3301. differentiate exception causes.
  3302. (read): Added code to differentiate exception causes.
  3303. (receive): Made exception pass string with the cause.
  3304. * java/io/PipedOutputStream.java: Updated status.
  3305. (connect): Added code to call connect at the other end of the pipe.
  3306. Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
  3307. * java/io/PipedInputStream.java (connect): Throw exception if
  3308. already connected to the same output stream.
  3309. (read): Do bounds checking first.
  3310. Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
  3311. * java/io/PipedInputStream.java: Added private boolean outClosed.
  3312. (available): Removed check if output stream is open.
  3313. (close): Mark the buffer as empty so available returns 0.
  3314. (read): Check if the output stream was closed and then return EOF
  3315. when the buffer is empty.
  3316. (receive): Mark the output stream as closed when passed a -1.
  3317. * java/io/PipedOutputStream.java (close): Notify the input stream
  3318. that there's no more data coming.
  3319. (connect): Added a FIXME comment to note more coordination needed
  3320. with PipedInputStream.
  3321. (flush): Added a FIXME comment to mark what this method might do
  3322. instead of nothing.
  3323. Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
  3324. * java/io/PipedInputStream.java: Rewritten.
  3325. 1998-10-30 Tom Tromey <tromey@cygnus.com>
  3326. * java/lang/Throwable.java: Rewrote from scratch.
  3327. * java/lang/Class.h (Class): Don't mention newMultiArray.
  3328. * prims.cc (newMultiArray): Removed.
  3329. (_Jv_NewMultiArray): Removed.
  3330. (newArray): Removed.
  3331. (new_multi_array): New function.
  3332. (_Jv_NewMultiArray): Rewrote from scratch.
  3333. * include/javaprims.h: Regenerated class declarations.
  3334. * classes.pl (scan): Don't declare PrimClass.
  3335. * include/cni.h (JvPrimClass): Use new names for classes.
  3336. * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
  3337. added _Jv_PrimClass.
  3338. * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
  3339. (_Jv_initPrimClass): Removed.
  3340. (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
  3341. (_Jv_AllocObject): Added comment.
  3342. (_Jv_NewObjectArray): Likewise.
  3343. (_Jv_NewPrimArray): Likewise.
  3344. 1998-10-29 Tom Tromey <tromey@cygnus.com>
  3345. * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
  3346. (_Jv_FindArrayClass): Use dtable_method_count to compute size of
  3347. new dtable.
  3348. * java/lang/Class.h (Class): Added `dtable_method_count' field.
  3349. * java/lang/natObject.cc (init): New global.
  3350. (sync_init): Call _Jv_InitializeSyncMutex if required.
  3351. * Makefile.in: Rebuilt.
  3352. * Makefile.am (nat_headers): Added ClassLoader.h.
  3353. * include/jvm.h (_Jv_FindClassFromSignature): Declare.
  3354. * java/lang/Class.h (Class): simpleLookupClass, insertClass,
  3355. internalAddClass, lookupArray no longer friends.
  3356. _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
  3357. _Jv_FindArrayClass now friends.
  3358. * java/lang/natClass.cc (HASH_LEN): New macro.
  3359. (HASH_UTF): Likewise.
  3360. (loaded_classes): New global.
  3361. (_Jv_FindClass): New function.
  3362. (ClassClass): New define.
  3363. (_Jv_FindClassInCache): New function.
  3364. (_Jv_RegisterClass): Likewise.
  3365. (_Jv_NewClass): Likewise.
  3366. Include <string.h>
  3367. (ObjectClass): New define.
  3368. (CloneableClass): New define.
  3369. * prims.cc (_Jv_FindClass): Removed.
  3370. (simpleLookupClass): Removed.
  3371. (insertClass): Removed.
  3372. (CLASSHASHSZ): Removed.
  3373. (classPool): Removed.
  3374. (_Jv_RegisterClass): Removed.
  3375. (internalAddClass): Removed.
  3376. (ClassClass): Removed.
  3377. (RuntimeClass): Removed.
  3378. (lookupArray): Removed.
  3379. (CloneableClass): Removed.
  3380. (CLASSMAXSIG): Removed.
  3381. Rearranged file to group related functions together.
  3382. (_Jv_IsInstanceOf): Moved to natClass.cc.
  3383. (abort_final): Removed.
  3384. Removed some unused includes.
  3385. (classFromSig): Removed.
  3386. (_Jv_FindClassFromSignature): New function.
  3387. (_Jv_initPrimClass): Renamed.
  3388. (getClass): Removed.
  3389. Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
  3390. * java/io/FileDescriptor.java (finalize): Throws IOException
  3391. instead of Throwable.
  3392. * java/io/FileInputStream.java: Rewritten.
  3393. * java/io/StreamTokenizer.java (nextToken): Unread newline character
  3394. at the end of a comment.
  3395. 1998-10-29 Tom Tromey <tromey@cygnus.com>
  3396. * include/javaprims.h: Regenerated class declarations.
  3397. * classes.pl (scan): Don't special-case ClassLoader.
  3398. * prims.cc (processClass): Removed.
  3399. (_Jv_InitClass): Removed.
  3400. Removed all CSTATE_ macros.
  3401. (resolveConstants): Removed.
  3402. (MAXDIMS): Removed.
  3403. (_Jv_NewMultiArray): Cleaned up.
  3404. * Makefile.in: Rebuilt.
  3405. * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
  3406. * java/lang/Class.h (Class): Declare new methods. processClass no
  3407. longer a friend.
  3408. * java/lang/Class.java (hackTrampoline): New method.
  3409. (initializeClass): Declare.
  3410. (hackRunInitializers): Declare.
  3411. * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
  3412. (initializeClass): New method.
  3413. (hackRunInitializers): New method.
  3414. (init_name, void_signature): Moved from prims.cc.
  3415. (_Jv_InitClass): New function.
  3416. (isAssignableFrom): Don't call processClass.
  3417. (STATE_NOTHING): New macro.
  3418. (resolveConstants): New function.
  3419. Include Thread.h.
  3420. (ErrorClass): New define.
  3421. * java/lang/Class.java (getClassLoader): Declare.
  3422. * java/lang/ClassLoader.java: Rewrote from scratch.
  3423. * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
  3424. AbstractMethodError.h, IllegalAccessError.h,
  3425. NoClassDefFoundError.h.
  3426. * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
  3427. * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
  3428. longer static. Changed return type.
  3429. * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
  3430. * java/lang/Class.h (Class): findMethodLocal no longer a friend.
  3431. * prims.cc (findMethodLocal): Removed.
  3432. (processClass): Use _Jv_GetMethodLocal.
  3433. 1998-10-28 Tom Tromey <tromey@cygnus.com>
  3434. * prims.cc (_Jv_LookupInterfaceMethod): Removed.
  3435. * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
  3436. friend.
  3437. * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
  3438. (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
  3439. * include/jni.h: Added copyright header.
  3440. * include/javaprims.h: Added copyright header.
  3441. * include/java-field.h: Added copyright header.
  3442. * include/java-array.h: Added copyright header.
  3443. * include/cni.h: Added copyright header.
  3444. * include/javaprims.h: Regenerated class declarations using
  3445. classes.pl; now they are complete.
  3446. * classes.pl: New file.
  3447. * java/lang/natMath.cc: Include <config.h>.
  3448. * java/lang/reflect/natField.cc: Include <config.h>.
  3449. * java/util/NativeUtil.java: Removed.
  3450. * Makefile.in: Rebuilt.
  3451. * Makefile.am (nat_headers): Added Math.h.
  3452. * java/lang/Math.h: Removed.
  3453. * java/util/natGregorianCalendar.cc: Added copyright header.
  3454. Include <config.h>.
  3455. * java/lang/natFloat.cc: Added copyright header.
  3456. * java/lang/Byte.java: Added copyright header.
  3457. * java/lang/Void.java: Added copyright header.
  3458. * java/lang/Short.java: Added copyright header.
  3459. Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
  3460. * include/javaprims.h (java::io): Added bunch of missing classes.
  3461. * java/io/DataInputStream.java (readLine): Added a special case
  3462. for handling BufferedInputStream data to reduce the likelihood
  3463. of a pushback error.
  3464. (skipBytes): Added code to handle negative number of skip bytes.
  3465. * java/io/StreamTokenizer.java: Rewritten.
  3466. 1998-10-28 Tom Tromey <tromey@cygnus.com>
  3467. * java/util/natGregorianCalendar.cc (computeFields): Call
  3468. getRawOffset as a method.
  3469. * include/javaprims.h (java::io): Added FilterOutputStream.
  3470. * Makefile.in: Rebuilt.
  3471. * Makefile.am (nat_headers): Added PrintStream.h,
  3472. FilterOutputStream.h.
  3473. * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
  3474. PrintStream.h.
  3475. (die): New function.
  3476. (run): Die if `main' not found, is not public, or is not static.
  3477. * boehm.cc (_Jv_MarkObj): Use new field names.
  3478. * include/java-field.h (JvGetFirstInstanceField): Use new field
  3479. names.
  3480. (JvNumInstanceFields): Likewise.
  3481. * java/lang/natClass.cc (isAssignableFrom): Use new field names.
  3482. (getInterfaces): Likewise.
  3483. * prims.cc (CLASS_CONSTANTS): Removed.
  3484. (CLASS_CONST_SIZE): Likewise.
  3485. (CLASS_CONST_TAG): Likewise.
  3486. (CLASS_CONST_DATA): Likewise.
  3487. (CLASS_CONST_UTF8): Likewise.
  3488. (WORD2UTF): Likewise.
  3489. (CLASS_CLASS): Likewise.
  3490. (CLASS_PRIM_SIG): Likewise.
  3491. (CLASS_ARRAY_CACHE): Likewise.
  3492. (HASH_CHARS): Likewise.
  3493. (hashClassName): Likewise.
  3494. Many changes to use new field names.
  3495. * java/lang/Class.h (Class): Renamed fields to track compiler.
  3496. 1998-10-27 Tom Tromey <tromey@cygnus.com>
  3497. * java/lang/natClass.cc: Use #pragma implementation.
  3498. (getComponentType): Moved into header.
  3499. (getModifiers): Likewise.
  3500. (getName): Likewise.
  3501. (getSuperclass): Likewise.
  3502. (isArray): Likewise.
  3503. (isPrimitive): Likewise.
  3504. * include/jvm.h (_Jv_FindClass): Declare.
  3505. * java/lang/natFirstThread.cc (run): Updated for new Class.h.
  3506. * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
  3507. * include/javaprims.h: Use _Jv_Method, not JvMethod.
  3508. * java/lang/Class.h: Rewrote from scratch.
  3509. * prims.cc: Many changes to work with new Class.h.
  3510. * include/java-field.h (CLASS_FIELDS): Removed.
  3511. (CLASS_SFIELDS): Likewise.
  3512. (CLASS_IFIELDS): Likewise.
  3513. (CLASS_NFIELDS): Likewise.
  3514. (CLASS_NIFIELDS): Likewise.
  3515. (CLASS_NSFIELDS): Likewise.
  3516. (CLASS_FSIZE): Likewise.
  3517. (JvGetFirstInstanceField): Rewrote.
  3518. (JvNumInstanceFields): Likewise.
  3519. * java/lang/Object.h: Added copyright comment.
  3520. Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
  3521. * java/text: New package directory.
  3522. * java/text/FieldPosition.java: New class.
  3523. * java/text/ParsePosition.java: New class.
  3524. * java/text/ParseException.java: New Exception class.
  3525. * java/text/Format.java: New class.
  3526. * java/text/NumberFormat.java: New (empty placeholder) class.
  3527. * java/text/DateFormatSymbols.java: New class (no Locales support).
  3528. * java/text/DateFormat.java: New Format class (incomplete).
  3529. * java/text/SimpleDateFormat.java: New DateFormat class.
  3530. * include/javaprims.h (java::test): Added new package and classes.
  3531. * java/util/Calendar.java (clone): New method.
  3532. * java/util/Date.java (toString): Added non-native implementation.
  3533. (parse): Made public instead of synchronized.
  3534. * java/util/natDate.cc (toString): Removed.
  3535. * java/util/natGregorianCalendar.cc (computeFields):
  3536. Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
  3537. 1998-10-27 Tom Tromey <tromey@cygnus.com>
  3538. * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
  3539. * prims.cc (lookupArray): Added explanatory comment.
  3540. * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
  3541. class. Mark the class of each object.
  3542. (_Jv_MarkArray): Mark the object's class.
  3543. * configure: Rebuilt.
  3544. * configure.in: Create java-gc.h.
  3545. * include/boehm-gc.h: New file.
  3546. * include/no-gc.h: New file.
  3547. * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
  3548. defined.
  3549. * java/lang/Object.h: Include java-gc.h.
  3550. (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
  3551. friends, if defined.
  3552. * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
  3553. signature.
  3554. (_Jv_MarkArray): Renamed from mark_array; changed signature.
  3555. 1998-10-26 Tom Tromey <tromey@cygnus.com>
  3556. * java/lang/natCharacter.cc (isSpaceChar): Look for line and
  3557. paragraph separators, not numbers.
  3558. * java/io/Writer.java (write): Removed write(char) to avoid
  3559. ambiguity.
  3560. * java/util/Properties.java: Rewrote from scratch.
  3561. * include/javaprims.h (java::io): Added PrintWriter,
  3562. BufferedWriter, PushbackReader.
  3563. Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
  3564. * java/lang/System.java: exit() is a static method.
  3565. 1998-10-26 Tom Tromey <tromey@cygnus.com>
  3566. * java/lang/natString.cc (_Jv_NewStringUTF): Use
  3567. _Jv_strLengthUtf8.
  3568. (_Jv_NewStringUtf8Const): Likewise.
  3569. * include/jvm.h (_Jv_strLengthUtf8): Declare.
  3570. * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
  3571. * java/lang/Object.h (Object): Add mark_array as friend function.
  3572. * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
  3573. _Jv_AllocBytes, to ensure that header is marked.
  3574. * boehm.cc (mark_obj): Push sync_info field for all objects, not
  3575. just Objects.
  3576. (mark_array): Push sync_info field for array.
  3577. 1998-10-24 Tom Tromey <tromey@cygnus.com>
  3578. * java/lang/String.java (String): Updated for StringBuffer
  3579. change.
  3580. * java/util/BitSet.java: Renamed field (data->bits) to conform to
  3581. serialization spec.
  3582. * java/lang/StringBuffer.java: Renamed fields to conform to
  3583. serialization spec: buffer->value, next->count, copy->shared.
  3584. Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
  3585. * java/util/TimeZone.java: New class.
  3586. * java/util/SimpleTimeZone.java: New class.
  3587. * java/util/Locale.java: New file.
  3588. * java/util/Calendar.java: Make almost complete.
  3589. * java/util/GregorianCalendar.java
  3590. * java/util/natGregorianCalendar.cc: New file.
  3591. * java/util/Date.java: Re-written from scratch.
  3592. * java/util/natDate.cc (setTime): Removed - no longer native.
  3593. * include/javaprims.h (java::util): Add new classes.
  3594. * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
  3595. (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
  3596. Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
  3597. * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
  3598. returning it as a jint.
  3599. 1998-10-23 Tom Tromey <tromey@cygnus.com>
  3600. * prims.cc (arg_vec, main_group, main_thread): New globals.
  3601. (JvRunMain): Use them.
  3602. Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
  3603. * java/io/DataInputStream.java: Rewritten.
  3604. * java/io/DataOutputStream.java (writeUTF): OR secondary and
  3605. tertiary bytes with 0x80 per spec.
  3606. 1998-10-23 Tom Tromey <tromey@cygnus.com>
  3607. * java/lang/String.java (init): Changed name of `copy' argument.
  3608. * java/lang/natString.cc (init): Inverted sense of `copy'
  3609. argument.
  3610. * java/lang/Object.h (Object): Declare mark_obj as a friend.
  3611. * java/lang/Class.h (Class): Declare mark_obj as a friend.
  3612. * boehm.cc (ObjectClass): New define.
  3613. (ClassClass): Likewise.
  3614. (mark_obj): Special-case Object and Class.
  3615. * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
  3616. * java/util/BitSet.java: Rewrote from scratch.
  3617. * prims.cc (lookupArray): Removed useless cast.
  3618. * java/lang/natObject.cc: Use `#pragma implementation'.
  3619. * java/lang/String.java (init): Added `copy' argument.
  3620. (String): Look in StringBuffer to find char array.
  3621. * java/lang/natString.cc (init): Added `copy' argument.
  3622. * java/lang/StringBuffer.java: Rewrote from scratch.
  3623. * java/lang/Compiler.java: Rewrote from scratch.
  3624. * java/lang/Throwable.java: Don't use NativeLang.
  3625. * include/javaprims.h (java::lang): Don't mention NativeLang.
  3626. * java/lang/Process.java: Rewrote from scratch.
  3627. * java/lang/SecurityManager.java (classLoaderDepth): Commented
  3628. out.
  3629. (currentClassLoader): Likewise.
  3630. (currentLoadedClass): Likewise.
  3631. * java/lang/natClass.cc (getClassLoader): Commented out.
  3632. * java/lang/Class.java (getClassLoader): Commented out.
  3633. * java/lang/Compiler.java: Removed.
  3634. * java/lang/NativeLang.java: Removed.
  3635. * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
  3636. * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
  3637. * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
  3638. (_Jv_hashUtf8String): Now static.
  3639. * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
  3640. name of return type.
  3641. * java/lang/Class.h (Class): Declare checkMemberAccess.
  3642. * Makefile.in: Rebuilt.
  3643. * Makefile.am (nat_headers): Added Member.h.
  3644. * java/lang/natClass.cc: Include Member.h.
  3645. (getDeclaredClasses): Call checkMemberAccess.
  3646. * java/lang/Class.java (checkMemberAccess): Call
  3647. SecurityManager.checkMemberAccess.
  3648. Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
  3649. * java/lang/SecurityManager.java: Rewritten.
  3650. Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
  3651. * java/applet/Applet.java, java/applet/AppletContext.java,
  3652. java/applet/AppletStub.java, java/applet/AudioClip.java,
  3653. java/awt/AWTError.java, java/awt/AWTException.java,
  3654. java/awt/BorderLayout.java, java/awt/Button.java,
  3655. java/awt/Canvas.java, java/awt/CardLayout.java,
  3656. java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
  3657. java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
  3658. java/awt/Color.java, java/awt/Component.java,
  3659. java/awt/Container.java, java/awt/Dialog.java,
  3660. java/awt/Dimension.java, java/awt/Event.java,
  3661. java/awt/FileDialog.java, java/awt/FlowLayout.java,
  3662. java/awt/Font.java, java/awt/FontMetrics.java,
  3663. java/awt/Frame.java, java/awt/Graphics.java,
  3664. java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
  3665. java/awt/GridLayout.java, java/awt/Image.java,
  3666. java/awt/Insets.java, java/awt/Label.java,
  3667. java/awt/LayoutManager.java, java/awt/List.java,
  3668. java/awt/MediaTracker.java, java/awt/Menu.java,
  3669. java/awt/MenuBar.java, java/awt/MenuComponent.java,
  3670. java/awt/MenuContainer.java, java/awt/MenuItem.java,
  3671. java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
  3672. java/awt/Rectangle.java, java/awt/Scrollbar.java,
  3673. java/awt/TextArea.java, java/awt/TextComponent.java,
  3674. java/awt/TextField.java, java/awt/Toolkit.java,
  3675. java/awt/Window.java, java/awt/image/ColorModel.java,
  3676. java/awt/image/CropImageFilter.java,
  3677. java/awt/image/DirectColorModel.java,
  3678. java/awt/image/FilteredImageSource.java,
  3679. java/awt/image/ImageConsumer.java,
  3680. java/awt/image/ImageFilter.java,
  3681. java/awt/image/ImageObserver.java,
  3682. java/awt/image/ImageProducer.java,
  3683. java/awt/image/IndexColorModel.java,
  3684. java/awt/image/MemoryImageSource.java,
  3685. java/awt/image/PixelGrabber.java,
  3686. java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
  3687. java/awt/peer/CanvasPeer.java,
  3688. java/awt/peer/CheckboxMenuItemPeer.java,
  3689. java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
  3690. java/awt/peer/ComponentPeer.java,
  3691. java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
  3692. java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
  3693. java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
  3694. java/awt/peer/MenuBarPeer.java,
  3695. java/awt/peer/MenuComponentPeer.java,
  3696. java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
  3697. java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
  3698. java/awt/peer/TextAreaPeer.java,
  3699. java/awt/peer/TextComponentPeer.java,
  3700. java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
  3701. java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
  3702. java/net/DatagramPacket.java, java/net/DatagramSocket.java,
  3703. java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
  3704. java/net/MalformedURLException.java, java/net/NativeNet.java,
  3705. java/net/ProtocolException.java, java/net/ServerSocket.java,
  3706. java/net/Socket.java, java/net/SocketException.java,
  3707. java/net/SocketImpl.java, java/net/SocketImplFactory.java,
  3708. java/net/URL.java, java/net/URLConnection.java,
  3709. java/net/URLEncoder.java, java/net/URLStreamHandler.java,
  3710. java/net/URLStreamHandlerFactory.java,
  3711. java/net/UnknownHostException.java,
  3712. java/net/UnknownServiceException.java: Removed.
  3713. 1998-10-22 Tom Tromey <tromey@cygnus.com>
  3714. * prims.cc (_Jv_AllocObject): Register finalizer if class'
  3715. finalizer is not Object.finalize.
  3716. (internalAddClass): Don't set `final' member of class.
  3717. * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
  3718. other places that know about finalize() location.
  3719. * java/lang/Class.h (Class): Removed `final' field.
  3720. * aclocal.m4, configure: Rebuilt.
  3721. * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
  3722. AC_CHECK_PROGS; otherwise the CXX cache variable might not be
  3723. set.
  3724. * configure.in (AC_OUTPUT): Pass CXX to config.status.
  3725. * Makefile.in: Rebuilt.
  3726. * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
  3727. 1998-10-21 Tom Tromey <tromey@cygnus.com>
  3728. * java/lang/Object.java (finalize): Move to be first method in
  3729. class.
  3730. * configure: Rebuilt.
  3731. * configure.in (GCINCS): Include contents of boehm-cflags file.
  3732. Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  3733. * java/lang/ArrayIndexOutOfBoundsException.java
  3734. (ArrayIndexOutOfBoundsException): Fixed string literal.
  3735. * java/lang/StringIndexOutOfBoundsException.java
  3736. (StringIndexOutOfBoundsException): Fixed string literal.
  3737. 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  3738. * natFileDescriptorEcos.cc added.
  3739. * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
  3740. 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
  3741. * acconfig.h: test for __int32_t and __uint32_t added.
  3742. * include/config.h.in: test for __int32_t and __uint32_t added.
  3743. * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
  3744. * java/lang/mprec.h: test for __int32_t and __uint32_t added.
  3745. * configure.in: test for __int32_t and __uint32_t added.
  3746. * configure: test for __int32_t and __uint32_t added.
  3747. * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
  3748. * configure.in: Test for --enable ecos and link
  3749. natFileDescriptor.cc to natFileDescriptorEcos.cc or
  3750. natFileDescriptorPosix.cc
  3751. * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
  3752. Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
  3753. * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
  3754. in isn't negative.
  3755. * java/io/CharArrayReader.java (close): Synchronize on lock
  3756. object per Reader contract.
  3757. (read): Synchronize on lock obj. Verify that reader wasn't closed.
  3758. (reset): Synchronize on lock obj. Verify that reader wasn't closed.
  3759. (skip): Synchronize on lock obj. Verify that reader wasn't closed.
  3760. Ensure that arg passed in isn't negative.
  3761. * java/io/FilterReader.java (FilterReader): Use the lock obj when
  3762. constructing the superclass.
  3763. * java/io/PushbackReader.java (close): Synchronize on lock
  3764. object per Reader contract.
  3765. (read): Synchronize on lock obj. Verify that reader wasn't closed.
  3766. (ready): Synchronize on lock obj. Throw IOException if reader
  3767. wasn't closed.
  3768. (reset): Synchronize on lock obj. Verify that reader wasn't closed.
  3769. (skip): Synchronize on lock obj. Verify that reader wasn't closed.
  3770. Ensure that arg passed in isn't negative.
  3771. (unread): Synchronize on lock obj. Verify that reader wasn't closed.
  3772. * java/io/StringReader.java: Created.
  3773. Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
  3774. * java/io/CharArrayReader.java (mark): Removed synchronized modifier
  3775. to match JCL.
  3776. (read): Removed synchronized modifier to match JCL.
  3777. (reset): Removed synchronized modifier to match JCL.
  3778. (skip): Removed synchronized modifier to match JCL.
  3779. Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
  3780. * java/io/PushbackReader.java (PushbackReader): Made
  3781. constructors public.
  3782. 1998-10-17 Tom Tromey <tromey@cygnus.com>
  3783. * java/io/PushbackInputStream.java (PushbackInputStream): Made
  3784. constructors public.
  3785. 1998-10-16 Anthony Green <green@cygnus.com>
  3786. * aclocal.m4, configure: Rebuilt.
  3787. * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
  3788. configure.host.
  3789. * configure.host: Rewrote.
  3790. * Makefile.in: Rebuilt.
  3791. * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
  3792. (AM_CFLAGS): New macro.
  3793. ($(c_files)): Use COMPILE macro.
  3794. (EXTRA_libjava_a_SOURCES): Added dummy file to work around
  3795. automake problem(s).
  3796. Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
  3797. * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
  3798. * java/io/CharArrayReader.java: Created.
  3799. Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
  3800. * java/io/PushbackInputStream.java (PushbackInputStream): Changed
  3801. size check to allow 0 per JCL.
  3802. * java/io/PushbackReader.java: Created.
  3803. 1998-10-16 Tom Tromey <tromey@cygnus.com>
  3804. * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
  3805. <sys/time.h> includes.
  3806. * java/io/natFile.cc: Conditionalize <unistd.h> include.
  3807. * include/no-threads.h: Conditionalize <unistd.h> include on
  3808. HAVE_UNISTD_H.
  3809. Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
  3810. * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
  3811. is defined.
  3812. Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
  3813. * java/io/FilterReader.java: Created.
  3814. Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
  3815. * java/io/PushbackInputStream.java: Rewritten.
  3816. * java/io/BufferedInputStream.java (BufferedInputStream): Check
  3817. that size passed to constructor is legal.
  3818. (read): Check that args passed in are legal.
  3819. (skip): Rewritten to get rid of the temporary buffer.
  3820. (refill): Added marklimit check to grow the buffer.
  3821. * java/io/ByteArrayInputStream.java (read): Optimized invalid args
  3822. check.
  3823. (bytesAvail): Removed.
  3824. (read): Changed bytesAvail to Math.min.
  3825. (skip): Changed bytesAvail to Math.min.
  3826. * java/io/InputStream.java (read): Got rid of extraneous exceptions
  3827. from the throws clause.
  3828. (skip): Rewritten to use a temporary buffer.
  3829. Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
  3830. * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
  3831. some target OSes
  3832. * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
  3833. * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
  3834. to write the double one word at a time.
  3835. Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
  3836. * java/io/BufferedInputStream.java: Rewritten.
  3837. 1998-10-12 Tom Tromey <tromey@cygnus.com>
  3838. * jni.cc: Include config.h and stddef.h.
  3839. * java/lang/Class.h (_dispatchTable): Removed again.
  3840. Removed all ACC_* defines again.
  3841. Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
  3842. * Makefile.am (nat_files): Add netField.o.
  3843. (libjava_a_SOURCES): Add jni.cc.
  3844. (java/lang/reflect/Field.h): New rule.
  3845. * Makefile.in: Re-generated.
  3846. * include/javaprims.h: Add some extra class and typedefs.
  3847. * include/jni.h: New file.
  3848. * jni.cc: New file.
  3849. * include/java-field.h: New file.
  3850. * include/jvm.h: #include <java-field.h>.
  3851. * boehm.cc: #include <java-field.h>.
  3852. * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
  3853. * java/lang/reflect/Member.java: New class.
  3854. * java/lang/reflect/Field.java: New class. (Very incomplete.)
  3855. * java/lang/reflect/natField.cc: New file. (Very incomplete.)
  3856. Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
  3857. * Makefile.in, aclocal.m4, configure, test/Makefile.in,
  3858. testsuite/Makefile.in: Rebuilt.
  3859. * Makefile.am, acinclude.m4, configure.in: Add multilib support.
  3860. * configure.host: Created.
  3861. 1998-10-10 Tom Tromey <tromey@cygnus.com>
  3862. * java/lang/natObject.cc (sync_init): Always allocate a new
  3863. sync_info.
  3864. 1998-10-09 Tom Tromey <tromey@cygnus.com>
  3865. * java/io/ByteArrayInputStream.java (mark): Renamed from
  3866. `mark_FIXME'.
  3867. * java/io/FileOutputStream.java (finalize): Removed.
  3868. * java/io/FileDescriptor.java (finalize): New method.
  3869. Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
  3870. * ByteArrayInputStream.java: Corrected status comment.
  3871. Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
  3872. * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
  3873. 1998-10-08 Tom Tromey <tromey@cygnus.com>
  3874. * prims.cc (lookupArray): Use static array to initialize list of
  3875. interfaces.
  3876. Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
  3877. * prims.cc (lookupArray): Initialize the msize for new
  3878. array classes.
  3879. Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
  3880. * configure: Rebuilt.
  3881. * configure.in: Check for fsync and sleep.
  3882. * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
  3883. * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
  3884. HAVE_SLEEP. Include config.h.
  3885. * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
  3886. * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
  3887. with HAVE_FSYNC.
  3888. 1998-10-08 Tom Tromey <tromey@cygnus.com>
  3889. * java/io/natFile.cc: Don't include SecurityManager.h.
  3890. (performList): Renamed.
  3891. (performMkdir): Likewise.
  3892. (performRenameTo): Likewise.
  3893. (performDelete): Likewise.
  3894. Include <stdlib.h>.
  3895. * java/io/File.java (performDelete): Renamed from natDelete.
  3896. (list): Now written in Java.
  3897. (performList): New method.
  3898. (performMkdir): New method.
  3899. (mkdir): Now written in Java.
  3900. (performRenameTo): New method.
  3901. (renameTo): Now written in Java.
  3902. 1998-10-06 Tom Tromey <tromey@cygnus.com>
  3903. * Makefile.in: Rebuilt.
  3904. * Makefile.am (ETAGS_ARGS): New macro.
  3905. (TAGS_DEPENDENCIES): Likewise.
  3906. Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
  3907. * Makefile.in: Rebuilt.
  3908. * Makefile.am: Use -classpath option with javac.
  3909. Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
  3910. * java/io/FileOutputStream.java (finalize): Call
  3911. super.finalize().
  3912. Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
  3913. * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
  3914. with newlib's libm.
  3915. * java/lang/mprec.c: Ditto.
  3916. * java/lang/mprec.h: Include math.h for HUGE_VAL when
  3917. cross-compiling.
  3918. Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
  3919. * java/io/InputStream.java (skip): Make local var i a long.
  3920. Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
  3921. * java/lang/natObject.cc (clone): Use memcpy, not memmove.
  3922. * prims.cc (lookupArray): Use memcpy, not memmove.
  3923. * include/config.h.in: Rebuilt.
  3924. * acconfig.h (HAVE_MEMCPY): Added.
  3925. * configure: Rebuilt.
  3926. * configure.in: Check for memcpy again.
  3927. * java/io/RandomAccessFile.java (RandomAccessFile): Use
  3928. String.compareTo, not ==.
  3929. * java/lang/Class.h (Class): Use _Jv_DispatchTable.
  3930. (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
  3931. * java/lang/natObject.cc (struct _dispatchTable): Removed.
  3932. * include/jvm.h (struct _Jv_DispatchTable): New structure.
  3933. * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
  3934. into new array's dtable.
  3935. (_Jv_AllocObject): Use _Jv_DispatchTable.
  3936. (_Jv_NewPrimArray): Likewise.
  3937. (_Jv_NewObjectArray): Likewise.
  3938. Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  3939. * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
  3940. offending index value.
  3941. (_Jv_NewPrimArray): Throw NegativeArraySizeException when
  3942. appropriate.
  3943. * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
  3944. * java/lang/Throwable.java: (Throwable): fixed argument to this().
  3945. Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
  3946. * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
  3947. * java/io/OutputStream.java (write): Use off and len parameters to
  3948. output partial byte array.
  3949. * java/io/BufferedReader.java, java/io/FileReader.java,
  3950. java/io/InputStreamReader.java, java/io/LineNumberReader.java,
  3951. java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
  3952. java/io/Reader.java, java/io/UnsupportedEncodingException.java,
  3953. java/io/Writer.java: Added COPYRIGHT-TBD comment.
  3954. * include/javaprims.h (java::lang): Added
  3955. ExceptionInInitializerError, IllegalStateException,
  3956. NoSuchFieldException, and UnsupportedOperationException.
  3957. Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
  3958. * java/lang/natObject.cc (CloneableClass): Is a Class, not a
  3959. Class*.
  3960. * include/java-array.h (__JArray): Added clone method.
  3961. * prims.cc (CloneableClass): New define.
  3962. (lookupArray): Initialize array class to indicate that it
  3963. implements Cloneable.
  3964. * java/lang/Class.h: Removed all ACC_* defines.
  3965. * prims.cc: Include Modifier.h.
  3966. (_Jv_LookupInterfaceMethod): Use methods in
  3967. java.lang.reflect.Modifier, not ACC_ defines.
  3968. * java/lang/Class.h (Class): Declare getClasses,
  3969. getDeclaredClasses, getDeclaringClass, getModifiers,
  3970. * java/lang/Class.java: Rewrote from scratch.
  3971. * include/javaprims.h (java::lang): Added reflect and
  3972. reflect::Modifier.
  3973. * Makefile.in: Rebuilt.
  3974. * Makefile.am (nat_headers): Added Modifier.h.
  3975. * prims.cc (_Jv_IsInstanceOf): Return false if class is
  3976. primitive.
  3977. Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
  3978. * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
  3979. instead of test and abort.
  3980. * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
  3981. remove compiler warning.
  3982. Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  3983. * java/lang/natDouble.cc: zero terminate string.
  3984. * strtod.c: Set errno if no digits are found in fraction.
  3985. Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
  3986. * java/lang/reflect/Modifier.java: New file.
  3987. * java/lang/VirtualMachineError.java: Rewrote from scratch.
  3988. * java/lang/VerifyError.java: Rewrote from scratch.
  3989. * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
  3990. * java/lang/UnknownError.java: Rewrote from scratch.
  3991. * java/lang/StackOverflowError.java: Rewrote from scratch.
  3992. * java/lang/OutOfMemoryError.java: Rewrote from scratch.
  3993. * java/lang/InternalError.java: Rewrote from scratch.
  3994. * java/lang/IllegalAccessError.java: Rewrote from scratch.
  3995. * java/lang/ExceptionInInitializerError.java: New file.
  3996. * java/lang/Error.java: Rewrote from scratch.
  3997. * java/lang/ClassFormatError.java: Rewrote from scratch.
  3998. * java/lang/ClassCircularityError.java: Rewrote from scratch.
  3999. * java/lang/AbstractMethodError.java: Rewrote from scratch.
  4000. * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
  4001. * java/lang/NoSuchFieldError.java: Rewrote from scratch.
  4002. * java/lang/LinkageError.java: Rewrote from scratch.
  4003. * java/lang/IncompatibleClassChangeError.java: Rewrote from
  4004. scratch.
  4005. * java/lang/NoSuchMethodError.java: Rewrote from scratch.
  4006. * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
  4007. * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
  4008. friend.
  4009. * include/cni.h (JvAllocObject): Moved from prims.cc.
  4010. Include Class.h.
  4011. * prims.cc (JvAllocObject): Moved to cni.h.
  4012. (_Jv_AllocObject): Use _Jv_FinalizeObject.
  4013. (finalize_name): Removed.
  4014. Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
  4015. * java/lang/Class.h (Class): Added size() method.
  4016. * prims.cc (_Jv_MonitorEnter): Removed.
  4017. (_Jv_MonitorExit): Removed.
  4018. * java/lang/Object.h (JvSyncInfo): Removed.
  4019. * Makefile.in: Rebuilt.
  4020. * Makefile.am (nat_headers): Added Cloneable.h,
  4021. CloneNotSupportedException.h.
  4022. * java/lang/Object.h: Rewrote.
  4023. * java/lang/natObject.cc: Rewrote from scratch.
  4024. * java/lang/Object.java: Rewrote from scratch.
  4025. * java/io/natFile.cc: Conditionally include <dirent.h>.
  4026. (list): If no <dirent.h>, always return NULL.
  4027. * configure: Rebuilt.
  4028. * configure.in: Check for dirent.h.
  4029. * prims.cc (lookupArray): Don't use sprintf.
  4030. * java/util/Hashtable.java (containsKey): Use `abs' to compute
  4031. initial index.
  4032. (get): Likewise.
  4033. (put): Likewise.
  4034. (rehash): Likewise.
  4035. (remove): Likewise.
  4036. * java/util/Hashtable.java (hsize): Renamed from size to avoid
  4037. name conflict with method.
  4038. * include/javaprims.h (java::util): Added HashtableEntry.
  4039. Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
  4040. * java/util/Hashtable.java: Rewritten.
  4041. Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
  4042. * java/io/natFileDescriptor.cc (write): Correctly test `write'
  4043. return value.
  4044. (write): Likewise.
  4045. * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
  4046. not `curr_nt'.
  4047. * posix-threads.cc (_Jv_CondWait): Now returns int.
  4048. * include/javaprims.h (java::lang): Added
  4049. IllegalMonitorStateException.
  4050. * Makefile.in: Rebuilt.
  4051. * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
  4052. * include/no-threads.h (_Jv_CondDestroy): Removed.
  4053. (_Jv_MutexDestroy): Removed.
  4054. (_Jv_CondWait): Now returns int.
  4055. (_Jv_CondNotify): Likewise. Added mutex argument.
  4056. (_Jv_CondNotifyAll): Likewise.
  4057. (_Jv_MutexLock): Always succeed.
  4058. (_Jv_MutexUnlock): Likewise.
  4059. * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
  4060. (_Jv_HaveMutexDestroy): Define.
  4061. (_Jv_CondNotify): Now returns int. Added mutex argument.
  4062. (_Jv_CondNotifyAll): Likewise.
  4063. * include/quick-threads.h (_Jv_CondDestroy): Removed.
  4064. (_Jv_MutexDestroy): Removed.
  4065. (_Jv_CondWait): Now returns int.
  4066. (_Jv_CondNotify): Likewise. Added mutex argument.
  4067. (_Jv_CondNotifyAll): Likewise.
  4068. * java/lang/natObject.cc (finalize_sync_info): New function.
  4069. (init_mutex): Initialize `init' and register finalizer if
  4070. required.
  4071. (CHECK): New macro.
  4072. (init_mutex): Use it.
  4073. (notify): Use it.
  4074. (notifyAll): Use it.
  4075. (wait): Use it.
  4076. (notify): Throw IllegalMonitorStateException on failure.
  4077. (notifyAll): Likewise.
  4078. (wait): Likewise. Also, throw InterruptedException if
  4079. appropriate.
  4080. Include cni.h, Thread.h, IllegalMonitorStateException.h,
  4081. InterruptedException.h, IllegalArgumentException.h.
  4082. * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
  4083. * java/lang/natString.cc: Renamed all `JvPriv' functions.
  4084. * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
  4085. * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
  4086. * java/lang/natObject.cc: Renamed all `JvPriv' functions.
  4087. * java/lang/natThread.cc: Renamed all `JvPriv' functions.
  4088. * quick-threads.cc: Renamed all `JvPriv' functions.
  4089. * prims.cc: Renamed all `JvPriv' functions.
  4090. * posix-threads.cc: Renamed all `JvPriv' functions.
  4091. * nogc.cc: Renamed all `JvPriv' functions.
  4092. * no-threads.cc: Renamed all `JvPriv' functions.
  4093. * boehm.cc: Renamed all `JvPriv' functions.
  4094. * include/quick-threads.h: Renamed all `JvPriv' functions.
  4095. * include/posix-threads.h: Renamed all `JvPriv' functions.
  4096. * include/no-threads.h: Renamed all `JvPriv' functions.
  4097. * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
  4098. * include/no-threads.h (JvPrivCondWait): Wrote minimal
  4099. implementation.
  4100. (JvPrivCondNotify): Do nothing.
  4101. (JvPrivCondNotifyAll): Do nothing.
  4102. * prims.cc (processClass): Handle case where state is
  4103. DOING_CONSTINIT.
  4104. * java/lang/natFirstThread.cc: Include <stdlib.h>
  4105. * configure: Rebuilt.
  4106. * configure.in: Fixed sense of --enable-libjava-debug.
  4107. * java/lang/natThread.cc (join): Declare `t' outside the loop so
  4108. it can be used afterward by the assertion.
  4109. * configure: Rebuilt.
  4110. * configure.in: When cross-compiling, assume alloca.
  4111. * java/lang/natDouble.cc: Updated alloca magic to avoid use of
  4112. __builtin_alloca (autoconf docs are wrong here).
  4113. * java/io/natFileDescriptor.cc (close): Set fd to -1 before
  4114. closing.
  4115. (available): Use `FD_ZERO' (typo fix).
  4116. Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
  4117. * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
  4118. java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
  4119. struct _Jv_Bigint.
  4120. * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
  4121. java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
  4122. struct _Jv_reent.
  4123. * java/lang/natDouble.cc: layout changed to match GNU coding standard.
  4124. Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
  4125. * java/lang/natDouble.cc: Declare alloca safely.
  4126. * configure, include/config.h.in: Rebuilt.
  4127. * configure.in: Add alloca check.
  4128. Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
  4129. * java/lang/natThread.cc (finish_): Hold mutex for interrupt
  4130. condition while calling notify.
  4131. (join): Remove `curr_nt' from `nt's join list, not vice versa.
  4132. (interrupt): Hold mutex for interrupt condition while calling
  4133. notify.
  4134. * java/lang/natString.cc (init): Allocate and try to read `count'
  4135. characters, not `count - offset' characters.
  4136. * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
  4137. Correctly compute `count'.
  4138. * java/lang/Boolean.java (getBoolean): Return false if property
  4139. not found.
  4140. * java/lang/System.java (setProperties): Set prop_init.
  4141. Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
  4142. * java/io/PrintStream.java (println): Use line.separator, not
  4143. file.separator.
  4144. * java/lang/System.java (out, err): Make both autoflush streams.
  4145. * java/io/ByteArrayOutputStream.java (write): Increment `count'.
  4146. * include/config.h.in: Rebuilt.
  4147. * acconfig.h (HAVE_MEMCPY): Removed.
  4148. * configure: Rebuilt.
  4149. * configure.in: Never define HAVE_MEMCPY.
  4150. * java/lang/natString.cc: Don't include OutOfMemoryError.h or
  4151. Class.h.
  4152. (_Jv_AllocString): Use JvAllocObject again.
  4153. * java/lang/Class.h (thread): New field.
  4154. (_Jv_AllocString): No longer a friend.
  4155. * prims.cc (processClass): Removed dead code. Changed to more
  4156. closely follow the Java Language Specification.
  4157. (processClass): Return early if already at the right state.
  4158. * prims.cc (JvNewStringUTF): Removed.
  4159. * include/cni.h (JvNewStringUTF): New function.
  4160. (_Jv_NewStringUTF): Declare as `extern "C"'.
  4161. * java/lang/natString.cc (_Jv_NewStringUTF): New function.
  4162. * java/lang/natDouble.cc: Added copyright info and header
  4163. comment. Include <stdlib.h>.
  4164. (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
  4165. bytes as are chars in string.
  4166. Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
  4167. * java/util/Hashtable.java (hkeys): Member renamed from to avoid
  4168. clash with method.
  4169. (hsize): Likewise.
  4170. * java/lang/System.java (init_properties): Now native.
  4171. * java/lang/natSystem.cc (init_properties): New method.
  4172. Include java/util/Properties.h.
  4173. * Makefile.in: Rebuilt.
  4174. * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
  4175. OutputStreamWriter.h, ByteArrayInputStream.h,
  4176. InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
  4177. Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
  4178. SyncFailedException.h, EOFException.h, FileNotFoundException.h,
  4179. Properties.h, Hashtable.h, Dictionary.h.
  4180. (CFLAGS): Removed.
  4181. * include/javaprims.h (java::io): Added Reader, Writer,
  4182. InputStreamReader, OutputStreamWriter,
  4183. UnsupportedEncodingException, ByteArrayInputStream,
  4184. ByteArrayOutputStream, EOFException, SyncFailedException,
  4185. PushbackInputStream.
  4186. (java::lang): Added Cloneable.
  4187. (java::util): Added NoSuchElementException, VectorEnumeration,
  4188. Dictionary, HashtableEnumeration, PropertiesEnumeration.
  4189. * java/io/PipedReader.java: New file.
  4190. Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
  4191. * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
  4192. up A-Z.
  4193. * java/io/io-defs.h: Removed.
  4194. * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
  4195. (FileInputStream): Use new constructor. Can throw IOException.
  4196. * java/lang/System.java (getProperty): Don't throw
  4197. NullPointerException.
  4198. * java/io/RandomAccessFile.java: Rewrote from scratch.
  4199. * java/io/natFileDescriptor.cc: Include EOFException.h.
  4200. (seek): New method.
  4201. (length): New method.
  4202. (getFilePointer): New method.
  4203. (read): New method.
  4204. (available): New method.
  4205. * java/io/FileDescriptor.java (SET, CUR): New constants.
  4206. (seek, length, getFilePointer, read, available): New decls.
  4207. * java/io/PipedWriter.java: New file.
  4208. * java/io/StringWriter.java: New file.
  4209. * java/io/CharArrayWriter.java: New file.
  4210. * java/io/CharConversionException.java: New file.
  4211. * java/io/BufferedWriter.java: New file.
  4212. * java/io/FilterWriter.java: New file.
  4213. * java/io/FileWriter.java: New file.
  4214. * java/lang/natString.cc: Include ByteArrayOutputStream.h,
  4215. OutputStreamWriter.h, NullPointerException.h,
  4216. ByteArrayInputStream.h, InputStreamReader.h.
  4217. (getBytes): New method.
  4218. (init): Throw NullPointerException.
  4219. (init): New function.
  4220. * java/lang/String.java (getBytes): Added missing decl.
  4221. (getBytes): New method.
  4222. (String): Added byte[]-based constructors.
  4223. (copyValueOf): Wrote.
  4224. (init): Declare variant which takes byte array and encoding.
  4225. Import java.io.UnsupportedEncodingException.
  4226. * java/io/File.java: Rewrote from scratch.
  4227. * java/io/natFileDescriptor.cc: Rewrote from scratch.
  4228. * java/io/FileDescriptor.java: Rewrote from scratch.
  4229. * java/io/FilenameFilter.java: Rewrote from scratch.
  4230. Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
  4231. * java/io/SyncFailedException.java: New file.
  4232. * java/io/UTFDataFormatException.java: Rewrote from scratch.
  4233. * java/io/InterruptedIOException.java: Rewrote from scratch.
  4234. * java/io/FileNotFoundException.java: Rewrote from scratch.
  4235. * java/io/EOFException.java: Rewrote from scratch.
  4236. * java/io/IOException.java: Rewrote from scratch.
  4237. * java/io/PrintStream.java: Rewrote from scratch.
  4238. * java/io/DataOutputStream.java: Rewrote from scratch.
  4239. * java/io/BufferedOutputStream.java: Rewrote from scratch.
  4240. * java/io/FilterOutputStream.java: Rewrote from scratch.
  4241. * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
  4242. * java/io/PipedOutputStream.java: Rewrote from scratch.
  4243. * java/io/FileOutputStream.java: Rewrote from scratch.
  4244. * java/io/OutputStream.java: Rewrote from scratch.
  4245. * java/io/DataOutput.java: Rewrote from scratch.
  4246. Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
  4247. * prims.cc (_Jv_CheckCast): Add missing ! operator.
  4248. Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
  4249. * configure.in: Add --enable-libjava-debug
  4250. * Makefile.am (nat_headers): Add java/lang/Float.h and
  4251. java/lang/Double.h
  4252. * acconfig.h: Add DEBUG and HAVE_MEMCPY.
  4253. * Makefile.in, configure, include/config.h.in: Rebuilt.
  4254. Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  4255. * java/lang/Float.java: Rewritten
  4256. * java/lang/Double.java: Rewritten
  4257. * java/lang/natFloat.cc: toString() added.
  4258. * java/lang/natDouble.cc: toString() added.
  4259. * java/lang/natDouble.cc: doubleValueOf() added.
  4260. * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
  4261. java/lang/strtod.c: added.
  4262. * ieeefp.h: __sparc added.
  4263. * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
  4264. Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
  4265. * include/javaprims.h (java::lang): Added
  4266. CloneNotSupportedException.
  4267. * java/lang/Object.java (clone): No longer native. Implemented.
  4268. * java/lang/natObject.cc (clone): Removed.
  4269. Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
  4270. * prims.cc: Don't make definitions `extern "C"'.
  4271. (_Jv_RegisterClass): Renamed from registerClass.
  4272. * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
  4273. (_Jv_NewArray): Likewise.
  4274. (_Jv_NewMultiArray): Likewise.
  4275. (_Jv_CheckCast): Likewise.
  4276. (_Jv_LookupInterfaceMethod): Likewise.
  4277. (_Jv_CheckArrayStore): Likewise.
  4278. (_Jv_RegisterClass): Likewise.
  4279. * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
  4280. * configure: Rebuilt.
  4281. * configure.in: Don't check for fmod; it is provided by the fdlibm
  4282. code.
  4283. * prims.cc (fmod): Removed.
  4284. * java/lang/natString.cc (charAt): Use _Jv_uint.
  4285. * java/lang/Class.h (class JvField): Use _Jv_ushort.
  4286. * prims.cc (HASH_CHARS): Use _Jv_ushort.
  4287. (equalUtf8Consts): Likewise.
  4288. (internalAddClass): Use _Jv_uint.
  4289. (processClass): Likewise.
  4290. * include/javaprims.h (_Jv_ushort): Renamed from uint16.
  4291. (_Jv_uint): Renamed from uint32.
  4292. (struct _Jv_Utf8Const): Changed members to use new type names.
  4293. * configure: Rebuilt.
  4294. * configure.in: Don't check for memcpy. Require memmove and a way
  4295. to get the time.
  4296. * java/lang/natSystem.cc (arraycopy): Removed dead code, and
  4297. #error.
  4298. (currentTimeMillis): Don't use #error.
  4299. Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
  4300. * java/lang/Math.java: static member random renamed to random_ to
  4301. avoid conflict with member function of the same name.
  4302. * include/javaprims.h: java.util.Random added.
  4303. Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
  4304. * include/java-chartables.h: Regenerated.
  4305. * chartables.pl: End COMPACT_CHARACTER #if after fast tables
  4306. printed.
  4307. Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
  4308. * java/lang/Math.java: Rewritten.
  4309. * java/lang/natMath.cc: New file.
  4310. * Files added from fdlibm:
  4311. java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
  4312. java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
  4313. java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
  4314. java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
  4315. java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
  4316. java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
  4317. java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
  4318. java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
  4319. java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
  4320. java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
  4321. java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
  4322. java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
  4323. java/lang/k_cos.c, java/lang/sf_ceil.c,
  4324. java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
  4325. java/lang/ieeefp.h, java/lang/fdlibm.h
  4326. * Makefile.am: rules added for compiling C files from fdlibm.
  4327. Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
  4328. * chartables.pl: Minor documentation fixes.
  4329. * configure: Rebuilt.
  4330. * configure.in: Fixed --help output for --enable-fast-character.
  4331. Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
  4332. * configure: Rebuilt.
  4333. * configure.in: Recognize --enable-fast-character.
  4334. * acconfig.h (COMPACT_CHARACTER): New define.
  4335. * include/config.h.in: Rebuilt.
  4336. * include/java-chartables.h: New file.
  4337. * Makefile.in: Rebuilt.
  4338. * Makefile.am (nat_files): Added natCharacter.o.
  4339. * java/lang/natCharacter.cc: New file.
  4340. * chartables.pl (set_attribute): New function.
  4341. (@attributes, @second_attributes): New globals.
  4342. ($ROMAN_START, $ROMAN_END): Likewise.
  4343. (process_char): Call set_attribute when required.
  4344. (print_char): Just print hex value.
  4345. (print_block): Generate C++ syntax.
  4346. (print_numerics): Likewise.
  4347. (print_single_map): Likewise.
  4348. (print_all_block): Likewise.
  4349. (print_case_table): Likewise.
  4350. (print_fast_tables): New function.
  4351. Generate C++ code suitable for a header file.
  4352. * java/lang/Character.java (table_search): Removed.
  4353. (digit_value): Now native.
  4354. (getNumericValue): Likewise.
  4355. (getType): Likewise.
  4356. Removed all automatically-generated tables.
  4357. (Tamil_Digit_One): Removed.
  4358. (isSpaceChar): Now native.
  4359. (isTitleCase): Likewise.
  4360. (isLowerCase): Likewise.
  4361. (isUpperCase): Likewise.
  4362. (toLowerCase): Likewise.
  4363. (toTitleCase): Likewise.
  4364. (toUpperCase): Likewise.
  4365. (isDefined): Fixed sense of test.
  4366. Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
  4367. * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
  4368. FIXME comment.
  4369. (regionMatches): Likewise.
  4370. Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
  4371. * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
  4372. * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
  4373. a friend.
  4374. * java/lang/natString.cc (_Jv_AllocString): For now, don't call
  4375. _Jv_AllocObject.
  4376. * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
  4377. not a char.
  4378. * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
  4379. Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
  4380. * prims.cc (instanceof_class): Removed.
  4381. (instanceof_array): Likewise.
  4382. (instanceof): Likewise.
  4383. (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
  4384. (_Jv_CheckCast): Likewise.
  4385. * java/lang/natClass.cc (isAssignableFrom): New method.
  4386. * java/lang/Class.java (isAssignableFrom): Now native.
  4387. * include/cni.h (JvThrow): Use `extern inline'.
  4388. (JvAllocObject): Likewise.
  4389. (JvInitClass): Likewise.
  4390. * java/lang/natSystem.cc (arraycopy): Only check class of source
  4391. object if not null.
  4392. * prims.cc (_Jv_CheckArrayStore): Wrote.
  4393. (_Jv_MonitorEnter): Prefer `JvThrow'.
  4394. Include ArrayStoreException.h.
  4395. (_Jv_CheckCast): Indentation cleanup.
  4396. Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
  4397. * chartables.pl: New file.
  4398. * java/lang/Character.java: Rewrote from scratch.
  4399. Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
  4400. * java/lang/ArithmeticException.java,
  4401. java/lang/ArrayIndexOutOfBoundsException.java,
  4402. java/lang/ArrayStoreException.java,
  4403. java/lang/ClassCastException.java,
  4404. java/lang/ClassNotFoundException.java,
  4405. java/lang/CloneNotSupportedException.java,
  4406. java/lang/Exception.java, java/lang/IllegalAccessException.java,
  4407. java/lang/IllegalArgumentException.java,
  4408. java/lang/IllegalMonitorStateException.java,
  4409. java/lang/IllegalThreadStateException.java,
  4410. java/lang/IndexOutOfBoundsException.java,
  4411. java/lang/InstantiationException.java,
  4412. java/lang/InterruptedException.java,
  4413. java/lang/NegativeArraySizeException.java,
  4414. java/lang/NoSuchMethodException.java,
  4415. java/lang/NullPointerException.java,
  4416. java/lang/NumberFormatException.java,
  4417. java/lang/RuntimeException.java, java/lang/SecurityException.java,
  4418. java/lang/StringIndexOutOfBoundsException.java: Rewritten.
  4419. * java/lang/IllegalStateException.java,
  4420. java/lang/NoSuchFieldException.java,
  4421. java/lang/UnsupportedOperationException.java: Created.
  4422. Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
  4423. * java/lang/Integer.java, java/lang/Long.java: Rewritten.
  4424. * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
  4425. Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
  4426. * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
  4427. Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
  4428. * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
  4429. * Makefile.in: Rebuilt.
  4430. * include/javaprims.h (java::lang): Added
  4431. StringIndexOutOfBoundsException.
  4432. * java/lang/String.java: Added header comment and FIXME comment for
  4433. missing constructors/methods.
  4434. (endsWith): Adjusted offset into string to look at just the last chars.
  4435. Commented out undocumented method.
  4436. * java/lang/natString.cc: Added includes for
  4437. ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
  4438. (String::init): Throw StringIndexOutOfBoundsException.
  4439. (String::charAt): Throw StringIndexOutOfBoundsException.
  4440. (String::substring): Throw StringIndexOutOfBoundsException.
  4441. (String::getChars): Throw ArrayIndexOutOfBoundsException.
  4442. (String::getBytes): Throw ArrayIndexOutOfBoundsException.
  4443. (String::compareTo): Return difference/offset between chars/strings.
  4444. Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
  4445. * java/lang/Boolean.java (TYPE): Added comment.
  4446. * java/lang/Byte.java (decode): Added - commented out until dependent
  4447. code for Integer is written.
  4448. (compareTo): JDK 1.2 methods written.
  4449. (hashCode): Added comment to note that values have been verified.
  4450. * java/lang/Short.java (decode): Added - commented out until dependent
  4451. code for Integer is written.
  4452. (compareTo): JDK 1.2 methods written.
  4453. (hashCode): Added comment to note that values have been verified.
  4454. * java/lang/Comparable.java: Created - JDK 1.2 interface.
  4455. Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
  4456. * include/javaprims.h (java::lang): Added VirtualMachineError,
  4457. OutOfMemoryError.
  4458. * Makefile.in: Rebuilt.
  4459. * Makefile.am (nat_headers): Added OutOfMemoryError.h,
  4460. VirtualMachineError.h.
  4461. * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
  4462. (lookupArray): Likewise.
  4463. (makeUtf8Const): Likewise.
  4464. (_Jv_AllocObject): Likewise.
  4465. (_Jv_NewObjectArray): Likewise.
  4466. Include OutOfMemoryError.h.
  4467. * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
  4468. to use JvNewStringLatin1.
  4469. * java/io/io-defs.h: Include java/lang/IOException.h.
  4470. * Makefile.in: Rebuilt.
  4471. * Makefile.am (nat_headers): Added
  4472. ArrayIndexOutOfBoundsException.h,
  4473. ClassFormatError.h,ClassNotFoundException.h,
  4474. ClassCircularityError.h, ClassCastException.h,
  4475. IncompatibleClassChangeError.h, AbstractMethodError.h,
  4476. IllegalAccessError.h, LinkageError.h, Error.h,
  4477. NegativeArraySizeException.h, IOException.h.
  4478. * include/cni.h (SignalError): Removed declaration.
  4479. * java/util/natDate.cc (setTime): Use JvFail, not sorry.
  4480. * java/lang/natObject.cc (clone): Use JvFail, not sorry.
  4481. * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
  4482. (newInstance): Likewise.
  4483. (forName): Likewise.
  4484. * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
  4485. sorry.
  4486. (read): Use JvThrow, not SignalError.
  4487. (read): Likewise.
  4488. (write): Likewise.
  4489. (skip): Likewise.
  4490. (close): Likewise.
  4491. (open_read): Likewise.
  4492. (open_write): Likewise.
  4493. (ftell): Likewise.
  4494. (fseek): Likewise.
  4495. (newstr): New function.
  4496. * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
  4497. sorry.
  4498. (lastModifiedUnchecked): Likewise.
  4499. (lengthUnchecked): Likewise.
  4500. * include/javaprims.h (sorry): Removed declaration.
  4501. (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
  4502. ClassFormatError, ClassNotFoundException, ClassCircularityError,
  4503. ClassCastException, IncompatibleClassChangeError,
  4504. AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
  4505. * prims.cc (instanceof_array): Use JvFail, not sorry.
  4506. (sorry): Removed.
  4507. Include ArrayIndexOutOfBoundsException.h,
  4508. ClassFormatError.h,ClassNotFoundException.h,
  4509. ClassCircularityError.h, ClassCastException.h,
  4510. IncompatibleClassChangeError.h, AbstractMethodError.h,
  4511. IllegalAccessError.h, NegativeArraySizeException.h.
  4512. (_Jv_ThrowBadArrayIndex): Implemented.
  4513. (JvNewStringUTF): Use JvFail, not sorry.
  4514. (_Jv_FindClass): Likewise.
  4515. (_Jv_NewArray): Likewise.
  4516. (throwException): Removed.
  4517. (getClass): Use JvThrow.
  4518. (processClass): Likewise.
  4519. (_Jv_NewObjectArray): Likewise.
  4520. (_Jv_NewMultiArray): Likewise.
  4521. (_Jv_CheckCast): Likewise.
  4522. (_Jv_LookupInterfaceMethod): Likewise.
  4523. (SignalError): Removed.
  4524. (getClass): Use _Jv_NewStringUtf8Const to create String.
  4525. * java/lang/natSystem.cc (arraycopy): Throw
  4526. ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
  4527. * Makefile.in: Rebuilt.
  4528. * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
  4529. users.
  4530. * include/java-array.h: Mention gcjh, not gjavah.
  4531. * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
  4532. (canReadUnchecked): Likewise.
  4533. (canWriteUnchecked): Likewise.
  4534. (isFileUnchecked): Likewise.
  4535. * java/io/natFileDescriptor.cc: Don't include cni.h.
  4536. * java/lang/Thread.java (run__): Declare.
  4537. * java/lang/natThread.cc (run__): New method, to avoid compiler
  4538. warning.
  4539. (start): Use run__, not run_.
  4540. * java/io/io-defs.h: Include cni.h and jvm.h.
  4541. Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
  4542. Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
  4543. * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
  4544. to natString.cc (with suitable renaming, inlines etc).
  4545. (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
  4546. * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
  4547. * java/lang/String.h: Removed - now generated using gjavah.
  4548. * java/lang/String.java: Re-written from scratch. Many native methods.
  4549. * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
  4550. * java/lang/natString.cc: Many functions re-written for "compact
  4551. strings" representation, or native java.lang.String methods added.
  4552. (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
  4553. (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
  4554. * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
  4555. * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
  4556. * include/cni.h: Add inline method.
  4557. * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
  4558. * include/javaprims.h: Moved some stuff frm String.h.
  4559. * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
  4560. * Makefile.am (nat_header): Added Character.h and String.h.
  4561. (String.h): Add new rule.
  4562. Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
  4563. * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
  4564. java-assert.h.
  4565. * posix-threads.cc: Include cni.h, jvm.h.
  4566. * quick-threads.cc: Include cni.h, jvm.h.
  4567. * nogc.cc: Include cni.h, not javaprims.h.
  4568. * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
  4569. * java/lang/natThread.cc: Rearranged #include ordering. Don't
  4570. include java-assert.h.
  4571. * java/lang/natSystem.cc: Include cni.h. Don't include
  4572. java-assert.h.
  4573. * java/lang/natRuntime.cc: Include cni.h. Don't include
  4574. java-assert.h.
  4575. * prims.cc: Rearranged #include ordering. Don't include
  4576. java-array.h or java-assert.h.
  4577. * boehm.cc: Include config.h, cni.h.
  4578. * exception.cc: Include config.h, cni.h.
  4579. * include/jvm.h: Include java-assert.h.
  4580. * include/cni.h: Include java/lang/Object.h. Don't include
  4581. java-threads.h or java-array.h.
  4582. Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
  4583. * java/lang/Boolean.java: Rewritten.
  4584. Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
  4585. * java/lang/natFirstThread.cc (main_func): New typedef.
  4586. (run): Use main_func, not JvPrivThreadStartFunc.
  4587. * include/no-threads.h (JvPrivThreadStartFunc): Use correct
  4588. argument type.
  4589. * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
  4590. argument type.
  4591. * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
  4592. argument type.
  4593. Can't throw Java exceptions with C++ `throw':
  4594. * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
  4595. * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
  4596. (setPriority): Likewise.
  4597. (sleep): Likewise.
  4598. (start): Likewise.
  4599. (stop): Likewise.
  4600. * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
  4601. * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
  4602. Can't catch Java exceptions from C++:
  4603. * java/lang/natThread.cc (finish_): New method.
  4604. (run_): Removed.
  4605. * java/lang/Thread.java (run_): Rewrote in Java.
  4606. (finish_): New native method.
  4607. Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
  4608. * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
  4609. * include/javaprims.h (java::io): Added Serializable.
  4610. Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
  4611. * java/util/EmptyStackException.java,
  4612. java/util/NoSuchElementException.java: Rewritten.
  4613. * java/util/ConcurrentModificationException.java,
  4614. java/util/MissingResourceException.java,
  4615. java/util/TooManyListenersException.java: Created.
  4616. Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
  4617. * include/cni.h (JvThrow): New function.
  4618. * include/javaprims.h (_Jv_Throw): Declare.
  4619. Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
  4620. * java/util/Observable.java: Rewritten.
  4621. Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
  4622. * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
  4623. (_Jv_MonitorEnter): Throw NullPointerException if object is null.
  4624. Include NullPointerException.h.
  4625. Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
  4626. * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
  4627. assignability checks. Don't bother using memcpy.
  4628. * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
  4629. (started): Removed.
  4630. * include/quick-threads.h (JvPrivThreadWait): New function.
  4631. * include/no-threads.h (JvPrivThreadWait): New function.
  4632. * include/posix-threads.h (JvPrivThreadWait): New function.
  4633. * prims.cc (JvRunMain): Call JvPrivThreadWait.
  4634. * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
  4635. * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
  4636. offsets by size of type that is being copied.
  4637. * java/lang/natThread.cc (start): Don't pass `object' argument to
  4638. JvPrivThreadStart.
  4639. * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
  4640. * posix-threads.cc (JvPrivThreadStart): Removed `object'
  4641. argument.
  4642. * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
  4643. always pass thread as object.
  4644. * include/quick-threads.h, include/posix-threads.h,
  4645. include/no-threads.h (JvPrivThreadStart): Removed `object'
  4646. argument.
  4647. Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
  4648. * java/util/Dictionary.java: Rewritten.
  4649. Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
  4650. * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
  4651. (JvPrivThreadDestroy): Likewise.
  4652. Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
  4653. * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
  4654. Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
  4655. * java/lang/natSystem.cc: Rewrote from scratch.
  4656. * java/lang/System.java: Rewrote from scratch.
  4657. * java/lang/Class.h (Class): Declare isAssignableFrom.
  4658. * include/javaprims.h (java::lang): Added ArrayStoreException,
  4659. IndexOutOfBoundsException.
  4660. * Makefile.in: Rebuilt.
  4661. * Makefile.am (nat_headers): Added ArrayStoreException.h,
  4662. IndexOutOfBoundsException.h.
  4663. * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
  4664. * include/jvm.h (_Jv_HashCode): New function.
  4665. * java/lang/natThread.cc (suspend): Call checkAccess.
  4666. (resume): Likewise.
  4667. * java/lang/Thread.java (setDaemon): Call checkAccess.
  4668. Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
  4669. * java/lang/Runtime.java: Rewrote from scratch.
  4670. * java/lang/natRuntime.cc: Rewrote from scratch.
  4671. * nogc.cc (JvPrivGCTotalMemory): New function.
  4672. (JvPrivGCFreeMemory): Likewise.
  4673. (total): New global.
  4674. (JvPrivAllocObj): Increment total.
  4675. (JvPrivAllocArray): Likewise.
  4676. (JvPrivAllocBytes): Likewise.
  4677. * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
  4678. * boehm.cc (JvPrivGCTotalMemory): New function.
  4679. (sum_blocks): Likewise.
  4680. (JvPrivGCFreeMemory): Likewise.
  4681. Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
  4682. * include/javaprims.h (java::lang): Added FirstThread.
  4683. * java/lang/natFirstThread.cc: New file.
  4684. * java/lang/FirstThread.java: New file.
  4685. * prims.cc (main_signature): Removed.
  4686. (main_name): Removed.
  4687. #include FirstThread.h.
  4688. * Makefile.in: Rebuilt.
  4689. * Makefile.am (TFRIEND): Removed.
  4690. (java/lang/Thread.h): Likewise.
  4691. (FTFRIEND): New macro.
  4692. (java/lang/FirstThread.h): New target.
  4693. (nat_files): Added natFirstThread.o.
  4694. (nat_headers): Added FirstThread.h.
  4695. * include/jvm.h (_Jv_StartFirstThread): Don't declare.
  4696. * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
  4697. * java/lang/Thread.java (setName): Throw IllegalArgumentException
  4698. if name is null.
  4699. (Thread): Likewise.
  4700. * java/lang/natThread.cc (start): Synchronize the thread.
  4701. (stop): Synchronize the thread.
  4702. * java/lang/ThreadDeath.java: Rewrote from scratch.
  4703. * Makefile.in: Rebuilt.
  4704. * Makefile.am (TGFRIEND): New macro.
  4705. (java/lang/ThreadGroup.h): New target.
  4706. ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
  4707. native headers.
  4708. ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
  4709. * nogc.cc: Include config.h.
  4710. * java/lang/ThreadGroup.java: Rewrote from scratch.
  4711. Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
  4712. * java/lang/Thread.java (checkAccess): Only call in to security
  4713. manager if it exists.
  4714. (Thread): Don't check access when creating the first thread. Add
  4715. this thread to the appropriate ThreadGroup.
  4716. * java/lang/natThread.cc (run_): Call uncaughtException method on
  4717. the ThreadGroup.
  4718. * java/lang/Runnable.java: Rewrote from scratch.
  4719. * java/lang/Thread.java: Updated copyright comment to correct
  4720. form.
  4721. Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
  4722. * java/util/Random.java: Rewritten.
  4723. Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
  4724. * prims.cc (_Jv_NewMultiArray): Need one more slot to store
  4725. trailing 0 in array[].
  4726. Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
  4727. * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
  4728. and RUNTESTFLAGS from AM_MAKEFLAGS.
  4729. (SUBDIRS): Conditionally include testsuite.
  4730. * Makefile.in: Rebuilt.
  4731. Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
  4732. * java/lang/Object.h: Include java-assert.h.
  4733. Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
  4734. * Makefile.am: Add testsuite directory.
  4735. * configure.in: Build testsuite/Makefile.
  4736. * Makefile.in, configure: Rebuilt.
  4737. Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
  4738. * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
  4739. * include/jvm.h (_Jv_StartFirstThread): Declare.
  4740. * include/javaprims.h (java::lang): Added Exception,
  4741. RuntimeException.
  4742. * Makefile.in: Rebuilt.
  4743. * Makefile.am (nat_headers): Added NullPointerException.h,
  4744. InterruptedException.h, IllegalArgumentException.h, Exception.h,
  4745. Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
  4746. (java/lang/Thread.h): New target.
  4747. (TFRIEND): New macro
  4748. * include/java-assert.h (JvFail): Use 0 and not NULL.
  4749. * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
  4750. instead of assuming we are a friend of Thread.
  4751. * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
  4752. instead of assuming we are a friend of Thread.
  4753. Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
  4754. * java/lang/natThread.cc: Rewrote from scratch.
  4755. * java/lang/Thread.java: Rewrote from scratch.
  4756. * prims.cc (JvRunMain): Use new Thread constructor.
  4757. * include/javaprims.h (java::lang): Added InterruptedException.
  4758. * Makefile.in: Rebuilt.
  4759. * Makefile.am (nat_headers): Added java/lang/Thread.h.
  4760. * java/lang/Thread.h: Removed.
  4761. * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
  4762. * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
  4763. argument.
  4764. * posix-threads.cc (JvPrivThreadJoin): Removed.
  4765. (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
  4766. (really_start): Don't notify join_cond.
  4767. (JvPrivThreadStart): Added `data' argument.
  4768. * include/no-threads.h (JvPrivThreadInterrupt): Removed.
  4769. (JvPrivThreadJoin): Likewise.
  4770. Use JvFail instead of sorry.
  4771. (JvPrivThreadSuspend): Removed.
  4772. (JvPrivThreadResume): Removed.
  4773. * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
  4774. (JvPrivThreadJoin): Likewise.
  4775. (JvPrivThreadSuspend): Use JvFail.
  4776. (JvPrivThreadResume): Likewise.
  4777. (JvPrivThreadSuspend): Removed.
  4778. (JvPrivThreadResume): Likewise.
  4779. * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
  4780. (JvPrivThread_t): Removed join_mutex, join_cond.
  4781. Use JvFail instead of sorry.
  4782. (JvPrivThreadSuspend): Removed.
  4783. (JvPrivThreadResume): Likewise.
  4784. Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
  4785. * java/util/Observer.java: Rewritten
  4786. * java/util/Enumeration.java: Rewritten
  4787. Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
  4788. * java/util/StringTokenizer.java: Rewritten
  4789. * java/util/Stack.java: Added COPYRIGHT-TBD comment
  4790. * java/util/Vector.java: Added COPYRIGHT-TBD comment
  4791. * java/io/Serializable.java: Added COPYRIGHT-TBD comment
  4792. Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
  4793. * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
  4794. not defined.
  4795. * no-threads.cc (JvPrivThreadStart): Use JvAssert.
  4796. Include java-assert.h.
  4797. * include/java-assert.h: New file.
  4798. * prims.cc (_Jv_Abort): New function.
  4799. Include java-assert.h, not assert.h.
  4800. (_Jv_MonitorExit): Use JvAssert.
  4801. (resolveConstants): Likewise.
  4802. (processClass): Likewise.
  4803. (JvRunMain): Assert that method is found.
  4804. * configure: Rebuilt.
  4805. * configure.in: Check for test subdir.
  4806. * Makefile.in: Rebuilt.
  4807. * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
  4808. * prims.cc (JvRunMain): Use NORM_PRIORITY.
  4809. * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
  4810. * prims.cc (resolveConstants): Removed unused variables.
  4811. (processClass): Likewise.
  4812. * include/quick-threads.h (JvPrivThreadCurrent): Use
  4813. coop_getspecific.
  4814. * quick-threads.cc (destroy_data): New function.
  4815. (JvPrivInitThreads): Create key.
  4816. (JvPrivThreadKey): New global.
  4817. (JvPrivThreadStart): Use coop_setspecific.
  4818. * include/quick-threads.h, include/posix-threads.h,
  4819. include/no-threads.h, no-threads.cc, quick-threads.cc,
  4820. posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
  4821. Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
  4822. * include/no-threads.h (JvPrivThreadInitData): Don't set
  4823. JvPrivOnlyThread.
  4824. * include/quick-threads.h (JvPrivCondWait): coop function now
  4825. takes microseconds.
  4826. (JvPrivThreadJoin): Likewise.
  4827. * java/lang/Thread.h (Thread): Updated declaration of
  4828. JvPrivThreadStart.
  4829. * include/quick-threads.h, include/posix-threads.h: Updated
  4830. declaration of JvPrivThreadStart.
  4831. * include/no-threads.h (JvPrivThreadStart): Changed definition
  4832. into declaration.
  4833. * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
  4834. * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
  4835. * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
  4836. Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
  4837. * quick-threads.cc (qthrow): New function.
  4838. (JvPrivInitThreads): New function.
  4839. (started): New global.
  4840. (JvPrivThreadStart): Call coop_start if required.
  4841. * include/quick-threads.h (JvPrivThreadCancel): Implement.
  4842. (JvPrivThreadDestroy): Likewise.
  4843. (JvPrivInitThreads): Removed.
  4844. * include/posix-threads.h (JvPrivThreadCancel): Added error
  4845. argument.
  4846. * java/lang/natThread.cc (stop_): Pass exception to
  4847. JvPrivThreadCancel.
  4848. Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
  4849. * include/javaprims.h (java::lang): Added
  4850. IllegalArgumentException, IllegalThreadStateException, Math,
  4851. NullPointerException, ThreadDeath.
  4852. (java::util): Added Enumeration.
  4853. * Makefile.in: Rebuilt.
  4854. * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
  4855. * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
  4856. now public.
  4857. (threadsv): Renamed from threads to avoid clash in C++ header.
  4858. (groupsv): Likewise.
  4859. * include/no-threads.h (JvPrivThreadStart): Removed.
  4860. * no-threads.cc (JvPrivThreadStart): New function.
  4861. * java/lang/Thread.java (Thread): New constructor for internal use.
  4862. * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
  4863. (Thread): Declare constructor.
  4864. * prims.cc (JvRunMain): Create the initial Thread and
  4865. ThreadGroup.
  4866. Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
  4867. * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
  4868. Removed `daemon' argument.
  4869. * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
  4870. * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
  4871. a friend.
  4872. * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
  4873. * Makefile.in: Rebuilt.
  4874. * Makefile.am (INCLUDES): Include THREADINCS.
  4875. * configure: Rebuilt.
  4876. * configure.in: Recognize `qt' as a threads package.
  4877. Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
  4878. * java/util/Stack.java (pop): Null out topmost node for robustness.
  4879. Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
  4880. * java/util/Stack.java: Rewritten.
  4881. * java/util/Vector.java (isEmpty): Simplified expression.
  4882. Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
  4883. * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
  4884. (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
  4885. * include/java-array.h (JvNewObjectArray): Created inline to
  4886. _Jv_NewObjectArray.
  4887. * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
  4888. JvNewObjectArray.
  4889. Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
  4890. * java/util/Vector.java: Rewritten.
  4891. * java/io/Serializable.java: Created.
  4892. Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
  4893. * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
  4894. Infinity is 1/0, not 1/1.
  4895. * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
  4896. * configure: Rebuilt.
  4897. * configure.in: Removed duplicate AC_ARG_WITH.
  4898. Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
  4899. * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
  4900. soft_badarrayindex.
  4901. (_Jv_InitClass): Renamed from soft_initialise_class.
  4902. (_Jv_NewMultiArray): Renamed from soft_multianewarray.
  4903. (_Jv_CheckCast): Renamed from soft_checkcast.
  4904. (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
  4905. (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
  4906. (JvRunMain): Call JvInitClass instead of soft_initialise_class.
  4907. * include/cni.h (JvInitClass): New function.
  4908. (_Jv_InitClass): Renamed from soft_initialise_class.
  4909. Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
  4910. * configure: Rebuilt.
  4911. * configure.in (CXX): Don't set.
  4912. * Makefile.in: Rebuilt.
  4913. * Makefile.am (AM_CXXFLAGS): New macro.
  4914. * Makefile.in: Rebuilt.
  4915. * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
  4916. nogc.o): New target.
  4917. * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
  4918. GC.
  4919. (mark_array): Likewise.
  4920. Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
  4921. * java/lang/Class.h (JvMethod): Removed some unused fields.
  4922. (JvField.info): Removed unused idx union variant.
  4923. Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
  4924. * prims.cc (makeUtf8Const): Mask off high bits of hash value to
  4925. match compiler.
  4926. Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
  4927. * configure.in, configure (CXX): Add -fvtable-thunks.
  4928. Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
  4929. * java/lang/Object.java (finalize): Move first.
  4930. * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
  4931. (Object): Re-arrange order to match Object.java.
  4932. Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
  4933. * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
  4934. * java/lang/natString.cc (hashChars): Likewise.
  4935. * prims.cc (RuntimeClass): New macro.
  4936. (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
  4937. Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
  4938. * Makefile.in: Rebuilt.
  4939. * Makefile.am (AM_MAKEFLAGS): New macro.
  4940. Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
  4941. * nogc.cc: Include <javaprims.h>.
  4942. * Makefile.in: Rebuilt.
  4943. * Makefile.am (GJAVAH): gjavah no longer in java subdir.
  4944. Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
  4945. * exception.cc (terminate): Removed.
  4946. (unexpected): Removed.
  4947. * configure: Rebuilt.
  4948. * configure.in: Handle case where target subdir is ".".
  4949. * configure: Rebuilt.
  4950. * configure.in: Compute COMPPATH based on --with-target-subdir
  4951. option. Added --with-target-subdir and --with-cross-host. Use
  4952. --with-cross-host to determine when a cross compiler is in use.
  4953. * Makefile.in: Rebuilt.
  4954. * Makefile.am (GJAVAH): Include COMPPATH.
  4955. * configure: Rebuilt.
  4956. * configure.in: Subst COMPPATH.
  4957. Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
  4958. * prims.cc (lockMutex): Removed.
  4959. (unlockMutex): Likewise.
  4960. (processClass): Lock the class using a JvSynchronize object.
  4961. Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
  4962. * java/lang/natString.cc (gc_calloc_fixed): Removed.
  4963. (gc_free_fixed): Removed.
  4964. (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
  4965. freeing old value of strhash.
  4966. * exception.cc (_Jv_type_matcher): Cast first argument to
  4967. _Jv_IsInstanceOf.
  4968. Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
  4969. * include/java-array.h (jstringArray): New type.
  4970. * java/lang/natSystem.cc (setProperty): Removed.
  4971. (initProperties): Directly call JvNewStringLatin1 for arguments.
  4972. * java/util/natDate.cc: Include java/util/Date.h, not
  4973. java-util.h.
  4974. (setTime): Removed.
  4975. * java/io/FileDescriptor.java (available): No longer static.
  4976. * java/lang/natDouble.cc (Double): Removed class definition.
  4977. * include/javaprims.h (java::lang::Number): Declare.
  4978. (java::lang::NumberFormatException): Likewise.
  4979. (java::io::FilenameFilter): Likewise.
  4980. (java::lang::Character): Likewise.
  4981. (java::lang::Error): Likewise.
  4982. (java::lang::SecurityManager): Likewise.
  4983. (java::util::Vector): Likewise.
  4984. (java::io::FileNotFoundException): Likewise.
  4985. (java::io::IOException): Likewise.
  4986. (java::lang::NativeLang): Likewise.
  4987. (java::lang::UnsatisfiedLinkError): Likewise.
  4988. (java::util::StringTokenizer): Likewise.
  4989. (java::io::InputStream, java::io::OutputStream): Likewise.
  4990. (java::io::PrintStream, java::lang::SecurityException): Likewise.
  4991. (java::util::Hashtable): Likewise.
  4992. * Makefile.in: Rebuilt.
  4993. * Makefile.am (nat_headers): Added java/lang/Double.h,
  4994. java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
  4995. (MOSTLYCLEANFILES): Added nat_headers.
  4996. * include/jvm.h: Moved many defines, declarations, and functions
  4997. to java/lang/Class.h.
  4998. (struct JvSyncInfo): Moved to java/lang/Object.h.
  4999. (UTF8_GET): Moved to java/lang/String.h.
  5000. Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
  5001. * java/io/io-defs.h: Don't include java-io.h.
  5002. * include/java-io.h: Removed.
  5003. * include/javaprims.h: Include java::io.
  5004. Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
  5005. * include/java-io.h (File): Removed
  5006. (FileDescriptor): Likewise.
  5007. * java/io/io-defs.h: Include java/io/File.h and
  5008. java/io/FileDescriptor.h.
  5009. * Makefile.in: Rebuilt.
  5010. * Makefile.am (GJAVAH): New macro.
  5011. (.class.h): New rule.
  5012. (SUFFIXES): Added .h.
  5013. (nat_headers): New macro.
  5014. ($(nat_headers)): New target.
  5015. (BUILT_SOURCES): Added nat_headers.
  5016. * include/java-util.h: Removed.
  5017. Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
  5018. * include/java-io.h: Changed to avoid java-lang.h.
  5019. * java/lang/natThread.cc: Include java/lang/Thread.h, not
  5020. java-lang.h.
  5021. * java/lang/natSystem.cc: Include java/lang/System.h, not
  5022. java-lang.h.
  5023. * java/lang/natString.cc: Include java/lang/String.h, not
  5024. java-lang.h.
  5025. * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
  5026. java-lang.h.
  5027. * java/lang/natClass.cc: Include java/lang/Class.h, not
  5028. java-lang.h.
  5029. * java/lang/natDouble.cc: Include java/lang/Object.h, not
  5030. java-lang.h.
  5031. * java/lang/natObject.cc: Include java/lang/Object.h, not
  5032. java-lang.h.
  5033. * exception.cc: Don't include java-lang.h.
  5034. * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
  5035. * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
  5036. * nogc.cc: Don't include java-lang.h.
  5037. * boehm.cc: Include java/lang/Class.h, not java-lang.h.
  5038. * prims.cc (processClass): Don't use `init_type'; just cast to
  5039. type directly.
  5040. Include java/lang/Class.h and jvm.h, not java-lang.h.
  5041. (JvAllocObject): Wrote single-argument version.
  5042. (PrimClass): Inherit from Class.
  5043. (initPrimClass): Removed.
  5044. * include/java-lang.h: Removed.
  5045. * include/jvm.h: Declare struct _dispatchTable.
  5046. * include/cni.h: Don't declare _Jv_MonitorEnter,
  5047. _Jv_MonitorExit, struct _dispatchTable.
  5048. * include/javaprims.h: Moved all typedefs here, from cni.h.
  5049. * java/lang/Class.h: New file.
  5050. * include/java-array.h: New file.
  5051. * java/lang/Object.h: New file.
  5052. * prims.cc (classFromSig): Now static.
  5053. Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
  5054. * include/cni.h: Don't mention soft_new.
  5055. * include/java-lang.h (Object): Don't mention soft_new. Mention
  5056. _Jv_NewPrimArray, not newPrimArray.
  5057. * prims.cc (soft_new): Removed.
  5058. (_Jv_NewArray): Renamed from soft_newarray.
  5059. (soft_anewarray): Use JvNewObjectArray.
  5060. (newArray): Likewise.
  5061. (newRefArray): Removed.
  5062. (_Jv_NewPrimArray): Renamed from newPrimArray.
  5063. (equalUtf8Consts): Now static.
  5064. (soft_instanceof): Removed.
  5065. * java/lang/natDouble.cc (doubleToString): Now static.
  5066. * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
  5067. java_lang_Double_longBitsToDouble, java_lang_Double_toString):
  5068. Removed.
  5069. Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
  5070. * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
  5071. _Jv_MonitorExit.
  5072. * include/cni.h: Renamed functions to _Jv_MonitorEnter and
  5073. _Jv_MonitorExit.
  5074. * include/no-threads.h (JvPrivMutexLock): Always return -1.
  5075. (JvPrivMutexUnlock): Likewise.
  5076. * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
  5077. Return value now jint.
  5078. (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
  5079. now jint.
  5080. * Makefile.in: Rebuilt.
  5081. * Makefile.am: Don't allow `jV' names.
  5082. (maintainer-check): Depend on libjava.a.
  5083. * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
  5084. * Makefile.in: Rebuilt.
  5085. * Makefile.am (NM): New macro.
  5086. (maintainer-check): New target.
  5087. * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
  5088. * configure: Rebuilt.
  5089. * configure.in: Use --enable-threads, not --enable-gc. Fix
  5090. documentation for --enable-threads. Changed option to work like
  5091. identical option in gcc/configure.
  5092. Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
  5093. * boehm.cc (mark_array): Use JvGetArrayLength.
  5094. Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
  5095. * exception.cc: New file (mostly written by Andrew MacLeod),
  5096. exception handling support.
  5097. * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
  5098. Remove -fexceptions - it is now the default.
  5099. * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
  5100. (JvAllocObject): Renamed to _Jv_AllocObject.
  5101. (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
  5102. (loadClass): Renamed to _Jv_FindClass.
  5103. * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
  5104. inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
  5105. * include/java-lang.h (JvGetArrayLength): New CNI function.
  5106. * include/jvm.h (_Jv_FindClass): Added declaration.
  5107. * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
  5108. Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
  5109. * java/lang/natClass.cc (getName): Add implementation.
  5110. * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
  5111. Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
  5112. * Makefile.in: Rebuilt.
  5113. * Makefile.am (.class.o): Added -fexceptions.
  5114. Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
  5115. * configure: Rebuilt.
  5116. * configure.in: Don't check for __nanosleep.
  5117. * posix-threads.cc (nanosleep): Never define.
  5118. Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
  5119. * posix-threads.cc (JvPrivCondWait): Fixed computation of
  5120. timespec.
  5121. Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
  5122. * java/lang/natThread.cc (enumerate): Uncommented.
  5123. * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
  5124. (interrupt): Call it.
  5125. Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
  5126. * configure: Rebuilt.
  5127. * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
  5128. Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
  5129. * include/no-threads.h (JvPrivThreadInterrupt): New method.
  5130. * include/java-lang.h (Thread): Added `interrupted_' method.
  5131. * java/lang/Thread.java (interrupted_): New method.
  5132. * java/lang/natThread.cc (join): Possibly throw interrupted
  5133. exception after join finishes.
  5134. (interrupted_): New method.
  5135. * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
  5136. join_cond.
  5137. (JvPrivThreadJoin): New function.
  5138. (really_start): Notify all threads waiting for this thread.
  5139. (struct starter): Added `data' member.
  5140. (JvPrivThreadStart): Set it.
  5141. * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
  5142. join_cond.
  5143. (JvPrivThreadJoin): No longer inline.
  5144. (JvPrivThreadInterrupt): New function.
  5145. * include/no-threads.h (JvPrivThreadSleep): Removed.
  5146. * posix-threads.cc (JvPrivThreadSleep): Removed.
  5147. Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
  5148. * configure: Rebuilt.
  5149. * configure.in (THREADOBJS): Initialize to no-threads.o in
  5150. no-threads case.
  5151. * posix-threads.cc (key): New global.
  5152. (JvPrivInitThreads): New function.
  5153. (really_start): Set thread-specific data to point to object.
  5154. (JvPrivThreadStart): Added `daemon' argument.
  5155. (JvPrivThreadSleep): Added `data' argument.
  5156. * include/posix-threads.h (JvPrivInitThreads): Removed
  5157. implementation.
  5158. (JvPrivThreadCurrent): New function.
  5159. * include/no-threads.h (JvPrivThreadInitData): Initialize
  5160. JvPrivOnlyThread. Added `thread' argument.
  5161. (JvPrivThreadCurrent): New function.
  5162. (JvPrivThreadStart): Added `daemon' argument.
  5163. * no-threads.cc: New file.
  5164. * java/lang/natThread.cc (init_data): New function.
  5165. (isAlive): Removed.
  5166. (start): Set `alive' member.
  5167. (stop_): Clear `alive' member.
  5168. (destroy): Likewise.
  5169. (currentThread): Implemented.
  5170. (start): Pass `daemon' argument to JvPrivThreadStart.
  5171. (sleep): Rewrote.
  5172. * include/java-lang.h (Thread): Added `alive', `tsync' members.
  5173. (Thread): Added `init_data' method.
  5174. * java/lang/Thread.java (alive, data): New instance variables.
  5175. (init_data): New private method.
  5176. (isAlive): No longer native.
  5177. Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
  5178. * include/java-lang.h (JvRunMain): Declare.
  5179. * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
  5180. * prims.cc (JvRunMain): New function.
  5181. (main_signature, main_name): New globals.
  5182. * boehm.cc (mark_array): Use `elements' function and not
  5183. operator[] on jarray.
  5184. * posix-threads.cc: Include <config.h>. Define nanosleep if
  5185. required.
  5186. * configure: Rebuilt.
  5187. * configure.in: Check for _nanosleep.
  5188. * configure: Rebuilt.
  5189. * configure.in: Check for pthread_mutexattr_settype.
  5190. * include/cni.h (class JvSynchronize): New class.
  5191. * java/lang/Thread.java (sleep): Throws InterruptedException.
  5192. (join): Throws InterruptedException.
  5193. (resume): Not native.
  5194. (resume_): New method.
  5195. (start): Now synchronized.
  5196. (stop_): New method.
  5197. (Thread): Synchronize when accessing threadNumber.
  5198. (misc): Removed.
  5199. * java/lang/natThread.cc (throwException): New macro.
  5200. (sleep): Throw InterruptedException.
  5201. (resume_): Renamed.
  5202. (stop_): Renamed.
  5203. * include/java-lang.h (Runtime): Added interrupted().
  5204. * boehm.cc (call_finalizer): Correctly initialize jobj.
  5205. * include/java-lang.h (Runtime): Added getRuntime() and exit().
  5206. * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
  5207. `#elseif'.
  5208. * configure: Rebuilt.
  5209. * configure.in: Added support for --disable-threads.
  5210. * include/no-threads.h: New file.
  5211. * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
  5212. * Makefile.in: Rebuilt.
  5213. * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
  5214. (libjava_a_DEPENDENCIES): Added THREADOBJS.
  5215. (libjava_a_LIBADD): Added THREADOBJS.
  5216. * configure: Rebuilt.
  5217. * configure.in: Added --with-threads option.
  5218. * posix-threads.cc: New file.
  5219. * include/posix-threads.h: New file.
  5220. * include/java-lang.h (Object): Added static member sync_mutex,
  5221. member sync_info, method init_mutex.
  5222. (struct JvSyncInfo): New struct.
  5223. Include "java-threads.h".
  5224. * prims.cc (soft_monitorenter): Wrote.
  5225. (soft_monitorexit): Likewise.
  5226. * java/lang/natObject.cc (init_mutex): New method.
  5227. (notify): Wrote.
  5228. (notifyAll): Wrote.
  5229. (wait): Wrote.
  5230. (sync_mutex): Define.
  5231. Include "java-threads.h".
  5232. Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
  5233. * include/java-lang.h (JvPrivInitGC): Make extern "C".
  5234. * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
  5235. Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
  5236. * include/cni.h (jbyte etc): Re-define using __java_byte etc.
  5237. Added extern "Java" in places to tell G++ Object is a "Java" type.
  5238. Other minor renaming and fixes.
  5239. * include/java-io.h (FileDescriptor): Add friend class declarations.
  5240. G++ no longer allows non-Java types in method parameters and results
  5241. of Java classes. Converted most offending methods to friends.
  5242. * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
  5243. * java/lang/natSystem.cc (setProperty): Make friend.
  5244. * java/lang/natString.cc, include/java-lang.h (String): Rename
  5245. methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
  5246. * include/java-lang.h (JArray): Remove getData and eoprator[].
  5247. Add elements friend function instead.
  5248. * java/lang/natSystem.cc (arraycopy): Use elements function.
  5249. * java/io/natFileDescriptor.cc (read, write): Likewise.
  5250. * include/java-lang.h (Object): Remove unused make method.
  5251. (System::setProperty(char*,char*)): Turn into friend function.
  5252. (Class): Rename newObject by JvAllocObject.
  5253. * prims.cc: Update to use JvAllocObject, and elements.
  5254. * java/lang/natDouble.cc: Fix double -> jdouble.
  5255. Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
  5256. * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
  5257. Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
  5258. * java/lang/natRuntime.cc (finalize_on_exit): Define.
  5259. * include/java-lang.h (Runtime): finalize_on_exit and
  5260. runFinalizersOnExit now static.
  5261. * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
  5262. match JDK 1.2b3.
  5263. (finalize_on_exit): Now static.
  5264. * boehm.cc (mark_obj): Get class using getClass() method on
  5265. object.
  5266. (_dispatchTable): Removed.
  5267. Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
  5268. * java/io/natFileDescriptor.cc (open_read): Only call open if
  5269. HAVE_OPEN defined.
  5270. (open_write): Likewise.
  5271. * Makefile.in: Rebuilt.
  5272. * Makefile.am ($(nat_files)): Depend on config.h.
  5273. Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
  5274. * prims.cc (ObjectClass): Now a macro; updated for new class name
  5275. mangling scheme.
  5276. (StringClass): Likewise.
  5277. (ClassClass): Likewise.
  5278. Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
  5279. * java/io/natFileDescriptor.cc (available): Do nothing unless
  5280. HAVE_SELECT defined.
  5281. * java/util/natDate.cc (setTime): Conditional on
  5282. HAVE_GETTIMEOFDAY.
  5283. (toString): Conditional on HAVE_TIME.
  5284. * aclocal.m4, configure: Rebuilt.
  5285. * acinclude.m4: New file.
  5286. * configure.in: Don't actually call AM_EXEEXT. Call
  5287. AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
  5288. --with-target-subdir option. Check for select and open
  5289. functions.
  5290. Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
  5291. * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
  5292. (call_finalizer): Likewise.
  5293. * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
  5294. * prims.cc (newObject): Pass actual method pointer to
  5295. JvPrivRegisterFinalizer.
  5296. * include/jvm.h (JvPrivFinalizerFunc): New typedef.
  5297. (JvPrivRegisterFinalizer): Changed interface.
  5298. * Makefile.in: Rebuilt.
  5299. * Makefile.am (MOSTLYCLEANFILES): New macro.
  5300. (CLEANFILES): Removed javao_files.
  5301. Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
  5302. * nogc.cc: New file.
  5303. * Makefile.in: Rebuilt.
  5304. * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
  5305. (EXTRA_libjava_a_SOURCES): New macro.
  5306. (libjava_a_SOURCES): Removed boehm.cc.
  5307. (libjava_a_DEPENDENCIES): Added GCOBJS.
  5308. (libjava_a_LIBADD): Likewise.
  5309. * configure: Rebuilt.
  5310. * configure.in: Added code for --enable-gc=TYPE.
  5311. Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
  5312. * boehm.cc (mark_array): Don't further dereference pointer from
  5313. array.
  5314. * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
  5315. * Makefile.in: Rebuilt.
  5316. * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
  5317. one for boehm-gc build directory.
  5318. Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
  5319. * include/java-lang.h (finalize_on_exit): New instance variable in
  5320. java::lang::Runtime.
  5321. (runFinalizersOnExit): New method.
  5322. * java/lang/Runtime.java (finalize_on_exit): New instance
  5323. variable.
  5324. (runAllFinalizers_): New private method.
  5325. (runFinalizersOnExit): New method.
  5326. * boehm.cc (JvPrivRunFinalizers): New function.
  5327. (JvPrivRunAllFinalizers): Likewise.
  5328. (JvPrivRunGC): Likewise.
  5329. * java/lang/natRuntime.cc: Include "jvm.h".
  5330. (gc): Call JvPrivRunGC.
  5331. (runFinalization): Call JvPrivRunFinalizers.
  5332. (runFinalizersOnExit): New method.
  5333. (exit_): Call JvPrivRunAllFinalizers if required.
  5334. * include/jvm.h: Declare JvPrivRunFinalizers,
  5335. JvPrivRunAllFinalizers, JvPrivRunGC.
  5336. Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
  5337. * boehm.cc (JvPrivRegisterFinalizer): New function.
  5338. (call_finalizer): Likewise.
  5339. * include/jvm.h: Declare JvPrivRegisterFinalizer.
  5340. * prims.cc (finalize_name): New global.
  5341. (newObject): Just call other newObject.
  5342. (newObject): Register finalizer if it exists.
  5343. Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
  5344. * prims.cc (gc_malloc): Removed.
  5345. (makeUtf8Const): Use JvPrivAllocBytes.
  5346. (lookupArray): Likewise.
  5347. (newPrimArray): Likewise.
  5348. (JvNewObjectArray): Use JvPrivAllocArray.
  5349. (newObject): Use JvPrivAllocObj.
  5350. (newObject): Likewise.
  5351. Changed Method -> JvMethod everywhere.
  5352. Changed Field -> JvField everywhere.
  5353. * include/java-lang.h (Object): Changed type of `fields' to
  5354. JvField*.
  5355. (jmethodID, jfieldID): New typedefs.
  5356. (Object): JvGetFirstInstanceField and JvNumInstanceFields now
  5357. friends.
  5358. * include/jvm.h (struct JvMethod): Renamed from Method, and moved
  5359. from java-lang.h.
  5360. (METHOD_NATIVECODE): Moved from java-lang.h.
  5361. (class JvField): New class.
  5362. (JvGetFirstInstanceField): New function.
  5363. (JvFieldIsRef): Likewise.
  5364. (JvGetObjectField): Likewise.
  5365. (JvNumInstanceFields): Likewise.
  5366. Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
  5367. * boehm.cc: New file.
  5368. * Makefile.in: Rebuilt.
  5369. * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
  5370. (INCLUDES): Added -I options to find boehm-gc files.
  5371. Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
  5372. * configure: Rebuilt.
  5373. * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
  5374. * Makefile.in: Rebuilt.
  5375. * Makefile.am (nat_files): New macro.
  5376. (libjava_a_DEPENDENCIES): Use it.
  5377. (libjava_a_LIBADD): Likewise.
  5378. ($(nat_files)): New static pattern rule.
  5379. (class_files): Run separate find to find .class files.
  5380. (javao_files): Compute based on class_files.
  5381. (BUILT_SOURCES): New macro.
  5382. Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
  5383. * Makefile.am (java_files): New macro.
  5384. (class_files): Likewise.
  5385. (javao_files): Likewise.
  5386. (libjava_a_DEPENDENCIES): Include $(javao_files).
  5387. (libjava_a_LIBADD): Likewise.
  5388. (classes.stamp): Depend on $(java_files); only recompile changed
  5389. files.
  5390. (here): New macro.
  5391. (CLEANFILES): Don't run find; use macros. Don't mention
  5392. libjava.a.
  5393. (.class.o): New target.
  5394. (compiled.stamp): Removed.
  5395. Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
  5396. * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
  5397. LineNumberReader}>java: Newly-implemented standard classes.
  5398. Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
  5399. * Makefile.in: Rebuilt.
  5400. * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
  5401. * Makefile.in: Rebuilt.
  5402. * Makefile.am (hack): New macro.
  5403. (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
  5404. Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
  5405. * include/config.h.in: New file.
  5406. * include/config.h: Removed.
  5407. * acconfig.h: New file.
  5408. * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
  5409. (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
  5410. libjava_a_LIBADD): New macros.
  5411. (INCLUDES): New macro.
  5412. (prims.o): Removed.
  5413. (.cc.o): Removed.
  5414. (SUFFIXES): Removed.
  5415. (all): Removed.
  5416. (libjava.a): Removed.
  5417. * configure: Rebuilt.
  5418. * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
  5419. Look for headers and functions we require. Create
  5420. include/config.h.
  5421. Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
  5422. * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
  5423. soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
  5424. soft_lookupinterfacemethod): New functions.
  5425. (PrimClass): Actually initialize the primitive classes.
  5426. (Utf8Const2JavaString): Moved to java/lang/natString.cc.
  5427. * include/java-util.h: Removed java::util definition.
  5428. * include/cni.h: Moved java::util here and added Properties.
  5429. Added more function prototypes.
  5430. * include/java-lang.h: Added mroe methods and friend declarations.
  5431. * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
  5432. * include/jvm.h (strLengthUtf8): Add declaration.
  5433. * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
  5434. New static field.
  5435. * java/lang/{Byte,Short,Void}.java: New classes.
  5436. * java/lang/Character.java (isJavaIdentifierStart,
  5437. JavaIdentifierPart): New static methods.
  5438. * java/lang/Number.java (byteValue, shortValue): New methods.
  5439. * java/lang/String.java (intern, hashCode): Make native.
  5440. * java/lang/natString.cc: New file. Handle the string pool.
  5441. * Makefile.am: Build natString.o. Use CXXFLAGS.
  5442. * java/lang/Class.java (isArray, isPrimitive, getComponentType,
  5443. isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
  5444. * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
  5445. * java/lang/System.java (setProperty): New private method.
  5446. (initProperties): Take argument, and make native.
  5447. * java/lang/natSystem.cc: Implement (preliminary) initProperties.
  5448. (currentTimeMillis): Make more robust.
  5449. * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
  5450. * java/io/UnsupportedEncodingException.java: New exception class.
  5451. * java/io/DataInputStream.java: Don't use a PushbackInputStream.
  5452. * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
  5453. Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
  5454. * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
  5455. * prims.cc: Added bunch of stuff.
  5456. * include/cni.h: Added various definitions.
  5457. * include/java-lang.h: Added Method, various friends, some macros.
  5458. * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
  5459. * java/lang/System.java (arraycopy): Make native.
  5460. Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
  5461. * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
  5462. natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
  5463. * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
  5464. * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
  5465. Make native.
  5466. * java/lang/Runtime.java: Declare methods as native instead of
  5467. using NativeLang.
  5468. * java/lang/SecurityManager.java (getClassContext): Just throw Error.
  5469. * java/lang/System.java: Comment out some stuff, for now.
  5470. * java/lang/Thread.java: Re-write. Use native methods.
  5471. * java/lang/NativeLang.java: Remove most of it.
  5472. * java/util/natDate.cc: Native (C++) methods for Date.
  5473. * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
  5474. * java/util/Date.java: Complete re-write.
  5475. * java/io/io-defs.h: New header file.
  5476. * java/io/FileDescriptor.java: Add a bunch of private methods,
  5477. mostly moved from NativeIO.java and natNativeIO.cc.
  5478. * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
  5479. * java/io/File.java: Use new code.
  5480. * java/io/{FileInputStream.java.FileOutputStream.java,
  5481. RandomAccessFile.java}: Use new private FileDescriptor methods.
  5482. * java/io/NativeIO.java: Removed, no longer used.
  5483. * java/io/StreamTokenizer.java (numericChars): Make char array.
  5484. * include/*.h: Various header files used by the C++ native code.
  5485. * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
  5486. New autoconf+automake-based setup.
  5487. * prims.cc: New file for Java "primitives".