Parser should allow parsing of JavaSources when dependencies changed #879
Open
Labels
in: sbm-core
in: sbm-support-rewrite
Issue is related to the sbm-support-rewrite compionent
revamp
type: enhancement
New feature or request
What needs to be done
The
RewriteProjectParser
should be refactored to allow parsing a list ofJavaSource
s with a given classpath.Why it needs to be done
#858 is blocked by #871 which is blocked by this issue.
Acceptance Criteria
Additional Information
Example
Given a reactor build with four
pom.xml
:parent
,A
,B
, andC
whereA
depends onB
andB
depends onC
.When a dependency is added to
B
and the classpath changedThen modules
A
andB
must be parsed again to resolve the new types added.While
C
is not required to be parsed again (it didn't change), the types provided byC
must be made available when parsingB
, andB
's types must be made available when parsingC
and so forth.Learnings
See #971
C
in the example above) it must be provided when re-parsing the next higher modules in the reactor hierarchy (B
).TypeCache
is not enoughreset()
.JavaParser
instance itself could be possible, it can be provided through a Marker, similar toJavaSourceSet
.The text was updated successfully, but these errors were encountered: