Skip to content

Conversation

@jdconrad
Copy link
Contributor

This is the fourth part in a series to remove Painless Type. This replaces Painless Type with Java Class for all expression type nodes in Painless. This is a somewhat large change because the base node for all expression nodes is modified and can't really be broken up.

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

public static Class<?> TypeToClass (Type type) {
if (type.dynamic) {
public static Class<?> TypeToClass(Type type) {
if ("def".equals(type.struct.name)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use def.class.getShortName()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated for all of Definition.

@jdconrad
Copy link
Contributor Author

@rjernst Thanks for the review. Will commit as soon as CI completes.

@jdconrad jdconrad merged commit f13da9f into elastic:master Jan 29, 2018
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
@jdconrad jdconrad mentioned this pull request May 31, 2018
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >non-issue v6.3.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants