Message938

Author gcash
Recipients
Date 2004-10-14.21:21:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If you have a Java class signature that doesn't have a
constructor with no
arguments like:

DoSomeStuff(int foo)
DoSomeStuff(float foo)

and you DON'T have:

DoSomeStuff()

Then when you try to subclass DoSomeStuff, you get a
compile error because it
generates code to handle the non-existant
"DoSomeStuff()" case.

If StarInterpolator is a subclass of
RotationInterpolator, this causes errors
like :

Compiling .java to .class...
    [snip]
1  ./jpywork/Star.java:243: cannot resolve symbol
symbol  : constructor RotationInterpolator ()
location: class javax.media.j3d.RotationInterpolator
            super();
            ^

super() doesn't exist because RotationInterpolator()
doesn't exist.

If you go into the generated code and delete the
following code

         StarInterpolator() {
            super();
            __initProxy__(new Object[] {});
        }

then it compiles just fine.
History
Date User Action Args
2008-02-20 17:17:20adminlinkissue1047347 messages
2008-02-20 17:17:20admincreate