In testing BufferStrategy.getDrawGraphics(), it seems that the returned class is castable to a Graphics2D. However, the javadoc on the method states that BufferStrategy.getDrawGraphics() returns a Graphics, unlike (for example) BufferedImage.getGraphics(), which is typed to return a Graphics for compatibility but which the javadoc explicitly says returns a Graphics2D.
Is there an oversight in the javadoc for BufferStrategy.getDrawGraphics(), or is the current castability to Graphics2D a happy accident which may disappear in the future? =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
