-
Notifications
You must be signed in to change notification settings - Fork 757
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
Replace deprecated routines in guava #50
Conversation
Thanks for the contribution! Two things though:
|
Whoops, sorry about that. Fixed. |
actually a couple more issues emerged. I found a few more deprecated calls. Give me a couple of mins and I'll have it ready |
ok i can execute a crawl with this version |
I checked out your fork, merged from origin/master, ran "mvn install" and got compile errors... [ERROR] /home/nlevitt/workspace/heritrix3/modules/src/main/java/org/archive/modules/forms/FormLoginProcessor.java:[123,26] error: <K,V>makeComputingMap(Function<? super K,? extends V>) is not public in MapMaker; cannot be accessed from outside package |
Hi, one of the included jars (containing org.archive.util.TextUtils) is making a call to (the deprecated) MapMaker and this causes a bunch of tests to fail and the crawler to not be instantiated. I am guessing that the culprit is sitting in the archive-commons repo since the TextUtils source isn't included in heritrix. |
Looks like you're right. webarchive-commons pulls in guava 14.0.1 which is about a year old. (Much newer than r08 that heritrix depends on.) So probably the thing to do is take the explicit guava dependency out of heritrix pom.xml and let it inherit from webarchive-commons. A lower priority would be updating the webarchive-commons dependency to 16.0.1. Either way some heritrix code will have to change, and possibly some webarchive-commons code as well. Are you up for that? Btw heritrix uses this fork https://github.com/internetarchive/webarchive-commons so any pull request should target that. We'll get the changes merged upstream later. |
I can take a look at it. |
Also, all the tests don't pass on the master branch. I cloned internetarchive/heritrix and 2 tests failed: https://gist.github.com/shriphani/9554002 I can't seem to be able to create an issue on github or on jira so I pasted it here. |
Ok, try now: This is the output of mvn install on my machine. The one test that fails is testReadConsistencyUnderLoad(org.archive.util.ObjectIdentityBdbManualCacheTest) but from my experience. Do you know if this is related to the guava bump ? |
Ok, I can get heritrix to build and I have been able to crawl as well. Here's the output of mvn install and mvn -DskipTests install on the current build: |
Thanks! I got compile errors which I fixed with this small change:
Could you incorporate that into your pull request? And finally could you merge the latest from origin/master and sanity check once more? |
Done. I can build and crawl. Here's the output (with and without tests): https://gist.github.com/shriphani/9592177 |
Alright, I've pulled, rebased and all that. Let me know if something else is off. |
Replace deprecated routines in guava
Hmm your gist says tests failed... But the tests pass for me. I'll merge now. |
Woot! Thanks! |
No description provided.