Hi, I have decompile and recompile a jar file to modify the class StringUtils.class. Once I modified it and recompile is giving me problems during run.
When I compare the original function list to that I have recompile, there is a public function that is not present in the original. I am using "javac -cp guevana-20.0.jar StringUtils.java" to compile.
The javap results are the following:
//original
public final class com.google.appinventor.common.utils.StringUtils {
public static final com.google.common.base.CharMatcher VALID_FILENAME_CHARS;
public static java.lang.String quote(java.lang.String);
public static java.lang.String unquote(java.lang.String);
public static java.lang.String escape(java.lang.String);
public static boolean contains(java.lang.String[], java.lang.String);
public static java.lang.String join(java.lang.String, java.lang.String[]);
public static java.lang.String join(java.lang.String, java.lang.Iterable<java.lang.String>);
public static void join(java.lang.StringBuilder, java.lang.String, java.lang.String...);
public static java.lang.String userToPackageName(java.lang.String);
public static java.lang.String getProjectPackage(java.lang.String, java.lang.String);
public static java.lang.String getQualifiedFormName(java.lang.String, java.lang.String);
public static java.lang.String replaceLastOccurrence(java.lang.String, java.lang.String, java.lang.String);
public static java.lang.String createProjectName(java.util.Set<java.lang.String>) ;
public static java.lang.String normalizeForFilename(java.lang.String);
public static java.lang.String toJson(java.lang.String);
public static int countMatches(java.lang.String, java.lang.String);
public static boolean isNullOrEmpty(java.lang.String);
static {};
}
//my compilation
public final class com.google.appinventor.common.utils.StringUtils {
public static final com.google.common.base.CharMatcher VALID_FILENAME_CHARS;
public com.google.appinventor.common.utils.StringUtils();
public static java.lang.String quote(java.lang.String);
public static java.lang.String unquote(java.lang.String);
public static java.lang.String escape(java.lang.String);
public static boolean contains(java.lang.String[], java.lang.String);
public static java.lang.String join(java.lang.String, java.lang.String[]);
public static java.lang.String join(java.lang.String, java.lang.Iterable<java.lang.String>);
public static void join(java.lang.StringBuilder, java.lang.String, java.lang.String...);
public static java.lang.String userToPackageName(java.lang.String);
public static java.lang.String getProjectPackage(java.lang.String, java.lang.String);
public static java.lang.String getQualifiedFormName(java.lang.String, java.lang.String);
public static java.lang.String replaceLastOccurrence(java.lang.String, java.lang.String, java.lang.String);
public static java.lang.String createProjectName(java.util.Set<java.lang.String>) ;
public static java.lang.String normalizeForFilename(java.lang.String);
public static java.lang.String toJson(java.lang.String);
public static int countMatches(java.lang.String, java.lang.String);
public static boolean isNullOrEmpty(java.lang.String);
static {};
}
public final class com.google.appinventor.common.utils.StringUtils {
public static final com.google.common.base.CharMatcher VALID_FILENAME_CHARS;
public com.google.appinventor.common.utils.StringUtils();
public static java.lang.String quote(java.lang.String);
public static java.lang.String unquote(java.lang.String);
public static java.lang.String escape(java.lang.String);
public static boolean contains(java.lang.String[], java.lang.String);
public static java.lang.String join(java.lang.String, java.lang.String[]);
public static java.lang.String join(java.lang.String, java.lang.Iterable<java.lang.String>);
public static void join(java.lang.StringBuilder, java.lang.String, java.lang.String...);
public static java.lang.String userToPackageName(java.lang.String);
public static java.lang.String getProjectPackage(java.lang.String, java.lang.String);
public static java.lang.String getQualifiedFormName(java.lang.String, java.lang.String);
public static java.lang.String replaceLastOccurrence(java.lang.String, java.lang.String, java.lang.String);
public static java.lang.String createProjectName(java.util.Set<java.lang.String>) ;
public static java.lang.String normalizeForFilename(java.lang.String);
public static java.lang.String toJson(java.lang.String);
public static int countMatches(java.lang.String, java.lang.String);
public static boolean isNullOrEmpty(java.lang.String);
static {};
}
Question:
How can I get rid of the "public com.google.appinventor.common.utils.StringUtils(); " public function that appears on my compiled file?