Я иду по следующему гиду:
https://docs.opendaylight.org/en/stable-oxygen/developer-guide/developing-apps-on-the-opendaylight-controller.html#
есть ошибки при компиляции:
[ERROR] ...Odl-testProvider.java:[14,17] '{' expected
[ERROR] ...Odl-testProvider.java:[21,15] <identifier> expected
[ERROR] ...Odl-testProvider.java:[21,16] invalid method declaration; return type required
Odl-testProvider.java:
/*
* Copyright © 2017 Copyright(c) Yoyodyne, Inc. 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 http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.solaroi.impl;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Odl-testProvider //line 14
{
private static final Logger LOG = LoggerFactory.getLogger(Odl-testProvider.class);
private final DataBroker dataBroker;
public Odl-testProvider(final DataBroker dataBroker) //line 21
{
this.dataBroker = dataBroker;
}
/**
* Method called when the blueprint container is created.
*/
public void init()
{
LOG.info("Odl-testProvider Session Initiated");
}
/**
* Method called when the blueprint container is destroyed.
*/
public void close()
{
LOG.info("Odl-testProvider Closed");
}
}
Информация о компиляторе:
цель: плагин-компилятор maven: 3.7.0: компилировать (компиляция по умолчанию)
компилятор 'javac', source = 1.8, target = 1.8