JDK-4097043 : incorrect warnings about auto-generated methods
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.1.5
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1997-12-04
  • Updated: 1999-10-14
  • Resolved: 1999-10-14
Related Reports
Duplicate :  
Description
Compiling JavaTest, we get the following message about the "hidden" method
class$.   Both the Script class, and one of its subtypes, RegressionScript,
use class literals. If we remove the class literal from RegressionScript,
the message goes away.  The use of the class literal is legal:
	Class[] argTypes = {String[].class};

I've tried to make a simple test case but failed. Sorry.  JavaTest source
code is available on request (its in /usr/sqe/workspaces/sqe-tools-jt20int)


regtest/RegressionScript.java:55: Note: Method java.lang.Class class$(java.lang.String) in class javasoft.sqe.javatest.regtest.RegressionScript does not override the corresponding method in class javasoft.sqe.javatest.Script, which is private to a different package.
public class RegressionScript extends Script
             ^

Comments
EVALUATION Transferring to maddox@Eng. He may have fixed something like this recently, if memory serves... todd.turnidge@Eng 1998-02-10 This is almost assuredly a duplicate of 4106051, fixed in the current 1.2beta3 candidate. william.maddox@Eng 1998-02-10 Revisited and verified as duplicate. iris.garcia@eng 1999-10-13
10-02-1998