Closed jonasliekens closed 10 years ago
This is an issue with the reflections library being used. You can also see it's been brought up as an issue here:
https://code.google.com/p/reflections/issues/detail?id=169&q=java%208
I'll attempt to remove reliance on the reflections library and also test Java 8 compatibility.
Hey Will,
Is this likely to be fixed soon?
I've just encountered the same issue and using the latest build (0.3.4-SNAPSHOT) has fixed the error described above but the class using lambdas still doesn't get documented. Other endpoints that don't use lambdas still come through fine.
Moving those lambda expressions elsewhere (so outside the scanning paths) does the trick but obviously this isn't ideal.
Stew
There were issues using some libraries that didn't like the new syntax used for lambdas. This has been resolved and swagger4spring-web now supports Java 8, though for best results you must compile using the javac argument -parameters.
Reflections throws an exceptions when trying to scan a class with lambda expressions, causing it to be left out of the documentation.