google-cloud-java icon indicating copy to clipboard operation
google-cloud-java copied to clipboard

Spanner: javadoc error

Open neozwu opened this issue 8 years ago • 1 comments

Generating spanner javadoc throws following error. It seems a code block with @Override is not correctly parsed.

[ERROR] .../github/google-cloud-java/google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClient.java:241: error: unterminated inline tag [ERROR] *

 {@code
[ERROR]            ^
[ERROR].../github/google-cloud-java/google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClient.java:247: error: unknown tag: Override
[ERROR]    *       @Override
[ERROR]            ^

neozwu avatar Apr 13 '18 23:04 neozwu

Closed in this commit https://github.com/GoogleCloudPlatform/google-cloud-java/commit/0e910f51d108377773bccbc7c8a9d3247aff55f2

This is really a bug in the tool that adds the snippet. It uses {@code block for the snippet but that block cannot contain @. See this https://bugs.openjdk.java.net/browse/JDK-8130754

vkedia avatar Apr 14 '18 01:04 vkedia