Commit Graph

18320 Commits

Author SHA1 Message Date
Robert Muir 0ddbdc4cbc LUCENE-5207: didnt mean to change unrelated test...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523395 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 03:43:17 +00:00
Robert Muir 6c6564f2be LUCENE-5207: simplify
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523394 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 03:42:15 +00:00
Robert Muir c2a261dbdd LUCENE-5207: add test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523393 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 03:36:48 +00:00
Mark Robert Miller 90ac003c6c SOLR-4984: etc/logging.properties in example should be removed
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1523391 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 03:19:16 +00:00
Robert Muir c3229f37b0 LUCENE-5207: javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523385 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 01:50:04 +00:00
Robert Muir de995715bd LUCENE-5207: simplify some of operators
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523382 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 01:19:28 +00:00
Uwe Schindler f2787a0603 LUCENE-5207: Simplify the comparisons
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523375 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 00:48:44 +00:00
Mark Robert Miller ffef7b3d1d improve license version detection
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1523367 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 00:14:24 +00:00
Uwe Schindler 0b07ec8d0c LUCENE-5207: Rename field
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523364 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 00:11:28 +00:00
Uwe Schindler 7b44428727 LUCENE-5207: Rename method, use a switch statement again
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523362 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 00:08:36 +00:00
Uwe Schindler 13acee90d3 LUCENE-5207: Simpler without cast
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523361 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:54:13 +00:00
Uwe Schindler f676e3df79 LUCENE-5207: Thanks Robert for help with this opcode
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523360 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:45:43 +00:00
Uwe Schindler 4304e0b484 LUCENE-5207: More simplifications
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523358 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:39:05 +00:00
Robert Muir 2f73532d52 LUCENE-5207: more tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523357 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:33:53 +00:00
Mark Robert Miller 2eb1750f4d LUCENE-5209: Allow the license checker to optionally avoid check sum comparisons on SNAPSHOT dependencies.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1523356 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:33:02 +00:00
Robert Muir bafedad9c9 LUCENE-5207: more parser tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523351 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 23:13:25 +00:00
Robert Muir 46d3371997 LUCENE-5207: add test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523350 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 22:48:19 +00:00
Robert Muir aaf9a830e6 LUCENE-5207: update maven config
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523345 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 22:28:35 +00:00
Uwe Schindler cd427709d1 LUCENE-5207: Start to rewrite the bytecode generator using GeneratorAdapter
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523341 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 22:21:30 +00:00
Robert Muir 176334efcb LUCENE-5207: add test for huge amounts of variables
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523339 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 22:14:21 +00:00
Uwe Schindler 48bcf86367 LUCENE-5207: Remove useless check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523324 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 21:03:43 +00:00
Uwe Schindler e6c0692d4b LUCENE-5207: Add checks for classloader, so all methods in the Map are accessible
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523315 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 20:31:52 +00:00
Robert Muir 691e3fc234 LUCENE-5207: fix oops in test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523302 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 19:40:57 +00:00
Robert Muir b56c58884f LUCENE-5207: check the class too
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523301 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 19:40:20 +00:00
Robert Muir 591a3b1ca1 LUCENE-5207: add some checks and tests for illegal stuff
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523300 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 19:33:57 +00:00
Robert Muir cdc36f41d2 LUCENE-5207: allow specifying classloader when using custom functions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523297 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 19:22:23 +00:00
Robert Muir 04cd8c6db4 LUCENE-5207: add some simple tests for custom functions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523296 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 19:12:23 +00:00
Robert Muir 4963e64f9b LUCENE-5207: make functions pluggable
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523286 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 18:29:53 +00:00
Robert Muir aade09f212 LUCENE-5207: add resources folder here
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523279 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 17:21:59 +00:00
Michael McCandless c3fd78cae6 LUCENE-4906: make expert Object method protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1523225 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 12:01:12 +00:00
Uwe Schindler 5329cbdd3d LUCENE-5213: Use <groovy/> instead <script/> ant task
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1523214 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 11:19:33 +00:00
Uwe Schindler 98e055a539 LUCENE-5207: Throw correct exception in JavascriptFunction ctor
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523204 13f79535-47bb-0310-9956-ffa450edef68
2013-09-14 10:20:47 +00:00
Uwe Schindler ada121d6b0 LUCENE-5207: load available javascript functions from resource file (properties)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523114 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 21:38:36 +00:00
Uwe Schindler b23b6276cc LUCENE-5207: add comment that the regen hack does not work in Java 8
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523075 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 20:04:14 +00:00
Robert Muir afc65eebac LUCENE-5207: enforce encoding and locale (for paranoia reasons)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523059 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:48:58 +00:00
Robert Muir 675fb49bbd LUCENE-5207: try a hack around antlr hashmap bugs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523057 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:40:42 +00:00
Robert Muir d706f3b8d9 LUCENE-5207: upgrade checksum/maven
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523047 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:22:59 +00:00
Uwe Schindler 91aaa597a8 LUCENE-5207: replace tabs by 2 spaces now. antlr 3.5 produces tabs consistently now, so we can replace them (no mixed tabs anymore)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523046 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:22:18 +00:00
Uwe Schindler 7480e82c21 LUCENE-5207: Update to antlr 3.5 (which produces no warnings while compiling with java 7). Also fix the regen-macro to handle windows file paths while replacing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523042 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 18:18:01 +00:00
Uwe Schindler 260853183c LUCENE-5207: Minor cleanups, also mark all generated methods as SYNTHETIC because there exists no source code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1523016 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 17:02:53 +00:00
Uwe Schindler 699651904d LUCENE-5207: Refactor compiler to use final fields and simplify initialization
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522972 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 15:22:41 +00:00
Uwe Schindler 01b002b510 LUCENE-5207: Remove classloader field (is not needed, we call only once)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522967 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 15:10:23 +00:00
Uwe Schindler 9617a1ddaa LUCENE-5207: Add a unused test method to make sure that if we change the FunctionValues interface we get compile error. Also make the class format version a constant for easy maintenance (once we backport)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522925 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 13:40:56 +00:00
Uwe Schindler 115d5dd0e1 LUCENE-5207: Revert the dynamic class name. Its much better to use the "source file attribute". The class name is now constant (as every class gets own class loader) and looks like an internal class of the compiler. The stack trace is then looking like:
Throwable #1: java.lang.IllegalArgumentException: foobar
       at __randomizedtesting.SeedInfo.seed([3968E8DD2901F71C:4292B9595A397818]:0)
       at org.apache.lucene.util.MathUtil.log(MathUtil.java:51)
       at org.apache.lucene.expressions.js.JavascriptCompiler$CompiledExpression.evaluate(logn(2, 0))
       at org.apache.lucene.expressions.js.TestJavascriptFunction.assertEvaluatesTo(TestJavascriptFunction.java:27)
       at org.apache.lucene.expressions.js.TestJavascriptFunction.testLognMethod(TestJavascriptFunction.java:178)
       at java.lang.Thread.run(Thread.java:724)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522907 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:54:29 +00:00
Martijn van Groningen 026526dbd4 Fix idea config
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522898 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:36:22 +00:00
Uwe Schindler fc2d83400b LUCENE-5207: Remove stupidity... :(
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522888 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 12:06:26 +00:00
Michael McCandless 36d7c6b38d try to workaround javadocs bug causing nightly-smoke to fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1522885 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:58:33 +00:00
Uwe Schindler d586a56a3b LUCENE-5207: Limit the maximum class name length
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522877 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:27:26 +00:00
Uwe Schindler f05d6b11a8 LUCENE-5207: Create the class name of generated classes from the parsed text
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522873 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 11:22:42 +00:00
Uwe Schindler dab0325b9d LUCENE-5207: Remove classloader constructor, because it makes no sense to use any other classloader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522858 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 10:45:37 +00:00