"No enclosing instance of type ... is available due to some intermediateconstructor invocation."

?

-

I have this error "No enclosing instance of type ... is available due to
some intermediate constructor invocation." for a class with this structure:

public abstract class A1 extends A {

public A1(Object o) {
super(o);
}

public class B1 extends B {

public B1(Object o) {
super(o); <---- error here
}
}

private class B extends A1 {

public B(Object o) {
super(o);
}
}
}
 
?

-

- said:
I have this error "No enclosing instance of type ... is available due to
some intermediate constructor invocation." for a class with this structure:

public abstract class A1 extends A {

public A1(Object o) {
super(o);
}

public class B1 extends B {

public B1(Object o) {
super(o); <---- error here
}
}

private class B extends A1 {

public B(Object o) {
super(o);
}
}
}

nvm.. 'static' is the answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top