File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Algorithm for static binding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Algorithm for static binding" Watch "Algorithm for static binding" New topic
Author

Algorithm for static binding

Matthias Kleine
Greenhorn

Joined: Apr 16, 2006
Posts: 3
Hi there,

in the Java Language Spec, chapter 15.12, there is a rather exhausting description of the compile-time steps which are done to bind a method invocation to a declaration. This description might be precise and complete, but I find it quite difficult to use as a starting point for implementing a static binding algorithm.

In the JustAddJ compiler, I found an aspect for this method lookup. However, even this aspect is not what I am looking for, especially due to its declarative (instead of purely procedural) nature.

I searched the web for some easy-to-read-and-understand procedural descripiton of the static binding algorithm, but I was astonished not to find some.

Did anybody of you guys (and girls) ever see such a description. I would even accept a simplified version of it, which might not be complete in respect to some special issues like type erasure. But I would be glad to get an entry point to this issue.

Best regards
Matthias
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Algorithm for static binding
 
Similar Threads
class methods vs instance method
early and late binding
Fastest chess?
Calling a method from the command prompt
Welcome Elisabeth A. Freeman, Eric Freeman, Bert Bates and Kathy Sierra!