Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelfAttribute broken in CQEngine 1.2.0 #21

Open
GoogleCodeExporter opened this issue May 13, 2015 · 2 comments
Open

SelfAttribute broken in CQEngine 1.2.0 #21

GoogleCodeExporter opened this issue May 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

A regressions was introduced when reflection support was being refactored, 
which now prevents SelfAttributes from being declared.

SelfAttribute<String> attribute = new SelfAttribute<String>();

Produces:

java.lang.IllegalStateException: Attribute '<Unnamed attribute, class 
com.googlecode.cqengine.attribute.SelfAttribute>' is declared with invalid type 
parameters (class com.googlecode.cqengine.attribute.SelfAttribute)

In the meantime a workaround is to declare as a SimpleAttribute instead:

    static final Attribute<String, String> SELF = new SimpleAttribute<String, String>() {
        public String getValue(String object) { return object; }
    };

Original issue reported on code.google.com by ni...@npgall.com on 10 Sep 2013 at 9:57

@GoogleCodeExporter
Copy link
Author

Fixed in trunk. This will be included in the next release.

In the meantime, the workaround above can be used with the official 1.2.0 
release, or svn checkout the source and mvn install CQEngine 1.2.1-SNAPSHOT 
locally.

I will leave this ticket open until included in the next release.

Original comment by ni...@npgall.com on 10 Sep 2013 at 12:59

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Released in CQEngine 1.2.1.

Original comment by ni...@npgall.com on 10 Sep 2013 at 9:22

  • Changed state: Fixed

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

No branches or pull requests

1 participant