Community
Participate
Working Groups
Just noticed that in 3.2RC1a I get some incorrectly formatted code completion when creating a synchronized map. I've only noticed this for this one method but there are probably others out there. The completion is available, but I get the following in the drop down and when I select it: Map m = Collections.synchronizedMap(java.util">Map</A><K) Perhaps the parser of the method signature is having problems with this case of generics, or maybe there is something strange in the Javadoc for that class? Not a serious issue but I thought I would report it since I couldn't find it in the bug system currently.
Looks like wrong extraction from Javadoc. Are you using 5.0 or 1.4?
Here's the info for the JDK I run Eclipse with and have configured as the compiler for the project: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112) Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing) This is the JDK for OS X. Thanks.
+1 for 3.2RC2
The parameter source is: <A HREF="../../java/util/Map.html" title="interface in java.util">Map</A><K,V> m And the parameter name is not extracted properly. I am splitting on the ',', and this doesn't work well in case of generic types. I am investigating how to split them in order to get the 'm' part.
Created attachment 39679 [details] Proposed fix
Created attachment 39680 [details] Regression test
Fixed and released in HEAD. Regression test added in org.eclipse.jdt.core.tests.model.AttachedJavadocTests.test019
Verified with I20060427-1600 for 3.2RC2
Changing OS from Mac OS to Mac OS X as per bug 185991