javalangClassFormatError: Invalid Constant Pool entry Type 18
after a day of following different traces i found a solution and just wanted to post it here if someone runs into the same trouble.
- the ant version (1.8.2.) i was using was too old to handle CONSTANT_INVOKEDYNAMIC (Invalid Constant Pool entry Type 18) which in my understanding means that ant discovered some java 8 lamda code which it can't handle
- i have already been using lambdas before that certain commit! so why does it complain about it now?
- googleing lead me to a bug in ant 1.8.2 which produced exactly this error. i was sceptic since i didn't downgrade my ant installation on the server and 10 minutes ago the build went fine - with 1.8.2!
so i started solving pragmatically:
downloaded ant 1.9.5, untared it somewhere
renamed the old ant command (/usr/bin/ant => /usr/bin/ant-1.8.2)
linked the new ant to /usr/bin/ant
and then everything worked fine!
after this odyssey, does anybody have an idea why this error didn't appear earlier?