> From: "Gary L. Graf" <[EMAIL PROTECTED]>
>
> SceneGraphPath pickPath = new SceneGraphPath();
> sceneObjectsBranchRoot.pickAny(nextPick);
> pickedObject = pickPath.getObject();
>
> The program compiled successfully and ran, but never found any
> intercepted objects. However, when the [...] line is changed to:
>
> pickPath = sceneObjectsBranchRoot.pickAny(nextPick);
>
> it will indeed find the intercepts. The question is, why did it compile
> and run correctly if no provision was originally made for accepting the
> returned value from pickAny()?
This is really a Java language question. The return value from a method can be
ignored without errors or warnings. I don't know why. It does come in handy
sometimes, but it can also lead to not checking the error status for some
methods as well as errors like the above.
Doug Gehringer
Sun Microsystems
===========================================================================
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".