decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
Come on! You've never said that Microsoft dlls are 'number twos'? ...nt | 126 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
Google was accurate: they described a method declaration
Authored by: Anonymous on Thursday, April 19 2012 @ 09:58 PM EDT
I think original poster is thinking of how DLL entry points may be found, by
name or ordinal.

For the normal case, that has absolutely nothing to do with a language like Java
that is compiled from source into bytecode and interpreted by the Java Virutal
Machine (JVM).

The only exception is likely in the area of the Java Native Interface (JNI)
support, which provides interfaces that are specifically designed to allow the
Java program to call native (nominally C) code.

[ Reply to This | Parent | # ]

Google was accurate: they described a method declaration
Authored by: Anonymous on Thursday, April 19 2012 @ 11:36 PM EDT
Original poster here. Yes, interrupt functions are another good example of what
I meant. My point was that an API as an abstract idea only defines the
specification of how it should be called and what function it is supposed to
perform, and the fact that it needs to be a specific word what is used is a
quirk that is specific of the Java API or of its implementation (and also of
quite some other systems like Unix libraries).

I think that that might have some weight on its (lack of) copyrightability
(sorry if I invented the word). Which was where I was going with that.

[ Reply to This | Parent | # ]

Google was accurate: they described a method declaration
Authored by: eachus on Thursday, April 19 2012 @ 11:36 PM EDT
If you have any more information about call-by-number I would be curious to see it. Sounds a little like paint-by- number for programmers.

In an object-oriented language, the methods associated with a class are fixed, but a given call in the source program will be dynamically dispatched at execution time to the method of that name for the actual object passed as the controlling parameter.* This dispatching is done using a dispatch table listing the methods for the object. Due to class derivation, these methods have to start with the primitives of the ultimate parent class (object in Java) followed by the additional methods in class order from parent to child. Note that if a method is overridden, the overriding method gets put in the dispatch table in place of the method it overrides. The overriding declaration need not be visible at the point of the call, but it must have the same parameter and result profile as the declaration of the method it overrides.

So yes, each method has a number, which can be computed by a compiler, and stuck in the generated code. What can't always be determined at compile time is whether the class of the controlling parameter at the point of the (execution time) calls will have a method corresponding to that number. If the number is low enough, no check is needed, otherwise a check is needed and an exception may occur.

*Ada in particular allows the controlling class to be determined by the function return specific type instead. This is nice when creating constructors, but a minor detail here.

[ Reply to This | Parent | # ]

Come on! You've never said that Microsoft dlls are 'number twos'? ...nt
Authored by: Ian Al on Friday, April 20 2012 @ 07:58 AM EDT
.

---
Regards
Ian Al
Software Patents: It's the disclosed functions in the patent, stupid!

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )