Issue #382: Warning when PEAR contains a JCAS class that is used as a feature range outside the PEAR #383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's in the PR
How to test manually
Automatic testing
Documentation
Organizational
Only dependencies under approved licenses are allowed. LICENSE and NOTICE files in the respective modules where dependencies have been added as well as in the project root have been updated.
Let's assume we have:
X
with a featureX.a
of typeA
X1
that is a subtype ofX
Ok, so what can happen...
X
,A
X
,A
X.setA(A)
X
,A
A
cas.createFS('X').setFeatureValue('a', 'A')
; The rule is that the PEARs must embed all classes they uses at compile time - ergo - the PEAR cannot useX.getA()
orX.setA()
because it does not embed X.X
,A
,X1
X
cas.select(X.class)
but will get aClassCastException
when it encounters aX1
- see #384