Community
Participate
Working Groups
package p; public class ArrayLenghthAccess { private int test=new int[8].length; } Use Extract Class on ArrayLenghthAccess leads to a NPE
This is because the org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.FieldReferenceFinder.checkVariableBinding(IVariableBinding) does not check if the declaringClass is null, which is the case for the length field.
Can you fix it?
Created attachment 75314 [details] Patch
fixed > I20070731-0800 interesting.