Skip to content

Commit

Permalink
Importer: No attribute search in interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed Jun 6, 2024
1 parent f8f1504 commit ecce0b9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ FamixValueJavaJacksonImporter >> importClassReference: rawValue of: type [
FamixValueJavaJacksonImporter >> importObjectAttribute: rawValue of: type named: name [

| attribute |
type isInterface ifTrue: [
Error signal:
'Cannot find attributes in interfaces. Signaled for attribute `'
, name , '` and interface `' , type name , '`.' ].
(attribute := type findAttributeNamed: name) ifNotNil: [ "Skip transient attributes."
attribute isTransient ifTrue: [ ^ nil ] ].
^ self
Expand Down

0 comments on commit ecce0b9

Please sign in to comment.