Jump to content
  • Advertisement
Sign in to follow this  
gamechampionx

Confusing Error

This topic is 4821 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm modifying a very complicated program which seems to be in the form of JavaBeans. I simply modified one include statement, and it triggers an error like: ClassA is not abstract and does not override abstract method MethodC in InterfaceB. However, InterfaceB is no longer included, and is replaced by some other class ClassD, but InterfaceB still shows up in the error. It is important to note that InterfaceB is actually implemented by ClassD. ClassA is the class that ClassD is being used in, and this error is taking place in it's line of delaration, which doesn't seem to have anything to do with either InterfaceB or ClassD. I'm sorry about the complexity of this problem. If you even have any idea as to what causes this type of error, do let me know.

Share this post


Link to post
Share on other sites
Advertisement
Does ClassD implement all of InterfaceB? In particular, is there MethodC in ClassD?

Share this post


Link to post
Share on other sites
It seems to properly implement the interface. However, in the interface, there is a public static final variable that when initialized, is assigned to a value from the interface, which is supposed to be casted as a class by the time it's called. Is this legal?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!