Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: 1. Create a new Class in package foo.bar 2. Write this in the editor: --- package foo.bar; public class Test { private static Map<String, String> var; static { var= new HashMap<String, String>(); } } --- (note that there are no import statements) Hovering over "var" in the assignment gives you "Missing code implementation in the compiler" problem message. More information: The same thing happens without the "static" keywords being there.
Created attachment 108276 [details] proposed patch with simple test A ParameterizedTypeBinding whose 'type' is missing is marked with HasMissingType, yet it's problemId() was reported as NoError. -> ProblemReporter.invalidType() was trying to report "NoError". Since a ParameterizedTypeBinding cannot have a relevant problemReason delegating to the type should be safe, right? Are there more situations like this? ArrayBinding already implements the same strategy. Others?
*** This bug has been marked as a duplicate of bug 239439 ***
(In reply to comment #1) > Are there more situations like this? ArrayBinding already implements > the same strategy. Others? I ended up with a similar fix for bug 239439. I don't think we need to check for null as the inner type cannot be null by construction.
Stephan, thanks for your time and the patch.
(In reply to comment #3) > I ended up with a similar fix for bug 239439. ;-) > I don't think we need to check > for null as the inner type cannot be null by construction. I fully agree. Do your tests for bug 239439 also detect the bogus error message ("Missing code implementation")? Perhaps you can still use the test from my patch for that purpose, if you like.
(In reply to comment #5) > Do your tests for bug 239439 also detect the bogus error message > ("Missing code implementation")? Perhaps you can still use the test > from my patch for that purpose, if you like. This is exactly what I did. See the released version of the GenericTests.
Verified for 3.5M1 using I20080805-1307