Comments (4)
Note that when Manuel wrote this ticket he didn't know about (https://revapi.org/revapi-site/main/faq.html#_how_to_deal_with_external_class_exposed_in_api) and that we're already excluding this check for XWiki classes (see https://github.com/xwiki/xwiki-commons/blame/master/xwiki-commons-tools/xwiki-commons-tool-verification-resources/src/main/resources/revapi.json#L81-L93).
Now the bug or problem seems to be that we're still getting these errors reported even though we're ignoring them.
@metlos do you see anything wrong at https://github.com/xwiki/xwiki-commons/blame/master/xwiki-commons-tools/xwiki-commons-tool-verification-resources/src/main/resources/revapi.json#L81-L93 ?
I noticed that in your example at https://revapi.org/revapi-site/main/faq.html#_how_to_deal_with_external_class_exposed_in_api you don't escape the .
s inside the <code>
element, whereas we do. Isn't the regex also for <code>
?
Thx!
from revapi.
I think your use of escaped dots is ok.
But notice that the configuration uses the package regex: com\\.xpn\\.xwiki\\..*
, whereas the package of class com.xpn.xwiki.XWikiException
for example is com.xpn.xwiki
. The regex only captures subpackages, not the com.xpn.xwiki
itself. I think this should work if you changed your package regex to com\\.xpn\\.xwiki(\\..*)?
...
from revapi.
Let me close this issue for now but please open a new one if you find any trouble with this.
from revapi.
Thanks a lot @metlos. I've now updated our code to use the new regex (thanks for noticing!): xwiki/xwiki-commons@43f427e
We'll see if it works.
from revapi.
Related Issues (20)
- Usage of @Deprecated HOT 6
- java.class.externalClassExposedInAPI thrown for an API already exposed in another module HOT 1
- Version format check is too restrictive HOT 4
- Be able to substitute artifacts based on some pattern to handle the XWiki legacy strategy HOT 5
- Making a public constructor protected in an abstract class should not be reported as breakage HOT 2
- Maven site for revapi fails miserably
- Revapi produces inconsistent results
- Enforcing criticality HOT 2
- Running into an endless Loop at org.jvnet.hudson HOT 3
- Infinite loop in differences HOT 2
- externalClassExposedInAPI in dependencies ? HOT 15
- "Invalid element" when upgrading to revapi-java 0.27.0 HOT 2
- Potential NullPointerException in ClasspathScanner$Scanner HOT 5
- Add Concept for String or Pattern Match
- Ability to Enforce TreeFilter Ordering HOT 1
- revapi dependency org.apache.logging.log4j:log4j-core has multiple CVE against it
- how could a enum class be excluded from java.field.enumConstantOrderChanged? HOT 4
- Fix warnings reported by Maven when using the Revapi plugin
- Class visibility reduction from `public` to `package` is reported as `java.class.removed` in latest version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revapi.