Skip to content

Commit fcb43e2

Browse files
Update documentation on import public limitations.
PiperOrigin-RevId: 878981321
1 parent c93c40b commit fcb43e2

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

content/programming-guides/editions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,7 @@ a single change, you can put a placeholder `.proto` file in the old location to
887887
forward all the imports to the new location using the `import public` notion.
888888

889889
**Note that the public import functionality is not available in Java, Kotlin,
890-
TypeScript, JavaScript, GCL, as well as C++ targets that use protobuf static
891-
reflection.**
890+
TypeScript, JavaScript, or GCL.**
892891

893892
`import public` dependencies can be transitively relied upon by any code
894893
importing the proto containing the `import public` statement. For example:

content/programming-guides/proto2.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,7 @@ a single change, you can put a placeholder `.proto` file in the old location to
921921
forward all the imports to the new location using the `import public` notion.
922922

923923
**Note that the public import functionality is not available in Java, Kotlin,
924-
TypeScript, JavaScript, GCL, as well as C++ targets that use protobuf static
925-
reflection.**
924+
TypeScript, JavaScript or GCL.**
926925

927926
`import public` dependencies can be transitively relied upon by any code
928927
importing the proto containing the `import public` statement. For example:

content/programming-guides/proto3.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,7 @@ these cases, generated names remain stable, avoiding the need to update
943943
references in your code. While technically functional when moving a subset of a
944944
.proto file without `java_multiple_files = true`, doing so requires simultaneous
945945
updates to many references, thus might not significantly ease migration. The
946-
functionality is not available in Kotlin, TypeScript, JavaScript, GCL, or with
947-
C++ targets that use protobuf static reflection.
946+
functionality is not available in Kotlin, TypeScript, JavaScript, or GCL.
948947

949948
`import public` dependencies can be transitively relied upon by any code
950949
importing the proto containing the `import public` statement. For example:

0 commit comments

Comments
 (0)