Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Default interface methods cause errors #60

Open
MirkoRossini opened this issue Feb 14, 2017 · 2 comments
Open

Default interface methods cause errors #60

MirkoRossini opened this issue Feb 14, 2017 · 2 comments

Comments

@MirkoRossini
Copy link

MirkoRossini commented Feb 14, 2017

Hello,

I get this error:

ERROR:root:Syntax error in ../CompositeCheckFactory.java: Expected ';' at final line 24, character 9

The interface looks like this:

public interface CompositeCheckFactory<T extends Tradeable> {

    default List<Rule<T>> getRulesList(final Config config, final Map<String, Rule<T>> baseRules) {
       ...
}
@Gohla
Copy link

Gohla commented Mar 17, 2017

Same here, would be great to support Java 8, but seems that javalang has not made a release that supports Java 8 yet.

I have tried to get around this problem by excluding files with interfaces with default methods, but I cannot get excludes to work at all (they are not handled by regular expressions, even though the command-line argument documentation says so).

Perhaps a command-line flag that ignores parse errors would be a workaround for now?

@Gohla
Copy link

Gohla commented Mar 17, 2017

Version 0.10.2 of javalang was just released: c2nes/javalang#34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants