Community
Participate
Working Groups
HEAD Binary methods with linebreaks after modifiers have no source range. From jdk1.5.0_01, open java.util.Collections. The three methods below have no source range and are thus not selected in the java editor when selected in the outline. public static <T> int binarySearch(List<? extends Comparable<? super T>> list, T key) { private static <T> int indexedBinarySearch(List<? extends Comparable<? super T>> list, T key) private static <T> int indexedBinarySearch(List<? extends Comparable<? super T>> list, T key)
Another binary method from java.lang.Class, where source range and name range are [offset=-1; length=0]: public boolean isAnnotationPresent( Class<? extends Annotation> annotationClass) { ... } This bug probably also causes problems for content assist and javadoc hovers (bug 82147). Generalizing title from "Binary methods with linebreaks after modifiers have no source range".
*** Bug 87514 has been marked as a duplicate of this bug. ***
*** Bug 129317 has been marked as a duplicate of this bug. ***
For these methods, getParameterNames() also does not find the names in source, unless Javadoc attachments are available (i.e. remove Javadoc attachments to reproduce the missing parameter names).
Verified that those methods now have a source range with JDT Core HEAD. I believe the fix for bug 148010 also fixed this bug. *** This bug has been marked as a duplicate of 148010 ***