[jbosstools-issues] [JBoss JIRA] (JBIDE-26139) openshift does not compile anymore
Andre Dietisheim (JIRA)
issues at jboss.org
Wed Jun 20 11:10:00 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-26139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594535#comment-13594535 ]
Andre Dietisheim edited comment on JBIDE-26139 at 6/20/18 11:09 AM:
--------------------------------------------------------------------
Latest JGit Repository marked #getRef as deprecated and tells users to use #findRef instead
{code}
/**
* Get a ref by name.
*
* @param name
* the name of the ref to lookup. May be a short-hand form, e.g.
* "master" which is is automatically expanded to
* "refs/heads/master" if "refs/heads/master" already exists.
* @return the Ref with the given name, or {@code null} if it does not exist
* @throws java.io.IOException
* @deprecated Use {@link #exactRef(String)} or {@link #findRef(String)}
* instead.
*/
@Deprecated
@Nullable
public Ref getRef(final String name) throws IOException {
return findRef(name);
}
{code}
was (Author: adietish):
TestRepository marked #getRef as deprecated and tells users to use #extractRef instead
{code}
/**
* Get a ref by name.
*
* @param name
* the name of the ref to lookup. May be a short-hand form, e.g.
* "master" which is is automatically expanded to
* "refs/heads/master" if "refs/heads/master" already exists.
* @return the Ref with the given name, or {@code null} if it does not exist
* @throws java.io.IOException
* @deprecated Use {@link #exactRef(String)} or {@link #findRef(String)}
* instead.
*/
@Deprecated
@Nullable
public Ref getRef(final String name) throws IOException {
return findRef(name);
}
{code}
> openshift does not compile anymore
> ----------------------------------
>
> Key: JBIDE-26139
> URL: https://issues.jboss.org/browse/JBIDE-26139
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.6.0.AM3
> Reporter: Jeff MAURY
> Assignee: Andre Dietisheim
> Fix For: 4.6.0.Final
>
>
> Since a change in the target platform, jbosstools openshift does not compile anymore. an unknown method is used in org.jboss.tools.openshift.egit.test
> {code}
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.1.0:compile (default-compile) on project org.jboss.tools.openshift.egit.test: Compilation failure: Compilation failure:
> [ERROR] /mnt/hudson_workspace/workspace/jbosstools-openshift-Pull-Request/tests/org.jboss.tools.openshift.egit.test/src/org/jboss/tools/openshift/egit/internal/test/util/TestRepository.java:[477]
> [ERROR] Ref ref = repository.getRef(Constants.HEAD);
> [ERROR] ^^^^^^
> [ERROR] The method getRef(String) is undefined for the type Repository
> [ERROR] 1 problem (1 error)
> [ERROR] -> [Help 1]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list