The information in this article applies to:
SYMPTOMSWriting a Java program that recursively imports itself results in the following error message:
CAUSEThis error message occurs when the Java compiler recursively opens the Java file until there are too many files open. WORKAROUNDYou should not write programs that recursively import themselves. There is no conditional compilation in Java, and therefore no reason to write a Java file that recursively imports itself. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual J++ 1.1. MORE INFORMATIONSteps to Reproduce BehaviorThe following code causes the compiler to recursively open the file "recursiveImport.java" until too many files are open and a J0161: Cannot open source file: '.\recursiveImport.java' error message is generated. This is followed with error J0049: Undefined name 'recursiveImport'.
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ Additional query words:
Keywords : kbCommandLine kbVJ100bug kbVJ110fix |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |