JavaClassRegistry.st
branchdevelopment
changeset 2645 b7a540a27521
parent 2642 fad6365a2e15
child 2676 a9d6293ac6d5
--- a/JavaClassRegistry.st	Mon Aug 05 10:55:37 2013 +0100
+++ b/JavaClassRegistry.st	Tue Aug 06 11:19:07 2013 +0100
@@ -321,6 +321,13 @@
                             put: reloadedClass.
                         self registerClassInSmalltalk: reloadedClass notify: false.
                     ].
+                    "Transfer all possible problems from old class to new class"
+                    JavaCompilerProblemRegistry notNil ifTrue:[
+                        | problems |
+
+                        problems := JavaCompilerProblemRegistry problemsFor: newClass.
+                        JavaCompilerProblemRegistry problemsFor: reloadedClass put: problems.
+                    ].
                     Smalltalk changed: #classDefinition with: reloadedClass.
                     ^self.             
                 ].
@@ -342,7 +349,7 @@
 
     "Created: / 23-10-2011 / 11:53:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified: / 02-11-2011 / 18:40:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
-    "Modified: / 04-08-2013 / 14:01:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 06-08-2013 / 10:46:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 registerClassInSmalltalk: javaclass notify: doNotify