Danny van Bruggen | b20badc | 2017-08-20 23:08:26 +0200 | [diff] [blame] | 1 | Version 3.3.2 |
| 2 | ------------------ |
| 3 | [issues resolved](https://github.com/javaparser/javaparser/milestone/54?closed=1) |
Sebastian Kürten | a6cbccd | 2017-08-25 11:14:35 +0200 | [diff] [blame^] | 4 | * `VisitorMap` lets you override hashcode/equals for nodes when used as a key for a map. |
Danny van Bruggen | b20badc | 2017-08-20 23:08:26 +0200 | [diff] [blame] | 5 | |
Danny van Bruggen | e40e4e2 | 2017-08-13 22:26:18 +0200 | [diff] [blame] | 6 | Version 3.3.1 |
| 7 | ------------------ |
| 8 | [issues resolved](https://github.com/javaparser/javaparser/milestone/53?closed=1) |
| 9 | * The token list is now mutable - see methods on `JavaToken`. |
| 10 | This caused mild breakage - some fields have become `Optional`. |
| 11 | |
Danny van Bruggen | 3cd1be0 | 2017-07-26 19:31:35 +0200 | [diff] [blame] | 12 | Version 3.3.0 |
| 13 | ------------------ |
| 14 | [issues resolved](https://github.com/javaparser/javaparser/milestone/52?closed=1) |
| 15 | * Breaking: `TryStmt::tryBlock` and `EnclosedExpr::inner` were optional for no good reason. Now they are required. |
| 16 | * You can now ask a `JavaToken` for its category, which is useful for examining the token list or doing syntax highlighting or so. |
| 17 | * `enum` and `strictfp` can now be used as identifiers on lower Java versions. |
| 18 | |
Danny van Bruggen | 5e6d729 | 2017-07-16 22:19:10 +0200 | [diff] [blame] | 19 | Version 3.2.12 |
| 20 | ------------------ |
| 21 | [issues resolved](https://github.com/javaparser/javaparser/milestone/51?closed=1) |
| 22 | |
Danny van Bruggen | 969b7f6 | 2017-07-10 21:03:41 +0200 | [diff] [blame] | 23 | Version 3.2.11 |
| 24 | ------------------ |
| 25 | [issues resolved](https://github.com/javaparser/javaparser/milestone/50?closed=1) |
| 26 | * We're up to date with the latest Java 9 module system again. |
| 27 | |
Danny van Bruggen | 3d19598 | 2017-07-05 12:02:09 +0200 | [diff] [blame] | 28 | Version 3.2.10 |
Danny van Bruggen | b5b70ee | 2017-07-02 20:36:42 +0200 | [diff] [blame] | 29 | ------------------ |
| 30 | [issues resolved](https://github.com/javaparser/javaparser/milestone/49?closed=1) |
| 31 | * `Node.replace(old, new)` was added, including property-specific `X.replaceY(newY)` methods |
| 32 | |
Danny van Bruggen | 3d19598 | 2017-07-05 12:02:09 +0200 | [diff] [blame] | 33 | Version 3.2.9 |
| 34 | ------------------ |
| 35 | Scrapped due to release problem. |
| 36 | |
Danny van Bruggen | 1fb7c9d | 2017-06-18 18:10:59 +0200 | [diff] [blame] | 37 | Version 3.2.8 |
| 38 | ------------------ |
| 39 | [issues resolved](https://github.com/javaparser/javaparser/milestone/48?closed=1) |
| 40 | * Added `isInnerClass()` that checks if a `ClassOrInterfaceDeclaration` is an inner class (note: this is different from a nested class!) |
| 41 | * @ryan-beckett contributed a huge [Eclipse setup guide](https://github.com/javaparser/javaparser/wiki/Eclipse-Project-Setup-Guide) |
| 42 | |
Danny van Bruggen | c7f8780 | 2017-06-11 15:57:27 +0200 | [diff] [blame] | 43 | Version 3.2.7 |
| 44 | ------------------ |
| 45 | [issues resolved](https://github.com/javaparser/javaparser/milestone/47?closed=1) |
| 46 | * We now recover from some parse errors! [Here is an article](https://matozoid.github.io/2017/06/11/parse-error-recovery.html) |
| 47 | |
Danny van Bruggen | 9250ffa | 2017-06-04 20:50:37 +0200 | [diff] [blame] | 48 | Version 3.2.6 |
| 49 | ------------------ |
| 50 | [issues resolved](https://github.com/javaparser/javaparser/milestone/46?closed=1) |
| 51 | * `EmptyMemberDeclaration` is gone! |
| 52 | It was deprecated for a while because it it was in the AST, but doesn't have any meaning in a Java program. |
| 53 | `EmptyStmt` was also deprecated, but that has been reverted. |
| 54 | This node *does* have meaning. |
| 55 | |
Danny van Bruggen | ee5691c | 2017-05-22 19:47:13 +0200 | [diff] [blame] | 56 | Version 3.2.5 |
| 57 | ------------------ |
| 58 | [issues resolved](https://github.com/javaparser/javaparser/milestone/45?closed=1) |
| 59 | * `NodeWithCondition` was added on all nodes containing a condition. |
| 60 | * Lots of work on improving lexical preservation. |
| 61 | * If a file was parsed from a file system, you can now get path information etc. from `CompilationUnit` |
| 62 | * API BREAKING: every node now points to its start and end token. |
| 63 | Some of the API has started returning `TokenRange` instead of `Range` - you can call `toRange` to get the old object type. |
| 64 | We may still change the naming of some of this code in the following month. |
| 65 | |
Danny van Bruggen | 5201adc | 2017-05-14 14:00:56 +0200 | [diff] [blame] | 66 | Version 3.2.4 |
| 67 | ------------------ |
| 68 | New style changelog, no more issue numbers, but a link: |
| 69 | [issues resolved](https://github.com/javaparser/javaparser/milestone/44?closed=1) |
| 70 | and any notable changes: |
| 71 | * the new method `Node.removeForced()` by removing it, or removing the first parent that is optional. |
| 72 | This is different from `Node.remove()`, `remove()` only tries to remove the node from the parent and fails if it can't. |
| 73 | * `FieldAccessExpr.scope` is now a required property. |
| 74 | You might find some `get()`s in your code that are no longer necessary. |
| 75 | * `ReferenceType` no longer has a type parameter, so every `ReferenceType<?>` can be replaced by `ReferenceType` now. |
| 76 | |
Danny van Bruggen | 9c51321 | 2017-04-30 22:15:44 +0200 | [diff] [blame] | 77 | Version 3.2.3 |
| 78 | ------------------ |
| 79 | * 907 906 905 903 911 910 909 908 smaller improvements and fixes |
| 80 | |
Danny van Bruggen | dc8077a | 2017-04-23 12:04:03 +0200 | [diff] [blame] | 81 | Version 3.2.2 |
| 82 | ------------------ |
| 83 | Beta: `TreeStructureVisitor`. |
| 84 | |
| 85 | * 770 902 904 901 smaller improvements and fixes |
| 86 | |
Danny van Bruggen | 28cf0be | 2017-04-16 15:05:10 +0200 | [diff] [blame] | 87 | Version 3.2.1 |
| 88 | ------------------ |
| 89 | Beta: `TreeStructureVisitor`. |
| 90 | |
| 91 | * Maven dependencies were updated to their latest versions |
| 92 | * 890 the concept of "method signature" now exists in JavaParser |
| 93 | * 896 891 889 887 882 789 smaller improvements and fixes |
| 94 | |
Danny van Bruggen | 7a3b960 | 2017-04-02 21:39:40 +0200 | [diff] [blame] | 95 | Version 3.2.0 |
| 96 | ------------------ |
| 97 | The lexical preservation code is stable! |
| 98 | |
| 99 | Beta: `TreeStructureVisitor`. |
| 100 | |
| 101 | * 885 884 879 878 smaller improvements and fixes |
| 102 | |
Danny van Bruggen | cadeeb5 | 2017-03-26 20:40:56 +0200 | [diff] [blame] | 103 | Version 3.1.4 |
| 104 | ------------------ |
| 105 | This is the first version to parse Java 9. |
| 106 | |
| 107 | Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`. |
| 108 | |
| 109 | * 872 873 874 787 Remaining Java 9 work. |
| 110 | |
Danny van Bruggen | 64dd280 | 2017-03-19 13:52:35 +0100 | [diff] [blame] | 111 | Version 3.1.3 |
| 112 | ------------------ |
| 113 | Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`. |
| 114 | |
| 115 | A start has been made on source level support. The default level is Java 8. |
| 116 | It can be set to Java 9 like this for a parser *instance*: |
| 117 | ```java |
| 118 | private final JavaParser parser = new JavaParser(new ParserConfiguration().setValidator(new Java9Validator())); |
| 119 | ``` |
| 120 | and like this for the static parse methods: |
| 121 | ```java |
| 122 | JavaParser.getStaticConfiguration().setValidator(new Java9Validator()); |
| 123 | ``` |
| 124 | |
| 125 | * 862 552 "_" is an illegal identifier on source level 9. |
| 126 | * 869 867 109 855 857 smaller improvements and fixes |
| 127 | |
Danny van Bruggen | 79776b7 | 2017-03-11 15:07:40 +0100 | [diff] [blame] | 128 | Version 3.1.2 |
| 129 | ------------------ |
| 130 | Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`. |
| 131 | |
| 132 | * 594 849 831 a validation framework was introduced to inform about problems in the AST without needing to change the grammar, |
| 133 | and without requiring parsing code. |
| 134 | It is open for extension by users. |
| 135 | * 852 853 826 832 846 839 smaller improvements and fixes |
| 136 | |
Danny van Bruggen | f50a551 | 2017-03-04 18:14:46 +0100 | [diff] [blame] | 137 | Version 3.1.1 |
| 138 | ------------------ |
| 139 | Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`. |
| 140 | |
| 141 | * 654 124 lexical preservation (printing source code with the same formatting it had when parsing) has been added. |
| 142 | Thank you @ftomassetti for a lot of work! |
| 143 | * 554 800 first (big) step towards Java 9 support: JavaParser can read project Jigsaw module definitions. |
| 144 | * 795 786 751 extend the TreeVisitor with more traversal options. Thanks @ryan-beckett! |
| 145 | * 791 `GenericListVisitorAdapter` has been added which collects its results in a list. Thanks @Gottox! |
| 146 | * 815 798 797 813 clean up Problem text |
| 147 | * 819 818 817 816 441 809 808 807 fix various absurd annotation related issues. |
| 148 | * 777 805 802 796 790 792 793 781 784 785 783 782 779 357 799 763 smaller improvements and fixes |
| 149 | |
Danny van Bruggen | 076d3ee | 2017-02-19 22:56:24 +0100 | [diff] [blame] | 150 | Version 3.1.0 |
| 151 | ------------------ |
Danny van Bruggen | f50a551 | 2017-03-04 18:14:46 +0100 | [diff] [blame] | 152 | Beta: `TreeStructureVisitor` and `ConcreteSyntaxModel`. |
Danny van Bruggen | 076d3ee | 2017-02-19 22:56:24 +0100 | [diff] [blame] | 153 | |
| 154 | * 705 755 Add the concrete syntax model, which will give you information about the exact syntax a certain nodes matches. |
| 155 | |
| 156 | * 777 smaller improvements and fixes |
| 157 | |
Danny van Bruggen | adae33f | 2017-02-14 19:59:50 +0100 | [diff] [blame] | 158 | Version 3.1.0-beta.2 |
| 159 | ------------------ |
| 160 | This version is a beta because `TreeStructureVisitor` is not in its definite state yet. |
| 161 | |
| 162 | * 762 761 772 merge `javaparser-metamodel` and `javaparser-generator-utils` into `javaparser-core`. |
| 163 | * 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give different results than before. |
| 164 | * 755 `ConstructorDeclaration` and `MethodDeclaration` now share a parent: `CallableDeclaration` |
| 165 | * 687 759 773 769 768 767 765 759 smaller improvements and fixes |
| 166 | |
Danny van Bruggen | 23d5477 | 2017-02-05 16:21:16 +0100 | [diff] [blame] | 167 | Version 3.1.0-beta.1 |
Danny van Bruggen | 70f343e | 2017-01-28 14:07:25 +0100 | [diff] [blame] | 168 | ------------------ |
Danny van Bruggen | 23d5477 | 2017-02-05 16:21:16 +0100 | [diff] [blame] | 169 | This version is a beta because there are a lot of new features that may still change. |
| 170 | |
| 171 | This version needs a minor version increase because of a backwards compatability issue: |
| 172 | * 719 `getJavadoc`, `getJavadocComment` and `getComment` could return null. Our promise was to return `Optional`, so that is what they do now. |
Danny van Bruggen | 70f343e | 2017-01-28 14:07:25 +0100 | [diff] [blame] | 173 | |
| 174 | New: |
Danny van Bruggen | e6079d8 | 2017-02-05 16:50:01 +0100 | [diff] [blame] | 175 | * 658 718 736 737 we have created a metamodel. |
Danny van Bruggen | 23d5477 | 2017-02-05 16:21:16 +0100 | [diff] [blame] | 176 | It gives information about the structure of the various AST nodes, as if you are introspecting them. |
| 177 | You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel` |
Danny van Bruggen | e6079d8 | 2017-02-05 16:50:01 +0100 | [diff] [blame] | 178 | * 353 365 visitors are no longer hand made, they are now generated from the metamodel. This should make them 100% reliable. |
Danny van Bruggen | 23d5477 | 2017-02-05 16:21:16 +0100 | [diff] [blame] | 179 | Affected visitors are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`. |
| 180 | |
| 181 | If you want to generate your own visitors, you can use the `VisitorGenerator` class from `javaparser-core-generators` |
| 182 | |
| 183 | If you want to reuse the code generation utilities, look at module `javaparser-generator-utils` - there is a very useful `SourceRoot` class in there that takes away a lot of file management troubles. |
Danny van Bruggen | e6079d8 | 2017-02-05 16:50:01 +0100 | [diff] [blame] | 184 | * 538 735 `TreeStructureVisitor` has been added, which should be considered beta. |
| 185 | * 220 733 717 749 745 750 743 748 666 732 746 734 733 smaller improvements and fixes |
Danny van Bruggen | 70f343e | 2017-01-28 14:07:25 +0100 | [diff] [blame] | 186 | |
Danny van Bruggen | c5f6e9b | 2017-01-15 20:58:52 +0100 | [diff] [blame] | 187 | Version 3.0.1 |
| 188 | ------------------ |
| 189 | * 699 433 325 Javadoc can now be parsed |
| 190 | * 703 696 added NodeWithOptionalScope |
| 191 | * 702 FieldAccessExpr now implements NodeWithSimpleName, *which means that "field" has been renamed to "name"* |
| 192 | * 707 706 improve range of array types and levels |
| 193 | * 709 smaller improvements and fixes |
| 194 | |
Danny van Bruggen | 1804ea2 | 2017-01-07 23:06:22 +0100 | [diff] [blame] | 195 | Version 3.0.0 |
| 196 | ------------------ |
| 197 | * 695 697 689 680 693 691 682 690 677 679 688 684 683 smaller improvements and fixes |
| 198 | |
Danny van Bruggen | e11ed22 | 2016-12-24 22:25:49 +0100 | [diff] [blame] | 199 | Version 3.0.0-RC.4 |
| 200 | ------------------ |
| 201 | * 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt |
| 202 | * 347 665 every node now has some documentation |
| 203 | * 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration |
| 204 | * 659 The pretty printer can now take customized visitors |
| 205 | * 650 671 672 674 524 smaller improvements and fixes |
| 206 | |
Danny van Bruggen | fc9c4a9 | 2016-12-18 23:13:10 +0100 | [diff] [blame] | 207 | Version 3.0.0-RC.3 |
| 208 | ------------------ |
| 209 | * 639 622 632 657 656 652 653 647 648 645 194 643 630 624 628 627 626 625 623 cleanups, small fixes, and general housekeeping |
| 210 | |
Danny van Bruggen | dd5d4d0 | 2016-12-09 16:40:59 +0100 | [diff] [blame] | 211 | Version 3.0.0-RC.2 |
| 212 | ------------------ |
| 213 | * 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed |
| 214 | * 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name" |
| 215 | * 614 617 the list of tokens has been linearized and simplified |
| 216 | * 615 support for arrays has once more been changed. See [the issue](https://github.com/javaparser/javaparser/issues/592) |
| 217 | * 580 453 380 618 580 611 610 424 608 smaller improvements and fixes |
| 218 | |
Danny van Bruggen | 61aaeaf | 2016-12-01 18:37:11 +0100 | [diff] [blame] | 219 | Version 3.0.0-RC.1 |
| 220 | ------------------ |
| 221 | * 499 601 renames many fields to be more consistent |
| 222 | * 596 605 602 604 smaller improvements and fixes |
| 223 | |
Danny van Bruggen | 4737954 | 2016-11-27 16:54:33 +0100 | [diff] [blame] | 224 | Version 3.0.0-alpha.11 |
| 225 | ------------------ |
| 226 | * 547 595 Node.range is now using Optional instead of Range.UNKNOWN |
Danny van Bruggen | 6738e1c | 2016-11-28 19:46:45 +0100 | [diff] [blame] | 227 | * 584 588 548 585 bug fixes and improvements |
Danny van Bruggen | 4737954 | 2016-11-27 16:54:33 +0100 | [diff] [blame] | 228 | |
matozoid | f52d1ad | 2016-11-20 16:36:22 +0100 | [diff] [blame] | 229 | Version 3.0.0-alpha.10 |
| 230 | ------------------ |
| 231 | * 578 579 577 575 290 570 568 567 562 564 551 bug fixes and improvements |
| 232 | |
Danny van Bruggen | 02b3c5e | 2016-11-10 10:33:44 +0100 | [diff] [blame] | 233 | Version 3.0.0-alpha.9 |
| 234 | ------------------ |
| 235 | * 403 358 549 Make all names nodes: either SimpleName or Name. This makes every name in the AST visitable. NameExpr is now a wrapper to use SimpleName in an expression. |
matozoid | d2c9f43 | 2016-11-13 17:29:38 +0100 | [diff] [blame] | 236 | * 516 536 use Optional<> for return values. |
matozoid | 789ddfe | 2016-11-13 17:33:43 +0100 | [diff] [blame] | 237 | * 556 557 558 550 small improvements and fixes. |
| 238 | * 560 559 make nodes observable. |
Danny van Bruggen | 02b3c5e | 2016-11-10 10:33:44 +0100 | [diff] [blame] | 239 | |
matozoid | aa79a62 | 2016-11-06 14:13:37 +0100 | [diff] [blame] | 240 | Version 3.0.0-alpha.8 |
| 241 | ------------------ |
| 242 | * 344 529 turn DumpVisitor into an official PrettyPrinter |
| 243 | * 532 508 427 530 531 513 528 cleanups |
| 244 | |
matozoid | de10e89 | 2016-10-26 19:48:54 +0200 | [diff] [blame] | 245 | Version 3.0.0-alpha.7 |
| 246 | ------------------ |
matozoid | 57a1094 | 2016-10-30 21:14:28 +0100 | [diff] [blame] | 247 | * 515 roll back attempt at using Optional |
| 248 | * 522 504 make NodeList not a Node (restores parent/children behaviour to before alpha.4) |
| 249 | * 527 526 rename getChildrenNodes to getChildNodes |
| 250 | * 525 495 520 bug fix |
matozoid | de10e89 | 2016-10-26 19:48:54 +0200 | [diff] [blame] | 251 | |
| 252 | Version 3.0.0-alpha.6 |
| 253 | ------------------ |
| 254 | * 503 modified ImportDeclaration hierarchy to have getters for static and "asterisk" again |
| 255 | * 506 bug fix |
| 256 | |
matozoid | 9ac8048 | 2016-10-16 22:08:51 +0200 | [diff] [blame] | 257 | Version 3.0.0-alpha.5 |
| 258 | ------------------ |
| 259 | * 451 null is no longer allowed in the AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451) |
| 260 | * 501 421 420 316 use a special type of list for nodes: NodeList. [See last post in issue](https://github.com/javaparser/javaparser/issues/421) |
| 261 | |
matozoid | 93c5ac1 | 2016-10-09 22:03:29 +0200 | [diff] [blame] | 262 | Version 3.0.0-alpha.4 |
| 263 | ------------------ |
| 264 | * 463 471 nodes can now be removed easily |
| 265 | * 491 import handling changed. Instead of "ImportDeclaration", we now have the four types of import as described in the JLS. [See issue](https://github.com/javaparser/javaparser/pull/491) |
| 266 | * 452 355 474 494 various improvements |
| 267 | * 493 492 485 Simplify the JavaParser interface |
| 268 | |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 269 | Version 3.0.0-alpha.3 |
| 270 | ------------------ |
matozoid | 93c5ac1 | 2016-10-09 22:03:29 +0200 | [diff] [blame] | 271 | * 112 237 466 465 461 460 458 457 fundamentally changes how we deal with arrays. [It is explained in the last post here](https://github.com/javaparser/javaparser/issues/237) |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 272 | * 472 456 makes the "data" field on every node more structured. |
| 273 | * 477 468 refactor TypeArguments. You will find that TypeArguments is no longer a type, it is just a list in some nodes. |
| 274 | * 482 adds the "nodeTypes" packages to the osgi export. |
| 275 | * 479 476 makes all setters on nodes return this so they become chainable. |
| 276 | * 473 437 clean up CloneVisitor. |
matozoid | 53d288a | 2016-07-18 13:32:44 +0200 | [diff] [blame] | 277 | |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 278 | Version 3.0.0-alpha.2 |
| 279 | ------------------ |
| 280 | * 157 a new parser frontend, check https://github.com/javaparser/javaparser/pull/447 for explanations |
| 281 | * 435 more builder methods like 400 and 405 |
| 282 | * 111 440 443 444 445 446 bugs & cleanups |
matozoid | 53d288a | 2016-07-18 13:32:44 +0200 | [diff] [blame] | 283 | |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 284 | Version 3.0.0-alpha.1 |
| 285 | ------------------ |
| 286 | * 400 405 introduce many "builder" style methods for constructing code. Thanks DeepSnowNeeL! |
| 287 | * 409 remove ASTHelper (methods are now on specific Node subclasses) |
| 288 | * 414 JavaParser can now be instantiated and reused. InstanceJavaParser removed |
| 289 | * 418 417 411 408 bugs |
| 290 | * 367 420 407 402 various cleanups |
| 291 | |
| 292 | Version 2.5.1 |
matozoid | 53d288a | 2016-07-18 13:32:44 +0200 | [diff] [blame] | 293 | ------------- |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 294 | * 394 OSGi manifest added |
| 295 | * 391 fix ModifierVisitor NullPointerException bug |
| 296 | * 385 a few new parse methods |
| 297 | * 386 fix dumping an empty import (a single ; after the package declaration) |
matozoid | 53d288a | 2016-07-18 13:32:44 +0200 | [diff] [blame] | 298 | |
| 299 | Version 2.5.0 |
| 300 | ------------- |
| 301 | API breaking changes: |
| 302 | |
| 303 | * 191: moved TreeVisitor to visitor package |
| 304 | * 368, 162, 303, 302, 360: use correct type in some places. |
| 305 | * 371: code is now compiled with Java 8 |
| 306 | * 342, 331: ModifierVisitorAdapter detects and removes broken nodes |
| 307 | * 328, 270: upgrade JavaCC (use TokenMgrException now) |
| 308 | Other changes: |
| 309 | |
| 310 | * 297: enable access to tokens. |
| 311 | * 341, 361: node positions are now OO |
| 312 | * 211, 373: escaping of \n \r for string literals |
| 313 | * 336, 276, 141: JavaDoc support now works |
| 314 | * 337, 281: reorganize the stream reading code |
| 315 | * 343, 309, 332, 57: take advantage of common interfaces |
| 316 | * 329, 326, 327: deal with platform issues |
| 317 | * 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes |
| 318 | * 310, 311, 313, 301, 294: some code clean-ups |
Danny van Bruggen | 5f5c6cc | 2016-07-20 13:40:30 +0200 | [diff] [blame] | 319 | |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 320 | Version 2.4.0 |
Danny van Bruggen | 5f5c6cc | 2016-07-20 13:40:30 +0200 | [diff] [blame] | 321 | ------------- |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 322 | * several fixes in DumpVisitor for bugs due to lazy initialization |
| 323 | * make TypeDeclaration implements DocumentableNode directly |
| 324 | * TypedNode interface introduced |
| 325 | * introduce MultiBoundType |
| 326 | * refactored IntersectionType and UnionType |
| 327 | * refactored CatchClause |
| 328 | * parsing annotations in throws declarations |
| 329 | * parse orphan semicolons in import statements |
| 330 | * added PackageDeclaration.getPackageName |
| 331 | * solved issue with newlines in string literals |
| 332 | * fixed handling of UnknownType in EqualsVisitor |
| 333 | * improvements to CommentsParser |
| 334 | * removing old grammar |
matozoid | 1381847 | 2016-08-23 22:03:06 +0200 | [diff] [blame] | 335 | |
matozoid | 6ea2c52 | 2016-09-30 18:55:44 +0200 | [diff] [blame] | 336 | Version 2.3.0 |
| 337 | ------------- |
| 338 | * ClassOrInterfaceType implements NamedNode |
| 339 | * DumpVisitor can now be extended |
| 340 | * Improved documentation |
| 341 | * AST: lists are now lazy initialized |
matozoid | 8669cf4 | 2016-09-30 18:39:12 +0200 | [diff] [blame] | 342 | |
Danny van Bruggen | 27b3207 | 2017-02-19 23:27:37 +0100 | [diff] [blame] | 343 | Version 2.1.0 |
matozoid | eae6157 | 2016-09-30 18:57:34 +0200 | [diff] [blame] | 344 | ------------- |
| 345 | * Features |
| 346 | * [#75 performance improvement for `PositionUtils.sortByBeginPosition`](https://github.com/javaparser/javaparser/issues/75) |
| 347 | * [#64 In getDeclarationAsString parameter names should be optional](https://github.com/javaparser/javaparser/issues/64) |
| 348 | * Bugfixes |
| 349 | * [#79 Fix NPE in `ConstructorDeclaration.getDeclarationAsString`](https://github.com/javaparser/javaparser/pull/79) |
| 350 | * [#86 Add missing functions to ModifierVisitorAdapter](https://github.com/javaparser/javaparser/pull/86) |
| 351 | * [#82 set LambdaExpr as parent of its child nodes](https://github.com/javaparser/javaparser/issues/82) |
| 352 | * [#87 implement `setJavadoc` and `getJavadoc` at various classes](https://github.com/javaparser/javaparser/issues/87) |
| 353 | * [#96 Fixed encoding issue in `Javaparser.parse`](https://github.com/javaparser/javaparser/pull/96) |
| 354 | * [#85 Casting a lambda expression causes a parsing failure](https://github.com/javaparser/javaparser/issues/85) |
| 355 | * [#88 `MethodReferenceExpr` and `TypeExpr` don't set themselves as parents](https://github.com/javaparser/javaparser/issues/88) |
| 356 | * Internal |
| 357 | * [#89 CommentsParser.State contains unused fields](https://github.com/javaparser/javaparser/issues/89) |
| 358 | * Switched from drone.io to [Travis](https://travis-ci.org/javaparser/javaparser) |
| 359 | * [#105 Enforce compiling the library for a certain Java version](https://github.com/javaparser/javaparser/pull/105) |
| 360 | |
| 361 | [Code changes](https://github.com/javaparser/javaparser/compare/javaparser-parent-2.0.0...master) |
| 362 | |
| 363 | Version 2.0.0 |
| 364 | ------------- |
| 365 | * support Java 8 |
Danny van Bruggen | 27b3207 | 2017-02-19 23:27:37 +0100 | [diff] [blame] | 366 | |
| 367 | Version 1.0.8 (2010-01-17) |
| 368 | ------------- |
| 369 | * Fixed issues: |
| 370 | * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses |
| 371 | * Issue 21: Java 5 JavaParser compiled JARs |
| 372 | * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet |
| 373 | * Issue 27: Implement the "equal" method |
| 374 | * Issue 30: equals and hashCode methods |
| 375 | |
| 376 | Version 1.0.7 (2009-04-12) |
| 377 | ------------- |
| 378 | * Issue 19 fixed: |
| 379 | * Tests changed to run with junit 4 |
| 380 | |
| 381 | Version 1.0.6 (2009-01-11) |
| 382 | ------------- |
| 383 | * Issue 11 fixed: changed method get/setPakage to get/setPackage in the class CompilationUnit |
| 384 | * Created new visitor adapter to help AST modification: ModifierVisitorAdapter |
| 385 | * Changed visitor adapters to abstract |
| 386 | |
| 387 | Version 1.0.5 (2008-10-26) |
| 388 | ------------- |
| 389 | * Created simplified constructors in the nodes of the AST (without positional arguments) |
| 390 | * Created ASTHelper class with some helpful methods (more methods are still needed) |
| 391 | |
| 392 | Version 1.0.4 (2008-10-07) |
| 393 | ------------- |
| 394 | * Moved to javacc 4.1. |
| 395 | * The java_1_5.jj can be build alone without compilation errors |
| 396 | |
| 397 | Version 1.0.3 (2008-09-06) |
| 398 | ------------- |
| 399 | * Removed SuperMemberAccessExpr class, it was no longer used |
| 400 | * Removed the methods get/setTypeArgs() from ArrayCreationExpr, this node shouldn't have these methods. |
| 401 | * Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr |
| 402 | * The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class |
| 403 | |
| 404 | Version 1.0.2 (2008-07-20) |
| 405 | ------------- |
| 406 | * Issue fixed: Issue 1: Add support for editing AST nodes or create new ones |
| 407 | |
| 408 | Version 1.0.1 (2008-07-01) |
| 409 | ------------- |
| 410 | * Issue fixed: Issue 5: end line and end column equal to begin line and begin column |
| 411 | |
| 412 | Version 1.0.0 (2008-06-25) |
| 413 | ------------- |
| 414 | * Changed version numbering, starting version 1.0.0 |
| 415 | * Javadoc done for packages: |
| 416 | * japa.parser |
| 417 | * japa.parser.ast |
| 418 | * Corrected bug when parsing in multithread: |
| 419 | * JavaParser.setCacheParser(false) must be called before to use the parser concurrent |
| 420 | |
| 421 | 2008-06-19 |
| 422 | ------------- |
| 423 | * No code changes, added binary distribution to download page |
| 424 | |
| 425 | 2008-06-11 |
| 426 | ------------- |
| 427 | * Bug corrected: NPE in VoidVisitorAdapter |
| 428 | * http://code.google.com/p/javaparser/issues/detail?id=2 |
| 429 | |
| 430 | 2008-06-09 |
| 431 | ------------- |
| 432 | * Added Adapters for de visitors |
| 433 | |
| 434 | 2008-05-28 |
| 435 | ------------- |
| 436 | * This project now is published at Google Code: |
| 437 | * http://code.google.com/p/javaparser/ |
| 438 | |
| 439 | 2008-05-25 |
| 440 | ------------- |
| 441 | * Added support for comments and javadoc to the tree. |
| 442 | * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), accessible by the method getJavadoc(). |
| 443 | * All comments are stored in the CompilationUnit, accessible by the method getComments(). |
| 444 | |
| 445 | 2008-04-01 |
| 446 | ------------- |
| 447 | * Changed all nodes public attributes to be private and created getters to access them |
| 448 | * Changed the methods of the Node getLine e getColumn to getBeginLine and getBeginColumn |
| 449 | * Added the methods getEndLine and getEndColumn to the Node class (works only in the BlockNode) |
| 450 | |
| 451 | 2007-12-22 |
| 452 | ------------- |
| 453 | * Corrected ConditionalExpression bug |
| 454 | |
| 455 | 2007-10-21 |
| 456 | ------------- |
| 457 | * Added LGPL License |
| 458 | |
| 459 | 2007-10-21 |
| 460 | ------------- |
| 461 | * Bugs corrected: |
| 462 | * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration |
| 463 | * Parameterized anonymous constructor invocation |
| 464 | * Explicit constructor invotation Type Arguments |
| 465 | * ctrl+z ("\u001A") ar end of compilation unit |
| 466 | |
| 467 | 2007-10-09 |
| 468 | ------------- |
| 469 | * EnumConstantDeclaration annotation support corrected |
| 470 | * Parssing Java Unicode escape characters suport added |
| 471 | |
| 472 | 2007-10-03 |
| 473 | ------------- |
| 474 | * Bug corrected: "MotifComboPopup.this.super()" statement was generating parser error |
| 475 | |
| 476 | 2007-10-01 |
| 477 | ------------- |
| 478 | * Bug corrected: Casting signed primitive values |
| 479 | ``` |
| 480 | double d = (double) -1; |
| 481 | ^ |
| 482 | ``` |
| 483 | 2007-08-06 |
| 484 | ------------- |
| 485 | * Bug with the single line comments in the final of the unit corrected |
| 486 | |
| 487 | 2007-07-31 |
| 488 | ------------- |
| 489 | * Fixed the bug with the following expression: `Class c = (int.class);` |
| 490 | |
| 491 | 2007-06-26 |
| 492 | ------------- |
| 493 | * Bug fixes from Leon Poyyayil work |
| 494 | * suport for hex floating point |
| 495 | * unicode digits in indentifier |
| 496 | * MemberValueArrayInitializer |
| 497 | |
| 498 | 2007-03-09 |
| 499 | ------------- |
| 500 | * Long and Integer literal MIN_VALUE bug |
| 501 | |
| 502 | 2007-02-24 |
| 503 | ------------- |
| 504 | * '\0' bug fixed |
| 505 | |
| 506 | 2007-02-01 |
| 507 | ------------- |
| 508 | * Many bug fixes |
| 509 | * Added line/column to nodes |