You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use JavadocParanamer with the Java 8 Javadocs, since I don't want to try to specially compile a custom version of Java SE just to get the parameter names.
However, when I do this, an exception is thrown, as the Javadoc HTML format appears to have changed since Java 7:
Exception in thread "main" com.thoughtworks.paranamer.ParameterNamesNotFoundException: public static java.time.LocalDate java.time.LocalDate.of(int,int,int), >\Qof\E</A></(?:B|strong)>\(,?\s*(?:<A[^>]+>)?[\w.]*\Qint\E(?:</A>)?(?:<[^&]+>)? ([^),\s]+),?\s*(?:<A[^>]+>)?[\w.]*\Qint\E(?:</A>)?(?:<[^&]+>)? ([^),\s]+),?\s*(?:<A[^>]+>)?[\w.]*\Qint\E(?:</A>)?(?:<[^&]+>)? ([^),\s]+)\)</CODE>
at com.thoughtworks.paranamer.JavadocParanamer.getParameterNames(JavadocParanamer.java:167)
at com.thoughtworks.paranamer.JavadocParanamer.getMethodParameterNames(JavadocParanamer.java:121)
at com.thoughtworks.paranamer.JavadocParanamer.lookupParameterNames(JavadocParanamer.java:102)
at com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:90)
at com.thoughtworks.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:83)
at so.reflect.GenerateMethodSignature.main(GenerateMethodSignature.java:24)
I realize this library is mostly targeted for pre-Java 8, but it seems like this is something Paranamer should support. It looks like it's probably just a matter of fixing a regex to support the new HTML format.
I'm attempting to use
JavadocParanamer
with the Java 8 Javadocs, since I don't want to try to specially compile a custom version of Java SE just to get the parameter names.However, when I do this, an exception is thrown, as the Javadoc HTML format appears to have changed since Java 7:
I realize this library is mostly targeted for pre-Java 8, but it seems like this is something Paranamer should support. It looks like it's probably just a matter of fixing a regex to support the new HTML format.
paranamer/paranamer/src/java/com/thoughtworks/paranamer/JavadocParanamer.java
Lines 147 to 165 in 00fb334
The text was updated successfully, but these errors were encountered: