jimshowalter

Results 73 comments of jimshowalter

Was able to work around this by creating a repo that only has the bouncy-castle dependencies, shadowing and publishing that, and use it in the original repo.

Forgot to mention that minimize() has no effect.

[byte-buddy-ctor.zip](https://github.com/raphw/byte-buddy/files/15279238/byte-buddy-ctor.zip)

How do I specify the field that it sets in setsField, when that field is being dynamically added in the same builder chain?

This works: ``` .defineConstructor(Visibility.PUBLIC) .intercept( MethodCall.invoke(getConstructor(entityClass)) .onSuper() .andThen( FieldAccessor.ofField(MODIFIED_FIELDS_TRACKER_FIELD_NAME) .setsValue(new HashSet()))) ```

[byte-buddy-poc.zip](https://github.com/raphw/byte-buddy/files/15181927/byte-buddy-poc.zip)

It works if the second parameter to the interceptor is changed to @AllArguments Object[] args, but if isSetter() returns true, wouldn't there always only be one argument?

Ah hah. We couldn't find examples of setter interceptors in the documentation, so we had to get examples from secondary sources.

https://www.w3.org/TR/baggage/#key "Leading and trailing whitespaces (OWS) are allowed but MUST be trimmed when converting the header into a data structure." If you trim leading and trailing whitespace on a string...