Sign in to follow this  
gamechampionx

Confusing Error

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this