Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > "No enclosing instance of type ... is available due to some intermediateconstructor invocation."

Reply
Thread Tools

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

 
 
-
Guest
Posts: n/a
 
      07-02-2005
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);
}
}
}
 
Reply With Quote
 
 
 
 
-
Guest
Posts: n/a
 
      07-02-2005
- wrote:
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Referencing enclosing instance Mike Schilling Java 7 04-30-2010 05:14 PM
Failed to generate a user instance of SQL Server due to a failure instarting the process for the user instance. The connection will be closed Homer ASP .Net 1 05-26-2009 12:36 AM
Getting a reference to enclosing instance without using literal classname Robert Dodier Java 5 09-15-2008 05:10 AM
Enclosing class instance availability during inner class initialization Stanimir Stamenkov Java 4 07-14-2006 01:13 PM
JAXB: Nested Type hides an Enclosing Type. chicagoandy@hotmail.com Java 6 03-02-2005 04:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57