I am currently writing a java compiler, one of the things that i have to enforce is acyclic inheritance. I was wondering what is the best way to check this requirement is. Thanks!
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.
Have a look at this part of the JLS, specifically the part at the bottom of 8.1.4 that says “a class C directly depends on a type T if…”.
The JLS is your go-to reference if you’re writing a Java compiler. You’ll probably end up knowing the whole book like the back of your hand.