Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Expression and not #6

Open
FAMILIAR-project opened this issue Mar 9, 2017 · 0 comments
Open

Expression and not #6

FAMILIAR-project opened this issue Mar 9, 2017 · 0 comments

Comments

@FAMILIAR-project
Copy link
Owner

FAMILIAR-project commented Mar 9, 2017

There is an assert in Expression class...
The "not" expression seems impossible to create without a third null parameter, but it violates the assertion.

Maybe a solution is to cast the null with Expression

It is a FAMILIAR bug

public Expression(T feature) {
        assert feature != null;

        this._type = ExpressionType.FEATURE;
        this._feature = feature;
    }
private Expression<String> mkFeatureNodeNot(FeatureNode<String> v) {
        return new Expression(ExpressionType.NOT, (String)v.getFeature(), (Object)null);
    }
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

1 participant