fix backwards compatibility check
This commit is contained in:
parent
f507066ea6
commit
707bc25a88
1 changed files with 8 additions and 3 deletions
|
|
@ -67,7 +67,12 @@ find_removed_methods() {
|
||||||
then
|
then
|
||||||
echo "New minor release is being performed. Ignoring changes in classes marked with @KinesisClientInternalApi annotation."
|
echo "New minor release is being performed. Ignoring changes in classes marked with @KinesisClientInternalApi annotation."
|
||||||
fi
|
fi
|
||||||
local latest_classes=$(jar tf $LATEST_JAR | grep .class | tr / . | sed 's/\.class$//')
|
local latest_classes=$(
|
||||||
|
jar tf $LATEST_JAR |
|
||||||
|
grep .class |
|
||||||
|
tr / . | sed 's/\.class$//' |
|
||||||
|
# skip generated proto classes since these have a lot of inherited methods that are not outputted by javap.
|
||||||
|
grep -v 'software\.amazon\.kinesis\.retrieval\.kpl\.Messages')
|
||||||
for class in $latest_classes
|
for class in $latest_classes
|
||||||
do
|
do
|
||||||
if (is_kinesis_client_internal_api "$class" && is_new_minor_release) || is_non_public_class "$class"
|
if (is_kinesis_client_internal_api "$class" && is_new_minor_release) || is_non_public_class "$class"
|
||||||
|
|
@ -83,7 +88,7 @@ find_removed_methods() {
|
||||||
local removed_methods=$(diff <(echo "$LATEST_METHODS") <(echo "$CURRENT_METHODS") | grep '^<')
|
local removed_methods=$(diff <(echo "$LATEST_METHODS") <(echo "$CURRENT_METHODS") | grep '^<')
|
||||||
|
|
||||||
# ignore synthetic access methods - these are not available to users and will not break backwards compatibility
|
# ignore synthetic access methods - these are not available to users and will not break backwards compatibility
|
||||||
removed_methods=$(echo "$removed_methods" | grep -v "access\$[0-9]00")
|
removed_methods=$(echo "$removed_methods" | grep -v "access\$[0-9]+")
|
||||||
|
|
||||||
if [[ "$removed_methods" != "" ]]
|
if [[ "$removed_methods" != "" ]]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue