Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31703
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Robert Klemme <shortcutter@googlemail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: how does a marker interface give specific instruction to jvm(java internals) |
| Date | Thu, 14 May 2015 00:14:58 +0200 |
| Lines | 29 |
| Message-ID | <cri0n3FkjtqU1@mid.individual.net> (permalink) |
| References | <fb878f12-cf37-4889-9e38-91ed3a590af6@googlegroups.com> <5b49c798-5b11-4b08-8d87-a241d9a3cfc0@googlegroups.com> <miu160$eg6$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net V3/4OiN4AUrhVF3gFYn11w8zBMEa5ezRC1XQ4yQm5NwUzzmdM= |
| Cancel-Lock | sha1:TIIiYrhSk2qcM73iImZxiIUvT8I= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
| In-Reply-To | <miu160$eg6$1@dont-email.me> |
| Xref | csiph.com comp.lang.java.programmer:31703 |
Show key headers only | View raw
On 13.05.2015 01:07, Jeff Higgins wrote: > On 05/12/2015 11:54 AM, Ajay Paul wrote: >> My understanding is that JVM looking for specific signatures for the >> Java class library marker interface just like it does for main method. >> hence interfaces like Serializable, Clonable have a specific meaning >> to the jvm. >> >> so, its roughly like an IoC principle: "Instead of I define myself, >> you define me". >> >> Am I correct ? >> > Please read the "Java Object Serialization Specification". I am not sure that advice will help: the spec only covers the effects of tagging a class as serializable with the interface Serializable, but it does not explain how that tagging is technically done. And this seems to be the point the OP is struggling with. To resolve that question reading the JVM Specification might help, for example the section about the class file format: http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how does a marker interface give specific instruction to jvm(java internals) Ajay Paul <ajaykpaul@gmail.com> - 2015-05-10 03:08 -0700
Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-10 07:41 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Joerg Meier <joergmmeier@arcor.de> - 2015-05-10 14:00 +0200
Re: how does a marker interface give specific instruction to jvm(java internals) Arne Vajhøj <arne@vajhoej.dk> - 2015-06-03 21:49 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Ajay Paul <ajaykpaul@gmail.com> - 2015-05-12 08:54 -0700
Re: how does a marker interface give specific instruction to jvm(java internals) Robert Klemme <shortcutter@googlemail.com> - 2015-05-12 18:53 +0200
Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-12 19:07 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Robert Klemme <shortcutter@googlemail.com> - 2015-05-14 00:14 +0200
Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-12 21:34 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Arne Vajhøj <arne@vajhoej.dk> - 2015-06-03 21:27 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-13 22:33 -0400
Re: how does a marker interface give specific instruction to jvm(java internals) Jeff Higgins <jeff@invalid.invalid> - 2015-05-13 22:49 -0400
csiph-web