Article View: borland.public.jbuilder.java.api
Article #462Re: java and goto instuction! amazing!
From: E.C. B�ck
Date: Mon, 25 Aug 2003 02:31
Date: Mon, 25 Aug 2003 02:31
22 lines
2365 bytes
2365 bytes
"Amir Pashazadeh" <pasha@abdnet.com> wrote in message news:bi77c4$5ja9n$1@ID-170682.news.uni-berlin.de... > Hi everybody, > I decompiled a class file (using 3 different decompilers for accurancy), and > every time I got the same source code, there is something amazing in it, it > has "goto" instruction! how can it be? > does JVM (as executor) supports "goto" instruction, but no standard compiler > supports it yet? so a custom compiler can use it? Well, you haven't actually decompiled anything, you know. Decompilers produce source code, not opcodes. What you have done is translate the opcodes to their english names, and their arguments as well. Like many others have said, goto is just a jumping instruction, critical in both branching, looping, but also in method invocation. Java does reserve the goto keyword, although it is not implemented. Thus, goto is a part of java, albeit a nominal and useless one. -- Elliott
Technical Details
Message-ID:
<bibsej$deu$1@news01.cit.cornell.edu>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!not-for-mailReferences:
<bi77c4$5ja9n$1@ID-170682.news.uni-berlin.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,e1650d725c17806f X-Google-Attributes: gid10a146,public X-Google-Thread: 1089d0,e1650d725c17806f X-Google-Attributes: gid1089d0,public X-Google-Thread: 10bb9b,e1650d725c17806f X-Google-Attributes: gid10bb9b,public X-Google-Thread: f74b3,e1650d725c17806f X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2003-08-24 19:31:48 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!not-for-mail From: "E.C. B�ck" <ecb29@cornell.edu> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.machine,comp.lang.java.programmer Subject: Re: java and goto instuction! amazing! Date: Sun, 24 Aug 2003 22:31:15 -0400 Organization: Cornell University Lines: 24 Sender: ecb29@cornell.invalid (on r105296.resnet.cornell.edu) Message-ID: <bibsej$deu$1@news01.cit.cornell.edu> References: <bi77c4$5ja9n$1@ID-170682.news.uni-berlin.de> NNTP-Posting-Host: r105296.resnet.cornell.edu X-Trace: news01.cit.cornell.edu 1061778707 13790 128.253.108.37 (25 Aug 2003 02:31:47 GMT) X-Complaints-To: usenet@news01.cit.cornell.edu NNTP-Posting-Date: 25 Aug 2003 02:31:47 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165