<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/jarg/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/jarg/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/jarg/bugs/</id><updated>2004-06-04T23:16:40Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Executable Jar files are not obfuscated correctly</title><link href="https://sourceforge.net/p/jarg/bugs/7/" rel="alternate"/><published>2004-06-04T23:16:40Z</published><updated>2004-06-04T23:16:40Z</updated><author><name>j_zulu</name><uri>https://sourceforge.net/u/jyzhang/</uri></author><id>https://sourceforge.net41f266fccccd55f0db71a93efd61b977e4d28043</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is for JavaGuard 1.0beta4.&lt;/p&gt;
&lt;p&gt;The executable jar file's manifest contains a line that&lt;br /&gt;
specifies the Class with the main method to execute.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;Old Manifest file:&lt;br /&gt;
----------------&lt;br /&gt;
Manifest-Version: 1.0&lt;br /&gt;
Main-Class: com.name.dept.project.pak1.MainClass&lt;/p&gt;
&lt;p&gt;after the jar file has been obfuscated, the MainClass&lt;br /&gt;
will be renamed, however the manifest file still has&lt;br /&gt;
the incorrect (old) name of the executable.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;New Manifest file:&lt;br /&gt;
------------------&lt;br /&gt;
Manifest-Version: 1.0&lt;br /&gt;
Created-By: JavaGuard v1.0beta4 Bytecode Obfuscator&lt;br /&gt;
Main-Class: com.name.dept.project.pak1.MainClass&lt;/p&gt;
&lt;p&gt;Name: a/a/a/a/a/f$9.class&lt;br /&gt;
SHA-1-Digest: fqKAcFB8gvY50u2dlU7DciaDLDU=&lt;br /&gt;
Digest-Algorithms: SHA-1 MD5&lt;br /&gt;
MD5-Digest: umrVlci4+XXWPYsRSEEJqA==&lt;br /&gt;
...&lt;/p&gt;
&lt;p&gt;Thus when trying to execute the jar file will result in&lt;br /&gt;
a java.lang.NoClassDefFoundError.&lt;/p&gt;
&lt;p&gt;So bottom line: the manifest file's Main-Class field&lt;br /&gt;
has to be changed accordingly.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Non-instantiating Class renaming causing exceptions.</title><link href="https://sourceforge.net/p/jarg/bugs/6/" rel="alternate"/><published>2003-08-22T11:52:56Z</published><updated>2003-08-22T11:52:56Z</updated><author><name>Lindsay Bradford</name><uri>https://sourceforge.net/u/lycanthropic/</uri></author><id>https://sourceforge.net4598ab23b71816ae3f4d38f59917764dabc13b58</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have two classes across two different projects that&lt;br /&gt;
(after being jarged) fail to be found, resulting in a&lt;br /&gt;
&amp;amp;quot;NoClassDefFound&amp;amp;quot; exception being thrown using the&lt;br /&gt;
original name of each class.&lt;/p&gt;
&lt;p&gt;What both classes have in common are that both are&lt;br /&gt;
never instantiated (I  use class methods and static&lt;br /&gt;
class attributes to deliver static data from behind a&lt;br /&gt;
Class interface).  I'm suspecting that the classes are&lt;br /&gt;
either being renamed or deleted when they shouldn't be.&lt;br /&gt;
(Is the deletion decision being based only on classes&lt;br /&gt;
not being instantiated?)&lt;/p&gt;
&lt;p&gt;I have a workaround at the moment where I just specify&lt;br /&gt;
the classes in an excpc file. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bytecode optimizer causes preverification to fail</title><link href="https://sourceforge.net/p/jarg/bugs/5/" rel="alternate"/><published>2003-02-14T10:03:24Z</published><updated>2003-02-14T10:03:24Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net84778ccc1df983acf9b85e3c5e80e031ec151332</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When jarg with bytecode optimizing option is turned on, &lt;br /&gt;
I had one of my class file failing the preverification (sorry, &lt;br /&gt;
I can't submit the code since it's not really mine.)&lt;/p&gt;
&lt;p&gt;The error message from preverifier is as follows:&lt;br /&gt;
----------------------------&lt;br /&gt;
Error preverifying class b&lt;br /&gt;
VERIFIER ERROR b.qa()I:&lt;br /&gt;
Unable to pop operand off an empty stack&lt;br /&gt;
----------------------------&lt;/p&gt;
&lt;p&gt;Following is as far as I know now:&lt;br /&gt;
----------------------------&lt;br /&gt;
In the method jarg.BytecodeOptimizer#optimizeCode, if I &lt;br /&gt;
commented out the line that says:&lt;/p&gt;
&lt;p&gt;counter += analizeLocalSlot();&lt;/p&gt;
&lt;p&gt;(replacing xSTOREn to POP?) then I don't get the error &lt;br /&gt;
anymore.&lt;br /&gt;
----------------------------&lt;/p&gt;
&lt;p&gt;Do you have any clue?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Should not remove serialization methods.</title><link href="https://sourceforge.net/p/jarg/bugs/4/" rel="alternate"/><published>2003-01-01T20:57:17Z</published><updated>2003-01-01T20:57:17Z</updated><author><name>Peter S. Heijnen</name><uri>https://sourceforge.net/u/heijnen/</uri></author><id>https://sourceforge.netacb12e4521a4d41b72d365e4c65530ab9ce2149e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Currently, jarg will remove serialization methods (like MyClass#readObject(Ljava/io/ObjectInputStream;)V). Jarg should not remove readObject/writeObject if a class implements the Serializable class.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Exception with ANT 1.5.1 and JDK 1.4.1</title><link href="https://sourceforge.net/p/jarg/bugs/3/" rel="alternate"/><published>2002-10-31T17:40:12Z</published><updated>2002-10-31T17:40:12Z</updated><author><name>Karl ROUSSEAU</name><uri>https://sourceforge.net/u/userid-342679/</uri></author><id>https://sourceforge.net3e09e2472523246a24400bdb4ce5cf8627c7399f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I run the wonderful jarg in a console using the &lt;br /&gt;
SUN JDK 1.4.1, it works fine but when I use ANT over &lt;br /&gt;
SUN JDK 1.4.1, it fails with this exception:&lt;br /&gt;
[java] The args attribute is deprecated. Please use &lt;br /&gt;
nested arg elements.&lt;br /&gt;
[java] Running in same VM Executing 'jarg.Jarg' with &lt;br /&gt;
arguments:&lt;br /&gt;
[java] '-nornm'&lt;br /&gt;
[java] '-nornc'&lt;br /&gt;
[java] '../lib/temp.jar'&lt;br /&gt;
[java]&lt;br /&gt;
[java] The ' characters around the executable and &lt;br /&gt;
arguments are&lt;br /&gt;
[java] not part of the command.&lt;br /&gt;
[java] java.lang.NoClassDefFoundError: &lt;br /&gt;
sun/reflect/ConstructorAccessorImpl&lt;/p&gt;
&lt;p&gt;The same script is running fine with SUN/IBM JDK 1.3.1 &lt;br /&gt;
on my PC (dual-pIII) with NT 2000sp2.&lt;br /&gt;
My batch command is:&lt;br /&gt;
@d:\j2sdk1.4.1\bin\java -classpath D:\j2sdk1.4.1&lt;br /&gt;
\lib\tools.jar;..\lib\jarg.jar;D:\idea647\lib\ant.jar;D:\idea647&lt;br /&gt;
\lib\optional.jar;D:\idea647\lib\xalan.jar &lt;br /&gt;
org.apache.tools.ant.Main -buildfile script.xml deploy -&lt;br /&gt;
verbose&lt;br /&gt;
(I use the IDE called IdeaJ which is holding my ant but &lt;br /&gt;
this exception is nothing to do with this IDE,I am just &lt;br /&gt;
using the packages)&lt;/p&gt;
&lt;p&gt;As we are moving our software on JDK 1.4.1, I hope this &lt;br /&gt;
is nothing to fix ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>midlet crash! (j2me)</title><link href="https://sourceforge.net/p/jarg/bugs/2/" rel="alternate"/><published>2002-07-27T05:32:48Z</published><updated>2002-07-27T05:32:48Z</updated><author><name>Hidetoshi</name><uri>https://sourceforge.net/u/hchacha/</uri></author><id>https://sourceforge.net6acd41e07f3f566ea9c54d7fe0e30e629c76b54e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My midlet jar file is not run that is processed by jarg&lt;br /&gt;
(v0.9.11).&lt;br /&gt;
It is crashed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Broken method renaming at special case.</title><link href="https://sourceforge.net/p/jarg/bugs/1/" rel="alternate"/><published>2002-04-05T19:55:27Z</published><updated>2002-04-05T19:55:27Z</updated><author><name>Hidetoshi</name><uri>https://sourceforge.net/u/hchacha/</uri></author><id>https://sourceforge.net4695259710e04a1206950bc4851970dbb1b77846</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The method renaming is broken if a method override &lt;br /&gt;
package access abstract method.&lt;/p&gt;
&lt;p&gt;ex.)&lt;/p&gt;
&lt;p&gt;class A {&lt;br /&gt;
abstract void longMethod();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;class B {&lt;br /&gt;
void otherMethod() {&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;void longMethod() {  // &amp;amp;lt;-- override&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;&amp;amp;lt;renamed result&amp;amp;gt;&lt;/p&gt;
&lt;p&gt;class a {&lt;br /&gt;
abstract void a();  // original: longMethod()&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;class b {&lt;br /&gt;
void a() {  // original: otherMethod()&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;void b() {  // original: longMethod() &amp;amp;lt;--*BROKEN*&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>