Skip to content

Conversation

@cbuescher
Copy link
Member

@cbuescher cbuescher commented Aug 11, 2017

Eclipse is not so good at doing type inference inside lambdas it seems. The class compiles well using the java compile but Eclipse compiler complains. This change just pulls out the argument into a local variable to avoid the problem.

@cbuescher cbuescher changed the title Fix eclipse compilation problems Fix Eclipse compilation problems Aug 11, 2017
@nik9000
Copy link
Member

nik9000 commented Aug 11, 2017

LGTM but I think you should add a comment explaining why you've pulled the lists out. If you can reference the eclipse bug that'd be even butter. I don't know which bug it is. It is fixed in Oxygen though.

@cbuescher cbuescher force-pushed the fix-eclipse-compileIssues branch from 8e325fe to dc2d406 Compare August 13, 2017 16:01
@cbuescher
Copy link
Member Author

@nik9000 thanks, I added a comment

@cbuescher cbuescher merged commit 6e085c7 into elastic:master Aug 13, 2017
cbuescher added a commit that referenced this pull request Aug 13, 2017
cbuescher added a commit that referenced this pull request Aug 13, 2017
@jasontedor
Copy link
Member

Are we going to move away from supporting Eclipse Neon so we stop having to make these changes?

@cbuescher
Copy link
Member Author

Yes, I also changed to Oxygen now. Hope it works better in cases like these.

@jasontedor
Copy link
Member

I opened #26194.

jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Aug 14, 2017
* master: (30 commits)
  Rewrite range queries with open bounds to exists query (elastic#26160)
  Fix eclipse compilation problem (elastic#26170)
  Epoch millis and second formats parse float implicitly (Closes elastic#14641) (elastic#26119)
  fix SplitProcessor targetField test (elastic#26178)
  Fixed typo in README.textile (elastic#26168)
  Fix incorrect class name in deleteByQuery docs (elastic#26151)
  Move more token filters to analysis-common module
  reindex: automatically choose the number of slices (elastic#26030)
  Fix serialization of the `_all` field. (elastic#26143)
  percolator: Hint what clauses are important in a conjunction query based on fields
  Remove unused Netty-related settings (elastic#26161)
  Remove SimpleQueryStringIT#testPhraseQueryOnFieldWithNoPositions.
  Tests: reenable ShardReduceIT#testIpRange.
  Allow `ClusterState.Custom` to be created on initial cluster states (elastic#26144)
  Teach the build about betas and rcs (elastic#26066)
  Fix wrong header level
  inner hits: Unfiltered nested source should keep its full path
  Document how to import Lucene Snapshot libs when elasticsearch clients (elastic#26113)
  Use `global_ordinals_hash` execution mode when sorting by sub aggregations. (elastic#26014)
  Make the README use a single type in examples. (elastic#26098)
  ...
@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants