Skip to content

Instantly share code, notes, and snippets.

View garydgregory's full-sized avatar
🎯
Focusing

Gary Gregory garydgregory

🎯
Focusing
View GitHub Profile
@garydgregory
garydgregory / gist:967e40f120b8ed6f82d16cad973a2c4e
Last active May 5, 2022 11:47
Apache Commons Parent git master 54-SNAPSHOT AbstractMethodError at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument
To reproduce run:
git clone https://gitbox.apache.org/repos/asf/commons-parent
cd commons-parent
mvn
[INFO] Generating "Rat Report" report --- apache-rat-plugin:0.13:rat
[WARNING] An issue has occurred with apache-rat-plugin:0.13:rat report, skipping LinkageError org.apache.rat.mp.RatReportMojo.generate(Lorg/apache/maven/doxia/sink/Sink;Ljava/util/Locale;)V, please report an issue to Maven dev team.
java.lang.AbstractMethodError: org.apache.rat.mp.RatReportMojo.generate(Lorg/apache/maven/doxia/sink/Sink;Ljava/util/Locale;)V
at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:235)
>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] juneau [pom]
[INFO] juneau/core [pom]
[INFO] juneau/core/marshall [bundle]
[INFO] juneau/core/marshall-rdf [bundle]
[INFO] juneau/core/dto [bundle]
This file has been truncated, but you can view the full file.
0SECTION TITLE subcomponent dump routine
NULL ===============================
1TICHARSET 437
1TISIGINFO Dump Event "gpf" (00002000) received
1TIDATETIME Date: 2017/07/20 at 13:30:48:849
1TINANOTIME System nanotime: 606763297614897
1TIFILENAME Javacore filename: C:\temp\rc\test-log4j-scala\javacore.20170720.133045.13856.0004.txt
1TIREQFLAGS Request Flags: 0x81 (exclusive+preempt)
1TIPREPSTATE Prep State: 0x100 (trace_disabled)
1TIPREPINFO Exclusive VM access not taken: data may not be consistent across javacore sections
package org.apache.commons.io;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigInteger;
public class BigIntHelper {
private static Method intValueExactMethod;
public void deleteAll(File directory) throws IOException {
final Object obj = null;
boolean test = true;
if (obj == null) {
test = false;
}
if (test) {
FileUtils.deleteDirectory(directory);
}
}
public void deleteAll(File directory) throws IOException {
final boolean test = test();
if (test) {
FileUtils.deleteDirectory(directory);
}
}
private boolean test() {
return 1 == 2;
}
public void deleteAll(File directory) throws IOException {
final boolean test = 1 == 2;
if (test) {
FileUtils.deleteDirectory(directory);
}
}
public void deleteAll(File directory) throws IOException {
if (false) {
FileUtils.deleteDirectory(directory);
}
}
package org.apache.commons.io;
import java.io.File;
import java.io.IOException;
public class ADangerousClass {
public void deleteAll(File directory) throws IOException {
FileUtils.deleteDirectory(directory);
}
{
"id": "org.apache.commons.io.FileUtils.copyFileToDirectory:void(java.io.File,java.io.File)/srcFile/2",
"description": "The method `copyFileToDirectory` does not support handling **sensitive data** to be passed as parameter `srcFile` because it is leaked over I/O **File**.",
"unsupportedDataType": "SENSITIVE",
"interfaceId": "FILE/false",
"methodId": "org.apache.commons.io.FileUtils.copyFileToDirectory:void(java.io.File,java.io.File)",
"codeLocationUrl": "https://github.com/apache/commons-io/blob/commons-io-2.5/src/main/java/org/apache/commons/io/FileUtils.java#L1141",
"state": "NEUTRAL",
"externalIssueUrl": "https://todo"
}