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
{{ message }}
Repository navigation
[scala] CPD terminates with an exception when a small value is set for --minimum-tokens #2153
java.lang.IndexOutOfBoundsException: fromIndex = -1
at java.base/java.util.AbstractList.subListRangeCheck(AbstractList.java:505)
at java.base/java.util.ArrayList.subList(ArrayList.java:1137)
at net.sourceforge.pmd.cpd.SourceCode$CodeLoader.getCodeSlice(SourceCode.java:45)
at net.sourceforge.pmd.cpd.SourceCode.getSlice(SourceCode.java:198)
at net.sourceforge.pmd.cpd.Mark.getSourceCodeSlice(Mark.java:41)
at net.sourceforge.pmd.cpd.Match.getSourceCodeSlice(Match.java:77)
at net.sourceforge.pmd.cpd.XMLRenderer.addCodeSnippet(XMLRenderer.java:129)
at net.sourceforge.pmd.cpd.XMLRenderer.render(XMLRenderer.java:109)
at net.sourceforge.pmd.cpd.CPDCommandLineInterface.main(CPDCommandLineInterface.java:94)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:177)
changed the title [-][scala]CPD terminates with an exception when a small value is set for --minimum-tokens.[/-][+][scala] CPD terminates with an exception when a small value is set for --minimum-tokens[/+]on Sep 18, 2026
Activity
jsotuyod commentedon Dec 9, 2019
@yasuharu-sato thanks for the report. Would you please submit the exception stacktrace you are seeing?
yasuharu-sato commentedon Dec 10, 2019
Sure
[-][scala]CPD terminates with an exception when a small value is set for --minimum-tokens.[/-][+][scala] CPD terminates with an exception when a small value is set for --minimum-tokens[/+][scala] chore: Add test for pmd#2153
[scala] chore: Add test for pmd#2153
[scala] chore: Add test for #2153 (#7087)