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

(-)model/org/eclipse/jdt/internal/core/JavaProject.java (-1 / +1 lines)
Lines 1732-1738 Link Here
1732
		if (resource == null) {
1732
		if (resource == null) {
1733
			// resource doesn't exist in workspace
1733
			// resource doesn't exist in workspace
1734
			if (path.getFileExtension() != null) {
1734
			if (path.getFileExtension() != null) {
1735
				if (!workspaceRoot.getProject(path.lastSegment()).exists()) {
1735
				if (!workspaceRoot.getProject(path.segment(0)).exists()) {
1736
					// assume it is an external ZIP archive
1736
					// assume it is an external ZIP archive
1737
					return getPackageFragmentRoot0(path);
1737
					return getPackageFragmentRoot0(path);
1738
				} else {
1738
				} else {
(-)model/org/eclipse/jdt/internal/core/Member.java (-1 / +1 lines)
Lines 220-226 Link Here
220
			int flags = Integer.parseInt(memento.nextToken());
220
			int flags = Integer.parseInt(memento.nextToken());
221
			memento.nextToken(); // JEM_COUNT
221
			memento.nextToken(); // JEM_COUNT
222
			if (!memento.hasMoreTokens()) return this;
222
			if (!memento.hasMoreTokens()) return this;
223
			boolean isParameter = Boolean.getBoolean(memento.nextToken());
223
			boolean isParameter = Boolean.valueOf(memento.nextToken()).booleanValue();
224
			return new LocalVariable(this, varName, declarationStart, declarationEnd, nameStart, nameEnd, typeSignature, null, flags, isParameter);
224
			return new LocalVariable(this, varName, declarationStart, declarationEnd, nameStart, nameEnd, typeSignature, null, flags, isParameter);
225
		case JEM_TYPE_PARAMETER:
225
		case JEM_TYPE_PARAMETER:
226
			if (!memento.hasMoreTokens()) return this;
226
			if (!memento.hasMoreTokens()) return this;
(-)src/org/eclipse/jdt/core/tests/model/MementoTests.java (-1 / +6 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 63-68 Link Here
63
		"Unexpected restored element",
63
		"Unexpected restored element",
64
		element,
64
		element,
65
		restored);
65
		restored);
66
	String restoredHandleIdentifier = restored.getHandleIdentifier();
67
	assertEquals(
68
		"Unexpected memento for restored element " + restored,
69
		expected,
70
		restoredHandleIdentifier);
66
}
71
}
67
protected String getEscapedExternalJCLPath() {
72
protected String getEscapedExternalJCLPath() {
68
	return getEscapedPath(getExternalJCLPath().toString());
73
	return getEscapedPath(getExternalJCLPath().toString());

Return to bug 330845