Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method exclusion doesn't work #157

Closed
rmetzger opened this issue Jan 25, 2017 · 5 comments
Closed

Method exclusion doesn't work #157

rmetzger opened this issue Jan 25, 2017 · 5 comments

Comments

@rmetzger
Copy link
Contributor

In our Japicmp config, we have the following exclude:

	<configuration>
					<parameter>
						<excludes combine.children="append">
							<!-- Exclude generated classes from api compatibility checks -->
							<exclude>*\$\$anon\$*</exclude>
							<exclude>org.apache.flink.streaming.api.scala.WindowedStream#aggregate(org.apache.flink.streaming.api.functions.aggregation.AggregationFunction$AggregationType,int)</exclude>
							<exclude>org.apache.flink.streaming.api.scala.AllWindowedStream#aggregate(org.apache.flink.streaming.api.functions.aggregation.AggregationFunction$AggregationType,int)</exclude>
						</excludes>
					</parameter>
				</configuration>

As you can see from the report, the exclude is understood by the plugin, but still, the method (with the exact same signature) is marked as missing.
http://people.apache.org/~rmetzger/japicmp.html

This is the branch were the error is happening: https://github.com/rmetzger/flink/tree/agg_follow_ups

@rmetzger rmetzger changed the title Method exclude doesn't work Method exclusion doesn't work Jan 25, 2017
siom79 added a commit that referenced this issue Jan 25, 2017
@siom79
Copy link
Owner

siom79 commented Jan 25, 2017

Thanks for reporting. I used regular expressions for exclude matching but did not escape the dollar sign in inner classes.

Resolved on master branch. Will be released with 0.9.4.

@siom79 siom79 closed this as completed Jan 25, 2017
@rmetzger
Copy link
Contributor Author

Thanks a lot for looking into the issue so quickly!

Looking forward to the 0.9.4 release.

@siom79
Copy link
Owner

siom79 commented Jan 25, 2017

Meanwhile you can escape the dollar sign in your exclude: '$'.

@StephanEwen
Copy link

Thanks for the fast response!

@siom79
Copy link
Owner

siom79 commented Feb 16, 2017

Released with 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants