src/JavaDecompiler.st
branchjk_new_structure
changeset 1441 0faa0f8eda0c
parent 1281 b46adbe75503
--- a/src/JavaDecompiler.st	Fri Mar 30 13:38:40 2012 +0000
+++ b/src/JavaDecompiler.st	Sat Mar 31 00:12:13 2012 +0000
@@ -399,9 +399,10 @@
     methodNameStyle := Java prettyPrintStyle at:#className.
 
     pckgName := aJavaClass package.
-    pckgName ~= aJavaClass name ifTrue:[
-        s nextPutAll:'package ' , (pckgName copyReplaceAll:$/ with:$.).
+    pckgName ~= 'java' ifTrue:[
+        s nextPutAll:'package ' , ((pckgName copyFrom: 6) copyReplaceAll:$/ with:$.).
         s nextPutAll:';'; cr; cr.
+
     ].
 
     needCR := false.
@@ -492,6 +493,9 @@
 
             s nextPutAll:'    '.
             s emphasis:accessAttributeStyle.
+            aField isSynthetic ifTrue:[
+                s nextPutAll: '/*SYNTHETIC*/ '.
+            ].
             aField isPublic ifTrue:[
                 s nextPutAll:'public '.
             ] ifFalse:[
@@ -642,7 +646,7 @@
     "Created: / 22-03-1997 / 14:29:37 / cg"
     "Modified: / 05-12-1998 / 15:58:37 / cg"
     "Modified: / 21-10-2011 / 13:40:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
-    "Modified: / 14-12-2011 / 22:32:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 31-03-2012 / 00:36:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 methodDefinitionOf: m inPackage: pckgName on: s 
@@ -657,6 +661,9 @@
     methodNameStyle := Java prettyPrintStyle at: #methodName.
     s nextPutAll: '    '.
     s emphasis: accessAttributeStyle.
+    aMethod isSynthetic ifTrue:[
+        s nextPutAll: '/*SYNTHETIC*/ '.
+    ].
     aMethod isPublic ifTrue: [
         s nextPutAll: 'public '.
     ] ifFalse: [
@@ -718,7 +725,7 @@
     "Created: / 01-08-1997 / 12:24:11 / cg"
     "Modified: / 14-11-1998 / 00:03:09 / cg"
     "Modified: / 04-06-2011 / 17:18:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
-    "Modified: / 15-08-2011 / 08:52:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified (format): / 30-03-2012 / 19:52:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !JavaDecompiler class methodsFor:'decompiling'!