JavaDecompiler.st
changeset 175 68da52e100ab
parent 165 d524d23e045c
child 187 89fec395f511
--- a/JavaDecompiler.st	Wed Jul 30 10:54:27 1997 +0000
+++ b/JavaDecompiler.st	Wed Jul 30 14:41:13 1997 +0000
@@ -321,9 +321,10 @@
      interfaces|
 
     pckgName := aJavaClass package.
-
-    s nextPutAll:'package ' , (pckgName copy replaceAll:$/ by:$.).
-    s nextPutAll:';'; cr; cr.
+    pckgName ~= aJavaClass name ifTrue:[
+        s nextPutAll:'package ' , (pckgName copy replaceAll:$/ by:$.).
+        s nextPutAll:';'; cr; cr.
+    ].
 
     needCR := false.
     aJavaClass isPublic ifTrue:[
@@ -517,7 +518,7 @@
     s nextPutAll:'}'; cr.
 
     "Created: 22.3.1997 / 14:29:37 / cg"
-    "Modified: 25.3.1997 / 19:24:05 / cg"
+    "Modified: 30.7.1997 / 15:27:53 / cg"
 ! !
 
 !JavaDecompiler class methodsFor:'decompiling'!
@@ -555,9 +556,9 @@
     endPC := code size.
     endPC == 0 ifTrue:[
         javaMethod isNative ifTrue:[
-            outStream nextPutAll:'native method'; cr
+            outStream nextPutAll:'// native method'; cr
         ] ifFalse:[
-            outStream nextPutAll:'no bytecode'; cr
+            outStream nextPutAll:'{}  // no bytecode'; cr
         ].
         ^ self
     ].
@@ -587,7 +588,7 @@
     ]
 
     "Created: 16.4.1996 / 14:59:29 / cg"
-    "Modified: 20.3.1997 / 13:57:24 / cg"
+    "Modified: 30.7.1997 / 16:13:04 / cg"
 ! !
 
 !JavaDecompiler methodsFor:'operand decoding'!
@@ -830,6 +831,6 @@
 !JavaDecompiler class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaDecompiler.st,v 1.25 1997/03/25 18:26:35 cg Exp $'
+    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaDecompiler.st,v 1.26 1997/07/30 14:40:09 cg Exp $'
 ! !
 JavaDecompiler initialize!