Code change needed to support newest Guava.

110 views
Skip to first unread message

Trevor Marsh

unread,
Jun 27, 2017, 12:01:11 PM6/27/17
to LittleProxy
As of Guava 22, The class HostAndPort no longer has a method named "getHostText" it is merely "getHost".  The getHost method does exist however in 20.0 (which I see is what your pom uses).  When the newest Guava jar is on the classpath, this class: https://github.com/adamfisk/LittleProxy/blob/master/src/main/java/org/littleshoot/proxy/impl/ProxyToServerConnection.java (and possibly more) fail on line 961.

Stephan Schmid

unread,
Jul 1, 2017, 4:04:43 PM7/1/17
to LittleProxy
Thanks Trevor, I experienced also a java.lang.NoSuchMethodError by using Guava 22. 
As a workaround, one could use reflection to check which method to use.
This should be fixed definitely!
Reply all
Reply to author
Forward
0 new messages