<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/jarg/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/jarg/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 04 Jun 2004 23:16:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jarg/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Executable Jar files are not obfuscated correctly</title><link>https://sourceforge.net/p/jarg/bugs/7/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">j_zulu</dc:creator><pubDate>Fri, 04 Jun 2004 23:16:40 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net41f266fccccd55f0db71a93efd61b977e4d28043</guid></item><item><title>Non-instantiating Class renaming causing exceptions.</title><link>https://sourceforge.net/p/jarg/bugs/6/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lindsay Bradford</dc:creator><pubDate>Fri, 22 Aug 2003 11:52:56 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net4598ab23b71816ae3f4d38f59917764dabc13b58</guid></item><item><title>Bytecode optimizer causes preverification to fail</title><link>https://sourceforge.net/p/jarg/bugs/5/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 14 Feb 2003 10:03:24 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net84778ccc1df983acf9b85e3c5e80e031ec151332</guid></item><item><title>Should not remove serialization methods.</title><link>https://sourceforge.net/p/jarg/bugs/4/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Peter S. Heijnen</dc:creator><pubDate>Wed, 01 Jan 2003 20:57:17 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netacb12e4521a4d41b72d365e4c65530ab9ce2149e</guid></item><item><title>Exception with ANT 1.5.1 and JDK 1.4.1</title><link>https://sourceforge.net/p/jarg/bugs/3/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karl ROUSSEAU</dc:creator><pubDate>Thu, 31 Oct 2002 17:40:12 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3e09e2472523246a24400bdb4ce5cf8627c7399f</guid></item><item><title>midlet crash! (j2me)</title><link>https://sourceforge.net/p/jarg/bugs/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hidetoshi</dc:creator><pubDate>Sat, 27 Jul 2002 05:32:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net6acd41e07f3f566ea9c54d7fe0e30e629c76b54e</guid></item><item><title>Broken method renaming at special case.</title><link>https://sourceforge.net/p/jarg/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hidetoshi</dc:creator><pubDate>Fri, 05 Apr 2002 19:55:27 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net4695259710e04a1206950bc4851970dbb1b77846</guid></item></channel></rss>