Community
Participate
Working Groups
Using 2.1, the source of a .class file could be automatically attached when the source of a .class file located in a class folder is in the same folder. See bug 36337 for a description of the problem. When bug 36499 will be fixed, no source will be returned for a .class file located in a class folder even if the corresponding source file is also located in the same class folder. In the openBuffer(...) method of the ClassFile class, we could detect such a case and automatically attach the proper source to the package fragment root that corresponds to the class folder. The actual behavior is incomplete. Due to a bug (see bug 36499), we return a source for a .class file located in a class folder, but the editor opened on that source doesn't synchronize with the outliner (bug 36337).
Created attachment 4618 [details] Patch the HEAD contents with this patch file.
Fixed and released in HEAD. Regression tests added.
Verified.