Use IOException instead of IOExceptionWithCause#369
Use IOException instead of IOExceptionWithCause#369PeterAlfredLee merged 1 commit intoapache:mainfrom
Conversation
kkrugler
left a comment
There was a problem hiding this comment.
I don't see the IOExceptionWithCause class being deprecated - I assume we'd keep it around until maybe 2.0, as removing it would be a breaking change.
|
@kkrugler Thank you for reviewing this.
Agree, This will break binary compatibility. And we should only break BC in major version. |
|
If this change is only going into main, then my question is whether you removed the |
|
I'm also agree to remove the
By the way,I think we can remove all these class from Tika which was copying from WDYT ? |
|
As to adding a dependency on |
545ac87 to
6b48803
Compare
Yes, it is.
Maybe you are talking about TIKA-1706 and TIKA-1710? Seems that it's agreed to have |
|
My memory was that we had agreed to add I, frankly, want to keep some subclass of IOException around whether that's IOExceptionWithCause or something else. My reasoning is that we have to wrap SAXExceptions and TikaExceptions in IOExceptions because of the exception signatures in some of our overridden classes. It is useful to be able differentiate this hack from an actual IOException. Is there a better way to achieve this goal? |
I see. I'm almost finished with the code and tests. Maybe I can push a PR to
Seems we do not have any other ways to do that. Maybe you have any better ideas? |
|
Hi @tballison - you said:
Couldn't we have a helper class that checks for |
6b48803 to
a7ba643
Compare
|
Hi @tballison - hoping you can weigh in on whether we really need to keep around |
|
Sorry for my delay. I'm now +1 to this. |
af57d43 to
f827ee6
Compare
f827ee6 to
564ad40
Compare
564ad40 to
58dbca1
Compare
|
Hey folks. I'm thinking about merging this before the release of Tika 2.0. WDYT? |
|
+1 |
|
@PeterAlfredLee - I thought, based on @tballison input above, that you would delete the |
Yes, this is already done in #370. |
58dbca1 to
2321906
Compare
We used to use
IOExceptionWithCausebecauseIOExceptionwith theThrowableconstructors is missing beforeJDK 6.I think we should use
IOExceptionafterJDK 6.