Hello David,

In 1.2.1 Point3d does not have a clone() method, so it is inherited
from Object, where it is declared protected. You can either use 1.3b1
or simply say "oldPos = new Point3d(pixelLocationInVWCoords);".

> From: David Rush <[EMAIL PROTECTED]>
>
> Can somebody explain why I get this error:
>
> Found 1 semantic error compiling
> "E:/CourseWork/year3/project/code/test/NewIntersectInfoBehavior.java":
>
>    137.  oldPos = (Point3d)pixelLocationInVWCoords.clone();
>                            <----------------------------->
>
> *** Error: Method "java.lang.Object clone();" in class
> "javax/vecmath/Point3d"
> has protected or default access. Therefore, it is not accessible in class
> "NewIntersectInfoBehavior" which is in a different package.
>
>
>
> This seems absurd to me.  How am I supposed to make a copy of the object?
> Surely as a subclass of Object I should be able to access its methods.  Can
> somebody suggest a way round this?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to