欢迎来到天天文库
浏览记录
ID:38280777
大小:169.95 KB
页数:6页
时间:2019-05-27
《Pusan, Korea》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、InterproceduralExceptionAnalysisforJavaByeong-MoChangJang-WuJoKwangkeunYiKwang-MooChoePusanUniversitySookmyungWomen'sKoreaAdvancedInst.ofScience&TechnologyUniversityofForeignStudiesTaejon,KoreaPusan,KoreaSeoul,Koreafkwang,choeg@cs.kaist.ac.krchang@cs.sookmyung.ac.krjjw@saejong.pufs.
2、ac.krKeywords:Java,classanalysis,uncaughtexceptionanal-time.Programmershavetodeclareinamethoddenitionysis,set-basedanalysisanyexceptionclasswhoseexceptionsmayescapefromitsbody.ABSTRACTTheproblemisthatthecurrentcompilerisnotelaborateCurrentJDKJavacompilerreliestoomuchonprogram-enough
3、todobetter"thanasspeciedbytheprogram-mer'sspecicationforcheckingagainstuncaughtexceptionsmers.Itcannotavoidprogrammer'sunnecessaryhandlersoftheinputprogram.Itisnotelaborateenoughtore-norsuggesttoprogrammersforspecializedhandlings.Itmoveprogrammer'sunnecessaryhandlers(whenprogram-i
4、sforeseeableforcareless(orincondent)programmerstomer'sspecicationsaretoomany)norsuggesttoprogram-excessivelydeclareateverymethodthatsomeexceptionsmersforspecializedhandlings(whenprogrammer'sspeci-canbeuncaught.Similarly,programmerscanspecifyex-cationsaretoogeneral).Weproposeastati
5、canalysisofceptionsintooabroadsense.ProgrammerscandeclareJavaprogramsthatestimatestheirexception owsindepen-thatamethodthrowsexceptionsofthemostgeneralclassdentlyoftheprogrammer'sspecications.ThisanalysisisExceptioneveniftheactualexceptionsareofmuchlower,designedandimplementedbasedo
6、nset-constraintframe-specicclasses.Thenitshandlercannotoerpropertreat-work.Itscost-eectivenessissuggestedbysparselyanalyz-mentsspecictotheexactclassesofactualexceptions.ingtheprogramatmethod-level(hencereducingthenum-berofunknownsinthe owequations).WehaveshownWeproposeaninterproc
7、eduralstaticanalysisofJavapro-thatourexceptionanalysiscaneectivelydetectuncaughtgramsthatestimatestheirexception owsindependentlyofexceptionsforrealisticJavaprograms.theprogrammer'sspecications.Ourexceptionanalysisis1.INTRODUCTIONdesignedbasedonset-basedframeworkandneedsclass(ortyp
8、e)informatio
此文档下载收益归作者所有