Summary: | [search] NullPointerException at ...jdt.internal.compiler.lookup.SourceTypeBinding.getMethods | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Wolfgang <eclipse-bug> | ||||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||
Severity: | minor | ||||||||
Priority: | P3 | ||||||||
Version: | 3.1.1 | ||||||||
Target Milestone: | 3.2 M5 | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Wolfgang
2005-12-14 02:51:05 EST
Please provide test case to help us to reproduce, thx Created attachment 31718 [details]
search this library to reproduce the problem
The problem persists when I restrict my working set to
ca.odell.glazedlists.impl.beans.BeanTableFormat.
Maybe there is a mismatch between binary and source.
Sorry, I have no time to check it.
I think the problem is related to the parentheses. The following search expression fails: * String (Collection) The following search expression works: * String Collection OK, reproduced but string pattern is: "* (Collection) String" Parameters must be put before return type... See javadoc comment of SearchPattern.createMethodOrConstructorPattern(String,int,int,boolean): /** * Method pattern are formed by:<br> * [declaringType '.'] ['<' typeArguments '>'] selector ['(' parameterTypes ')'] [returnType] * <br>e.g.<ul> * <li>java.lang.Runnable.run() void</li> * <li>main(*)</li> * <li><String>toArray(String[])</li> * </ul> * Constructor pattern are formed by:<br> * [declaringQualification '.'] ['<' typeArguments '>'] type ['(' parameterTypes ')'] * <br>e.g.<ul> * <li>java.lang.Object()</li> * <li>Main(*)</li> * <li><Exception>Sample(Exception)</li> * </ul> * Type arguments have the same pattern that for type patterns * @see #createTypePattern(String,int,int,char) */ I doubdt this will be fixed in 3.1 maintenance (severity is minor) but will surely be for 3.2... Created attachment 31762 [details]
Patch to fix this issue
Specific eclipse patch format including 2 projects:
- org.eclipse.jdt.core
- org.eclipse.jdt.core.tests.model
Fixed and released in HEAD. Test cases added to JavaSearchBugsTests Verified for 3.2 M5 using build I20060214-0010 |