PRB: You Receive Compilation Errors in a Visual J++ Windows Application That JLCA Converts by Using the getClick Method (819604)
The information in this article applies to:
- Microsoft Visual J++ 6.0
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual J++ 1.0
SYMPTOMSAfter you convert a Visual J++ project to a Visual C# .NET
project by using Java Language Conversion Assistant (JLCA), you receive the
following error message during compilation of the generated Visual C# .NET
project: The keyword new is required on 'ClassName.Click'
because it hides inherited member 'System.Windows.Forms.Control.Click'
This error occurs when the Visual J++ project contains a java.awt.Frame derived class and a getClick() method. CAUSEWhile converting the Visual J++ project to a Visual C# .NET
project, JLCA converts the getClick() method to a Click property. Because the generated Visual C# .NET class is derived
from the System.Windows.Forms.Form class (which has a Click property), you receive the error message.STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor more information about the Java Language Conversion
Assistant (JLCA), visit the following MSDN Web site:
Modification Type: | Minor | Last Reviewed: | 8/15/2005 |
---|
Keywords: | kberrmsg kbCodeGen kbWindowsForms kbJava kbconvert kbbug KB819604 kbAudDeveloper |
---|
|