-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Method too large: com/gargoylesoftware/css/parser/javacc/CSS3ParserTokenManager #4
Comments
i have the same problem
|
The code is generated by javacc and i see no real chance to make the code smaller. |
Ok, thank you. I try to exclude it. |
@sepe81 did an exclusion work? if so, can you please show how you excluded? |
@alan-czajkowski The following exclusion worked:
|
This problem has been resolved in JavaCC 21. See: https://javacc.com/2021/03/30/code-too-large-problem-fixed/ |
@sepe81 how would you achieve the same using gradle? |
@jonathansp this might help: but I strongly recommend moving away from Gradle to Maven |
If you are using https://www.eclemma.org/jacoco/ for code analysis and the project under test uses
htmlunit-cssparser
then you get the following output during analysis.If I get it right,
CSS3ParserTokenManager
is part of generated code (https://github.com/HtmlUnit/htmlunit-cssparser/blob/master/pom.xml#L65).Would it be possible to restructure some part of the code generation to decrease the method size under 64K?
You can find a similar issue at https://stackoverflow.com/questions/37666076/jacoco-method-code-too-large-when-using-ver-0-7-6-and-0-7-5
The text was updated successfully, but these errors were encountered: