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

Avoid shading of org.joda.convert package, fixes #3557 #3558

Closed
wants to merge 1 commit into from

Conversation

splatch
Copy link
Contributor

@splatch splatch commented Aug 22, 2013

Another fix for shading issue.

@clintongormley
Copy link

Hi @splatch

Sorry it has a taken a whil to get to this, but is this still an issue?

@splatch
Copy link
Contributor Author

splatch commented Aug 19, 2014

hey @clintongormley, I think it is still a case, since fix for #4660 was a brute force. The issue described in my comment last year was ignored:
#3557 (comment)

I'm not sure if Scala still has the issue with optional annotations and if elasticsearch still needs fix introduced in #4660, because as I said - by JVM spec annotations having runtime retention which classes could not be found during class resolving should be dropped.

Cheers,
Lukasz

@s1monw
Copy link
Contributor

s1monw commented Aug 22, 2014

I am trying to understand the issue here, if we only shade the org.joda.time package what are the implications? I am not a shading expert but afaik we then just keep the org.joda package for classes outside org.joda.time right? this might break bw compatibilty though, is this really such a big issue?

@s1monw s1monw self-assigned this Aug 22, 2014
@splatch
Copy link
Contributor Author

splatch commented Aug 28, 2014

Hey @s1monw,
You are right, sharding org.joda.time itself will be sufficient. Before elasticsearch used outdated maven-shade-plugin which was not relocating constant pool resulting half-shaded artifacts from bytecode point of view. After update of shade-plugin it's safe to have org.joda.time shaded back. All annotation references to org.joda.convert will work properly - just not sure how scala compiler will live with it. Maybe after 2.11/2.12 updates Scala got smarter? ;-)

@s1monw
Copy link
Contributor

s1monw commented Aug 28, 2014

@splatch I dont' have any way to see if this fixes anything - can you confirm your PR fixes the problem?

@clintongormley
Copy link

@splatch could you confirm whether this patch fixes the problem you're experiencing?

@splatch
Copy link
Contributor Author

splatch commented Oct 17, 2014

Yes, this pull request solves my problem. I checked it against 1.3.4 - commit can be cherry-picked.

@clintongormley
Copy link

w00t - thanks

@martijnvg
Copy link
Member

Pushed via: b0a14f0

@martijnvg martijnvg closed this Oct 17, 2014
@splatch
Copy link
Contributor Author

splatch commented Oct 18, 2014

Thx a lot!

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

Successfully merging this pull request may close these issues.

None yet

4 participants