Community
Participate
Working Groups
When using a linked folder in a Java project, if I modify a java source that imports from the linked folder the compiler: - says the import is not used - gives unresolved symbol errors in the lines that use files from that import. A simple test that reproduces the error: 1) Create a folder (C:\temp\test2) 2) Create a class in there (C:\temp\test\Test.java) 3) Create a new project in Eclipse 4) Link the folder (test -> C:\temp\test) 5) Create a class in the new project (Test2.Java) in that class use "import test.*;" and in any method use the class "Test t = new Test();" When the project in rebuild the error disapears, but if one changes anything on the Test2.java file (for example, adding a blank line) and saves the file then the error appears again.
Seems like a reconciling with error problem. Kent, pls investigate.
Links were added to allow projects to include source & output folders outside the workspace, not top-level packages. For now, you have 2 options for this case: 1. Add c:\temp as a source folder. 2. Add an output folder to the project (either inside or outside the workspace). We need to decide whether we want to support top-level packages as linked resources. The 'fix' for this problem may be to exclude this case.
Fixed by handling the exception case when we cannot find the .class file using our normal search.
Verified.