-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
The base whitelist is shared by all script contexts. However, the text files exist within painless itself, not the limited spi jar which is meant for extension. This commit moves the base definition into painless and reworks context loading in painless to add the base whitelist so that all contexts get it, regardless of whether they have added an explicit whitelist. Co-authored-by: Ryan Ernst <[email protected]>
- Loading branch information
1 parent
72898cf
commit 6361095
Showing
55 changed files
with
134 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...spi/org.elasticsearch.painless.annotation → ...spi/org.elasticsearch.painless.annotation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# whitelist for annotation tests | ||
|
||
class org.elasticsearch.painless.AnnotationTestObject @no_import { | ||
class org.elasticsearch.painless.spi.AnnotationTestObject @no_import { | ||
void deprecatedMethod() @deprecated[message="use another method"] | ||
void annotatedTestMethod() @test_annotation[one="one",two="two",three="three"] | ||
void annotatedMultipleMethod() @test_annotation[one="one",two="two",three="three"] @deprecated[message="test"] | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...elasticsearch.painless.annotation.unknown → ...elasticsearch.painless.annotation.unknown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# whitelist for annotation tests with unknown annotation | ||
|
||
class org.elasticsearch.painless.AnnotationTestObject @no_import { | ||
class org.elasticsearch.painless.spi.AnnotationTestObject @no_import { | ||
void unknownAnnotationMethod() @unknownAnnotation | ||
void unknownAnnotationMethod() @unknownAnootationWithMessage[message="use another method"] | ||
} |
2 changes: 1 addition & 1 deletion
2
....painless.annotation.unknown_with_options → ....painless.annotation.unknown_with_options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# whitelist for annotation tests with unknown annotation containing options | ||
|
||
class org.elasticsearch.painless.AnnotationTestObject @no_import { | ||
class org.elasticsearch.painless.spi.AnnotationTestObject @no_import { | ||
void unknownAnnotationMethod() @unknownAnootationWithMessage[arg="arg value"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.