Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions docs/reference/migration/migrate_7_16.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,44 @@ disk space management if needed.

This change has no impact on users outside of orchestrated environments.
====


[discrete]
[[breaking_716_hlrc_changes]]
==== High Level REST Client changes

[[breaking_716_xcontent_migration]]
.The `XContent` API is renamed and breaks imports when upgrading.
[%collapsible]
====
*Details* +
The `XContent` library exported package is renamed from
`org.elasticsearch.common.xcontent` to `org.elasticsearch.xcontent`. This change
breaks imports when migrating to {es} 7.16.

*Impact* +
If you're maintaining a Java client application that uses the Java High Level
Rest Client (HLRC), update any `import` statements in your Java source code that
match:

[source,java]
----
import org.elasticsearch.common.xcontent.<class>
----

to instead use:

[source,java]
----
import org.elasticsearch.xcontent.<class>
----

This is the minimum required change. You must then recompile your source code to
work with {es} 7.17.

A more permanent solution is to
{java-api-client}/migrate-hlrc.html[migrate from the (HLRC)] entirely.
====
// end::notable-breaking-changes[]

[discrete]
Expand Down