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

Fix net.bytebuddy.implementation.attribute.AnnotationAppender.ValueFilter.SkipDefaults#sRelevant(...) #75

Merged
merged 1 commit into from
Oct 19, 2015

Conversation

rgoldberg
Copy link
Contributor

SkipDefaults#isRelevant(...) should include non-default values, thus it should return true iff the value is not a default.

The existing logic was backwards.

@raphw raphw added the bug label Oct 19, 2015
@raphw raphw added this to the 0.7 milestone Oct 19, 2015
@raphw raphw self-assigned this Oct 19, 2015
@raphw
Copy link
Owner

raphw commented Oct 19, 2015

Good catch, thanks. Could you add a unit test that verifies this logic? Also, please remove the white space that checkstyle complains about and ammend the commits. (Simply push force to your branch and your pull request is automatically updated.

@rgoldberg
Copy link
Contributor Author

I don't know why the build is failing. It looks like the org.apache.maven.plugins:maven-checkstyle-plugin:2.15 plugin is causing the failure, but the output isn't very helpful.

@raphw
Copy link
Owner

raphw commented Oct 19, 2015

It says:

/home/travis/build/raphw/byte-buddy/byte-buddy-dep/src/main/java/net/bytebuddy/implementation/attribute/AnnotationAppender.java:346:49: '!' is followed by whitespace.

@rgoldberg
Copy link
Contributor Author

Just saw your comments. I'll redo my whitespace. checkstyle really should output that as an error, rather than as an info. It was buried among tons of other info logs...

@raphw
Copy link
Owner

raphw commented Oct 19, 2015

Thank you. Could you please squash the commits and force push this to your branch? This would allow me to easier merge this to the current development branch. (http://stackoverflow.com/questions/5189560/squash-my-last-x-commits-together-using-git)

@rgoldberg
Copy link
Contributor Author

Squashed.

When do you think 0.7 will be officially released (non RC)?

raphw pushed a commit that referenced this pull request Oct 19, 2015
Fix net.bytebuddy.implementation.attribute.AnnotationAppender.ValueFilter.SkipDefaults#sRelevant(...)
@raphw raphw merged commit ea83f5c into raphw:master Oct 19, 2015
@raphw
Copy link
Owner

raphw commented Oct 19, 2015

Thanks.

Difficult to say. There is still quite a lot to do, unfortunately. I have to rework the internal representation of the type system what will require a refactorization of a large amount of code. Also, I am currently not having too much free time to work on it. I hope to releasing it early next year. Generics has been an insane amount of work, but I want to do it properly in order to allow for the integration of value types and primitive generic types etc. in the future which will be a more pressing use-case.

@rgoldberg rgoldberg deleted the FixSkipDefaultsIsRelevant branch October 19, 2015 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants