Community
Participate
Working Groups
F1 1. create the folling code, try an organize inport on it. 2. The simple name 'InputStream' can not be resolved 3. Change the while loop body to i= null; -> resolving works public class Test { void foo() { InputStream i= null; while(true) ; } }
I cannot reproduce in latest. Could you please give it a try with tomorrow's build and let me know if it is still boggus?
it's still there in 20020528 I can reproduce it with the given code. Add "import java.io.InputStream;" Do an organize import on it and you will still ask you which InputStream Set a breakpoint in OrganizeImportsOperation.process and you will see that the simplename for 'InputStream' has no binding.
I'm using jdk 1.4 that's why InputStream exists more than once. Try List instead.
I tried what you said. 1) I defined this class: public class Test { void foo() { InputStream i= null; while(true); } } 2) I organized imports and I got several InputStream (I am using 1.4 also). 3) I choose java.io.InputStream and I got: import java.io.InputStream; public class Test { void foo() { InputStream i= null; while(true); } } 4) I tried again "Organize imports..." and I didn't have to choose again an "InputStream" class. Then I tried the following test case: package test0353; import java.io.InputStream; public class Test { void foo() { InputStream i = null; while (true); } } I resolve the simple name "InputStream" and the simple type corresponding to this simple name and both resolution replied "java.io.InputStream". So I guess this has been fixed with the latest changes for 18255 or 18138. Let me know if you can still reproduce it when the fixes for these two bugs are in the build.
I tried directly in 0529 and I couldn't reproduce it. Please reopen if you can reproduce it on your side with latest build.
This one is verified, found new bug 18708. Verified