[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] PTP 8.1.1 and Photran 9.0.1 released with Eclipse Luna SR2 (4.4.2)
|
On 03/09/2015 04:53 PM, Orion Poplawski wrote:
On 02/27/2015 08:45 AM, Beth Tibbitts wrote:
PTP 8.1.1 (and Photran 9.0.1) are released today, with the big Eclipse Luna
Service Release 2 (SR2) simultaneous release. http://eclipse.org
I'm trying to build the Fedora PTP package from
e6781abcbe35d3016f9ec8a943dc8a880780021a but I'm getting the following compile
error:
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.22.0:compile (default-compile) on
project org.eclipse.ptp.rdt.core: Compilation failure: Compilation failure:
[ERROR]
/builddir/build/BUILD/org.eclipse.ptp-e6781abcbe35d3016f9ec8a943dc8a880780021a/rdt/org.eclipse.ptp.rdt.core/src/org/eclipse/ptp/internal/rdt/core/model/TranslationUnit.java:[62]
[ERROR] public class TranslationUnit extends Parent implements ITranslationUnit {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] The type TranslationUnit must implement the inherited abstract method
ITranslationUnit.getFile()
[ERROR] 1 problem (1 error)
This is with CDT 8.6.0.
Any ideas?
So, apparently this interface was added in 8.6.0:
commit b74feb2c3d8968629185d3ee475657f4e395d381
Author: Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx>
Date: Tue Dec 23 10:30:06 2014 -0800
Bug 456099 - Renaming a class should also rename related files
diff --git
a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/ITranslationUnit.java
b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/ITranslationUnit.java
index e93f231..edc3efe 100644
---
a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/ITranslationUnit.java
+++
b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/ITranslationUnit.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 QNX Software Systems and others.
+ * Copyright (c) 2000, 2014 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* QNX Software Systems - Initial API and implementation
* Markus Schorn (Wind River Systems)
+ * Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.core.model;
@@ -21,6 +22,7 @@ import org.eclipse.cdt.core.index.IIndex;
import org.eclipse.cdt.core.parser.FileContent;
import org.eclipse.cdt.core.parser.IScannerInfo;
import org.eclipse.cdt.internal.core.model.IBufferFactory;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -420,6 +422,15 @@ public interface ITranslationUnit extends
ICElement, IParent, IOpenable, ISource
public IPath getLocation();
/**
+ * Returns the corresponding file for this translation unit, or
{@code null} if this translation
+ * unit does not have a corresponding file.
+ *
+ * @return the corresponding file, or {@code null} if none
+ * @since 5.9
+ */
+ IFile getFile();
So I don't understand why you don't appear to get a compile error when
building PTP. Are you building against 8.6.0? Are you using java 1.8
or 1.7?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxxxxxxx
Boulder, CO 80301 http://www.cora.nwra.com