- ProjectChecker jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 07 Sep 2012 11:45:07 +0100
branchjv
changeset 3081 712525843aef
parent 3080 0febf2fdcb76
child 3082 e58037b2913d
- ProjectChecker changed: #checkExtensionsListConsistency
ProjectChecker.st
--- a/ProjectChecker.st	Wed Sep 05 16:46:10 2012 +0100
+++ b/ProjectChecker.st	Fri Sep 07 11:45:07 2012 +0100
@@ -244,7 +244,14 @@
     ].
     extensionsPresent := OrderedCollection new.
     packageDef searchForExtensions do:[:each|
-        extensionsPresent add: (Array with: each mclass name with: each selector)
+        "JV@2012-09-07: Do not take Java methods into an account, they
+         should not be listed in extensionMethodNames.
+         They are loaded lazily by JavaClassReader and if listed here,
+         they would cause an error if the package is loaded from source.
+         Sort of a HACK, indeed"
+        each mclass isJavaClass ifFalse:[
+            extensionsPresent add: (Array with: each mclass name with: each selector)
+        ].
     ].
 
     (extensionsListed \ extensionsPresent) do:[:clsAndSel|
@@ -475,7 +482,7 @@
 !ProjectChecker class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic3/ProjectChecker.st,v 1.6 2012/07/26 11:59:15 vrany Exp $'
+    ^ '$Id: ProjectChecker.st 1960 2012-09-07 10:45:07Z vranyj1 $'
 !
 
 version_CVS
@@ -483,5 +490,5 @@
 !
 
 version_SVN
-    ^ '$Id: ProjectChecker.st 1940 2012-07-26 15:09:40Z vranyj1 $'
+    ^ '$Id: ProjectChecker.st 1960 2012-09-07 10:45:07Z vranyj1 $'
 ! !