11---
22#
3- # Copyright (c) 2019, 2023 , Oracle and/or its affiliates. All rights reserved.
3+ # Copyright (c) 2019, 2024 , Oracle and/or its affiliates. All rights reserved.
44# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55#
66# This code is free software; you can redistribute it and/or modify it
2222# questions.
2323#
2424
25- title : ' APIDIFF(1) 0.1 | CodeTools'
26- date : 2021
25+ title : ' APIDIFF(1) 1.0 | CodeTools'
26+ date : 2024
2727lang : en
2828---
2929
30- <b style =" color :red " >WORK IN PROGRESS</b >
31-
3230## Name
3331
3432apidiff - compare different versions of an API
3533
3634## Synopsis
3735
38-
3936` apidiff ` \[ * options* \]
4037
4138* options*
@@ -44,7 +41,7 @@ apidiff - compare different versions of an API
4441## Description
4542
4643The ` apidiff ` command reads source, class and HTML files that provide different versions
47- of an API, compares corresponding files in the different versions and writes out
44+ of an API, compares corresponding declarations in the different versions and writes out
4845an HTML report. The comparison includes:
4946
5047* structural changes, such as whether an element was added, changed or removed,
@@ -339,7 +336,7 @@ of the API to be compared.
339336If the API does not provide or is not part of a module, use the ` --source-path `
340337and ` --class-path ` options.
341338If the API provides or is part of one or more modules, use the
342- ` --source-path ` , ` --module-source-path ` , ` --module-path ` and related options.
339+ ` --source-path ` , ` --module-source-path ` , ` --module-path ` , and related options.
343340
344341If you want to compare the content of documentation comments, you must provide
345342source files for all the elements to be compared; any dependencies of those source
@@ -348,7 +345,9 @@ files can be specified as either source or class files.
348345If you want to compare the API descriptions, you must provide the locations
349346of the directories generated by the ` javadoc ` tool for each of the instances
350347of the API being compared. This is often a directory whose path ends in ` api ` ,
351- although that is not a requirement.
348+ although that is not a requirement. To eliminate any false positive differences
349+ being introduced by changes to the ` javadoc ` tool itself, the same or equivalent
350+ versions of ` javadoc ` should be used for each API to be compared.
352351
353352### Configuring instances of JDK to be compared
354353
0 commit comments