View | Details | Raw Unified | Return to bug 75090
Collapse All | Expand All

(-)org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetParser.java (-1 / +1 lines)
Lines 255-261 protected void consumeMethodDeclaration( Link Here
255
	}
255
	}
256
	
256
	
257
	int start = methodDecl.bodyStart-1, end = start;
257
	int start = methodDecl.bodyStart-1, end = start;
258
	long position = (start << 32) + end;
258
	long position = ((long) start << 32) + end;
259
	long[] positions = new long[]{position};
259
	long[] positions = new long[]{position};
260
	if (this.evaluationContext.localVariableNames != null) {
260
	if (this.evaluationContext.localVariableNames != null) {
261
261
(-)org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter.java (-2 / +2 lines)
Lines 195-201 public class SourceTypeConverter impleme Link Here
195
		char[][] argumentTypeNames = sourceMethod.getArgumentTypeNames();
195
		char[][] argumentTypeNames = sourceMethod.getArgumentTypeNames();
196
		char[][] argumentNames = sourceMethod.getArgumentNames();
196
		char[][] argumentNames = sourceMethod.getArgumentNames();
197
		int argumentCount = argumentTypeNames == null ? 0 : argumentTypeNames.length;
197
		int argumentCount = argumentTypeNames == null ? 0 : argumentTypeNames.length;
198
		long position = (long) start << 32 + end;
198
		long position = ((long) start << 32) + end;
199
		method.arguments = new Argument[argumentCount];
199
		method.arguments = new Argument[argumentCount];
200
		for (int i = 0; i < argumentCount; i++) {
200
		for (int i = 0; i < argumentCount; i++) {
201
			method.arguments[i] =
201
			method.arguments[i] =
Lines 328-334 public class SourceTypeConverter impleme Link Here
328
	
328
	
329
		char[][] qImportName = CharOperation.splitOn('.', importName);
329
		char[][] qImportName = CharOperation.splitOn('.', importName);
330
		long[] positions = new long[qImportName.length];
330
		long[] positions = new long[qImportName.length];
331
		long position = (long) start << 32 + end;
331
		long position = ((long) start << 32) + end;
332
		for (int i = 0; i < qImportName.length; i++) {
332
		for (int i = 0; i < qImportName.length; i++) {
333
			positions[i] = position; // dummy positions
333
			positions[i] = position; // dummy positions
334
		}
334
		}
(-)org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ElementInfoConverter.java (-2 / +2 lines)
Lines 201-207 public class ElementInfoConverter implem Link Here
201
		char[][] argumentTypeNames = sourceMethod.getArgumentTypeNames();
201
		char[][] argumentTypeNames = sourceMethod.getArgumentTypeNames();
202
		char[][] argumentNames = sourceMethod.getArgumentNames();
202
		char[][] argumentNames = sourceMethod.getArgumentNames();
203
		int argumentCount = argumentTypeNames == null ? 0 : argumentTypeNames.length;
203
		int argumentCount = argumentTypeNames == null ? 0 : argumentTypeNames.length;
204
		long position = (long) start << 32 + end;
204
		long position = ((long) start << 32) + end;
205
		method.arguments = new Argument[argumentCount];
205
		method.arguments = new Argument[argumentCount];
206
		for (int i = 0; i < argumentCount; i++) {
206
		for (int i = 0; i < argumentCount; i++) {
207
			method.arguments[i] =
207
			method.arguments[i] =
Lines 419-425 public class ElementInfoConverter implem Link Here
419
	
419
	
420
		char[][] qImportName = CharOperation.splitOn('.', importName);
420
		char[][] qImportName = CharOperation.splitOn('.', importName);
421
		long[] positions = new long[qImportName.length];
421
		long[] positions = new long[qImportName.length];
422
		long position = (long) start << 32 + end;
422
		long position = ((long) start << 32) + end;
423
		for (int i = 0; i < qImportName.length; i++) {
423
		for (int i = 0; i < qImportName.length; i++) {
424
			positions[i] = position; // dummy positions
424
			positions[i] = position; // dummy positions
425
		}
425
		}

Return to bug 75090