I am currently writing a compiler for a big subset of java and i can’t seem to find anything useful for name resolution techniques. Can you please point me towards some resources
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The VM specification for class file format contains the naming conventions expected by the various types of names used in the JVM.
They differ slightly (not by much) depending on whether you are referring to a class name, a package name, a member name, or a method signature.
As far as name resolution techniques, you need to ensure that you follow the resolution rules as laid out in the Language Specification.
Basically, if you violate the rules laid out in the language spec (or the names expected in the class file spec), then you violate how the Java language works, or what the class loader expects (respectively).