blob: df4720d7348f8c591678573785fcb2094d5cdbfe [file] [log] [blame] [view]
Danny van Bruggen659c8272018-02-04 20:15:22 +01001Version 3.5.13
2------------------
3[issues resolved](https://github.com/javaparser/javaparser/milestone/76?closed=1)
4* The Javadoc parser has received a lot of attention.
5
Danny van Bruggen3d6770e2018-01-28 21:05:19 +01006Version 3.5.12
7------------------
8[issues resolved](https://github.com/javaparser/javaparser/milestone/75?closed=1)
9* Thanks to un0btanium for fixing the readme file!
10
Danny van Bruggen83f75672018-01-21 13:02:01 +010011Version 3.5.11
12------------------
13[issues resolved](https://github.com/javaparser/javaparser/milestone/74?closed=1)
14* BREAKING: `AssignExpr.Operator.AND` is now `AssignExpr.Operator.BINARY_AND`.
15* BREAKING: `AssignExpr.Operator.OR` is now `AssignExpr.Operator.BINARY_OR`.
16* `getPrimaryTypeName` and `getPrimaryType` give access to the type that has the same name as the file it came from.
17* Enums will now get their constants aligned vertically if there are more than five.
18* You can now convert between `AssignExpr.Operator` and `AssignExpr.Operator` if you like.
19
Danny van Bruggen304f6f92018-01-12 21:51:08 +010020Version 3.5.10
21------------------
22[issues resolved](https://github.com/javaparser/javaparser/milestone/73?closed=1)
23* JavaSymbolSolver is now in the same project as JavaParser, meaning they get released together from now on.
24* LexicalPreservingPrinter has had a big speed optimization.
25
Danny van Bruggenfde26512018-01-07 19:11:59 +010026Version 3.5.9
27------------------
28[issues resolved](https://github.com/javaparser/javaparser/milestone/72?closed=1)
29* BREAKING: the very confusing constructor `NodeList(Node)` (which sets the parent) was removed.
30* To avoid using the int type for token kinds, use the new `JavaToken.Kind` enum.
31It can convert to and from the int kind.
32
Danny van Bruggenebd41f42017-12-31 11:33:30 +010033Version 3.5.8
34------------------
35[issues resolved](https://github.com/javaparser/javaparser/milestone/71?closed=1)
36* the module name is now set to com.github.javaparser.core
37
Danny van Bruggen1bbc7842017-12-17 20:26:18 +010038Version 3.5.7
39------------------
40[issues resolved](https://github.com/javaparser/javaparser/milestone/70?closed=1)
41
Danny van Bruggendfaa93e2017-12-10 16:51:43 +010042Version 3.5.6
43------------------
44[issues resolved](https://github.com/javaparser/javaparser/milestone/69?closed=1)
45* `toSomeType()` methods have been added for many types that give more functional access to a subtype.
46* BETA: the below work on Java Symbol Solver is still ongoing.
47
Danny van Bruggen9e7d0cf2017-12-03 18:55:13 +010048Version 3.5.5
49------------------
50[issues resolved](https://github.com/javaparser/javaparser/milestone/68?closed=1)
51* SourceRoot is now silent by default - look at the Log class if you want to change that.
52* BETA: the below work on Java Symbol Solver is still ongoing.
53
Danny van Bruggen0a42c012017-11-20 12:43:12 +010054Version 3.5.4
55------------------
56[issues resolved](https://github.com/javaparser/javaparser/milestone/67?closed=1)
57* BETA: the below work on Java Symbol Solver is still ongoing.
58
Danny van Bruggen44137802017-11-12 20:06:19 +010059Version 3.5.3
60------------------
61[issues resolved](https://github.com/javaparser/javaparser/milestone/66?closed=1)
62* Unicode escapes (`\u1234`) are now retained in the AST,
63 but they are now only allowed in comments, string and character literals, and identifiers.
64* BETA: the below work on Java Symbol Solver is still ongoing.
65
Danny van Bruggenaeb244f2017-11-05 18:35:58 +010066Version 3.5.2
67------------------
68[issues resolved](https://github.com/javaparser/javaparser/milestone/65?closed=1)
69* The pretty printer now cleans up Javadoc comments.
70* BETA: the below work on Java Symbol Solver is still ongoing.
71
Danny van Bruggenc03da022017-10-29 21:05:26 +010072Version 3.5.1
73------------------
74[issues resolved](https://github.com/javaparser/javaparser/milestone/64?closed=1)
75* BETA: the below work on Java Symbol Solver is still ongoing.
76
Danny van Bruggenecb576a2017-10-22 22:16:30 +020077Version 3.5.0
78------------------
79[issues resolved](https://github.com/javaparser/javaparser/milestone/63?closed=1)
80* A functional visitor API has been added. See [PR 1195](https://github.com/javaparser/javaparser/pull/1195) for now.
81* Build is working again on Windows thanks to Leonardo Herrera.
82* The pretty printer now has an option to order imports, also thanks to Leonardo Herrera.
83* Receiver parameters are now well-supported instead of being a hack. See [issue 1194](https://github.com/javaparser/javaparser/pull/1194) for a description.
84* BETA: the below work on Java Symbol Solver is still ongoing.
85
Danny van Bruggenab581fe2017-10-15 19:29:15 +020086Version 3.4.4
87------------------
88[issues resolved](https://github.com/javaparser/javaparser/milestone/62?closed=1)
89* BETA: the below work on Java Symbol Solver is still ongoing.
90
Danny van Bruggene7ec30a2017-10-08 14:05:18 +020091Version 3.4.3
92------------------
93[issues resolved](https://github.com/javaparser/javaparser/milestone/61?closed=1)
94* BETA: we're still doing work to integrate parts of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to simplify its API.
95* `VisitorMap` is joined by `VisitorSet` and `VisitorList`,
96for when you want to store `Node`s in collection but don't want its default equals/hascode behaviour
97
Danny van Bruggen0ec9ca52017-10-01 21:40:02 +020098Version 3.4.2
99------------------
100[issues resolved](https://github.com/javaparser/javaparser/milestone/60?closed=1)
101* BETA: we're doing work to integrate parts of [Java Symbol Solver](https://github.com/javaparser/javasymbolsolver) to simplify its API.
102* JDK 9 will compile JavaParser now.
103* [An official sample Maven setup](https://github.com/javaparser/javaparser-maven-sample) was added.
104
Danny van Bruggendf3995f2017-09-24 21:40:17 +0200105Version 3.4.1
106------------------
107[issues resolved](https://github.com/javaparser/javaparser/milestone/59?closed=1)
108* Two visitors were added: `NoCommentEqualsVisitor` and `NoCommentHashCodeVisitor` -
109as the name implies you can use these to compare nodes without considering comments.
110Thanks Ryan Beckett!
111* `isSomeType()` methods have been added for many types that help avoid `instanceof`.
112* `asSomeType()` methods have been added for many types that help avoid casting to that type.
113* `ifSomeType()` methods have been added for many types, giving a nice functional way of doing if-is-type-then-cast-to-type-then-use.
114* The `LexicalPreservingPrinter` had its API changed a little: setup and printing are now separate things,
115so you don't have to drag an instance of `LexicalPreservingPrinter` through your code anymore.
116* `traverseScope` was added to all nodes with a scope, so you can travel through the scope without tripping over (non-)optionality.
117
118
Danny van Bruggen0ea4d492017-09-17 19:56:00 +0200119Version 3.4.0
120------------------
121[issues resolved](https://github.com/javaparser/javaparser/milestone/58?closed=1)
122* BREAKING: We missed a Java 9 feature which is now on board: try with resources can now refer to a resource declared outside of the statement.
123This means that the node type you get for those resources is now `Expression` instead of `VariableDeclarationExpr`.
124For Java 8 and below you can simply cast it to `VariableDeclarationExpr` again.
125See also the Javadoc for `TryStmt`.
126* You can now inspect the AST by exporting it to XML, JSON, YAML, or a Graphviz's dot diagram, thanks to Ryan Beckett!
127* `GenericVisitorWithDefaults` and `VoidVisitorWithDefaults` were added which function like empty visitors,
128but all the visit methods call a default method by default.
129* Annotation support was cleaned up, adding some obscure locations where you can have annotations.
130* `EnumDeclaration` regained its constructor builder methods. They were accidentally lost around 3.2.2.
Danny van Bruggen06ccb382017-09-17 20:18:26 +0200131* `ArrayType` now has an `origin` field which indicates in which position the array brackets were found.
Danny van Bruggen0ea4d492017-09-17 19:56:00 +0200132
Danny van Bruggenac425492017-09-10 22:46:41 +0200133Version 3.3.5
134------------------
135[issues resolved](https://github.com/javaparser/javaparser/milestone/57?closed=1)
136
Danny van Bruggenc2f83d12017-09-03 19:24:49 +0200137Version 3.3.4
138------------------
139[issues resolved](https://github.com/javaparser/javaparser/milestone/56?closed=1)
140* `SourceZip` has been added.
141Use it to read source code from jars or zip files.
142Thank you @ryan-beckett !
143* JavaCC was upgraded to 7.0.2
144* A new option for the pretty printer was added.
145You can now wrap-and-column-align parameters of method calls.
146Thank you @tarilabs !
147
Danny van Bruggen0962cf82017-08-27 20:20:12 +0200148Version 3.3.3
149------------------
150[issues resolved](https://github.com/javaparser/javaparser/milestone/55?closed=1)
151* Parsing a partial java file (like an expression or statement) no longer ignores trailing code.
152* New memory saving option: turn off token list.
153
Danny van Bruggenb20badc2017-08-20 23:08:26 +0200154Version 3.3.2
155------------------
156[issues resolved](https://github.com/javaparser/javaparser/milestone/54?closed=1)
Sebastian Kürtena6cbccd2017-08-25 11:14:35 +0200157* `VisitorMap` lets you override hashcode/equals for nodes when used as a key for a map.
Danny van Bruggenb20badc2017-08-20 23:08:26 +0200158
Danny van Bruggene40e4e22017-08-13 22:26:18 +0200159Version 3.3.1
160------------------
161[issues resolved](https://github.com/javaparser/javaparser/milestone/53?closed=1)
162* The token list is now mutable - see methods on `JavaToken`.
163This caused mild breakage - some fields have become `Optional`.
164
Danny van Bruggen3cd1be02017-07-26 19:31:35 +0200165Version 3.3.0
166------------------
167[issues resolved](https://github.com/javaparser/javaparser/milestone/52?closed=1)
168* Breaking: `TryStmt::tryBlock` and `EnclosedExpr::inner` were optional for no good reason. Now they are required.
169* You can now ask a `JavaToken` for its category, which is useful for examining the token list or doing syntax highlighting or so.
170* `enum` and `strictfp` can now be used as identifiers on lower Java versions.
171
Danny van Bruggen5e6d7292017-07-16 22:19:10 +0200172Version 3.2.12
173------------------
174[issues resolved](https://github.com/javaparser/javaparser/milestone/51?closed=1)
175
Danny van Bruggen969b7f62017-07-10 21:03:41 +0200176Version 3.2.11
177------------------
178[issues resolved](https://github.com/javaparser/javaparser/milestone/50?closed=1)
179* We're up to date with the latest Java 9 module system again.
180
Danny van Bruggen3d195982017-07-05 12:02:09 +0200181Version 3.2.10
Danny van Bruggenb5b70ee2017-07-02 20:36:42 +0200182------------------
183[issues resolved](https://github.com/javaparser/javaparser/milestone/49?closed=1)
184* `Node.replace(old, new)` was added, including property-specific `X.replaceY(newY)` methods
185
Danny van Bruggen3d195982017-07-05 12:02:09 +0200186Version 3.2.9
187------------------
188Scrapped due to release problem.
189
Danny van Bruggen1fb7c9d2017-06-18 18:10:59 +0200190Version 3.2.8
191------------------
192[issues resolved](https://github.com/javaparser/javaparser/milestone/48?closed=1)
193* Added `isInnerClass()` that checks if a `ClassOrInterfaceDeclaration` is an inner class (note: this is different from a nested class!)
194* @ryan-beckett contributed a huge [Eclipse setup guide](https://github.com/javaparser/javaparser/wiki/Eclipse-Project-Setup-Guide)
195
Danny van Bruggenc7f87802017-06-11 15:57:27 +0200196Version 3.2.7
197------------------
198[issues resolved](https://github.com/javaparser/javaparser/milestone/47?closed=1)
199* We now recover from some parse errors! [Here is an article](https://matozoid.github.io/2017/06/11/parse-error-recovery.html)
200
Danny van Bruggen9250ffa2017-06-04 20:50:37 +0200201Version 3.2.6
202------------------
203[issues resolved](https://github.com/javaparser/javaparser/milestone/46?closed=1)
204* `EmptyMemberDeclaration` is gone!
205It was deprecated for a while because it it was in the AST, but doesn't have any meaning in a Java program.
206`EmptyStmt` was also deprecated, but that has been reverted.
207This node *does* have meaning.
208
Danny van Bruggenee5691c2017-05-22 19:47:13 +0200209Version 3.2.5
210------------------
211[issues resolved](https://github.com/javaparser/javaparser/milestone/45?closed=1)
212* `NodeWithCondition` was added on all nodes containing a condition.
213* Lots of work on improving lexical preservation.
214* If a file was parsed from a file system, you can now get path information etc. from `CompilationUnit`
215* API BREAKING: every node now points to its start and end token.
216Some of the API has started returning `TokenRange` instead of `Range` - you can call `toRange` to get the old object type.
217We may still change the naming of some of this code in the following month.
218
Danny van Bruggen5201adc2017-05-14 14:00:56 +0200219Version 3.2.4
220------------------
221New style changelog, no more issue numbers, but a link:
222[issues resolved](https://github.com/javaparser/javaparser/milestone/44?closed=1)
223and any notable changes:
224* the new method `Node.removeForced()` by removing it, or removing the first parent that is optional.
225This is different from `Node.remove()`, `remove()` only tries to remove the node from the parent and fails if it can't.
226* `FieldAccessExpr.scope` is now a required property.
227You might find some `get()`s in your code that are no longer necessary.
228* `ReferenceType` no longer has a type parameter, so every `ReferenceType<?>` can be replaced by `ReferenceType` now.
229
Danny van Bruggen9c513212017-04-30 22:15:44 +0200230Version 3.2.3
231------------------
232* 907 906 905 903 911 910 909 908 smaller improvements and fixes
233
Danny van Bruggendc8077a2017-04-23 12:04:03 +0200234Version 3.2.2
235------------------
236Beta: `TreeStructureVisitor`.
237
238* 770 902 904 901 smaller improvements and fixes
239
Danny van Bruggen28cf0be2017-04-16 15:05:10 +0200240Version 3.2.1
241------------------
242Beta: `TreeStructureVisitor`.
243
244* Maven dependencies were updated to their latest versions
245* 890 the concept of "method signature" now exists in JavaParser
246* 896 891 889 887 882 789 smaller improvements and fixes
247
Danny van Bruggen7a3b9602017-04-02 21:39:40 +0200248Version 3.2.0
249------------------
250The lexical preservation code is stable!
251
252Beta: `TreeStructureVisitor`.
253
254* 885 884 879 878 smaller improvements and fixes
255
Danny van Bruggencadeeb52017-03-26 20:40:56 +0200256Version 3.1.4
257------------------
258This is the first version to parse Java 9.
259
260Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
261
262* 872 873 874 787 Remaining Java 9 work.
263
Danny van Bruggen64dd2802017-03-19 13:52:35 +0100264Version 3.1.3
265------------------
266Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
267
268A start has been made on source level support. The default level is Java 8.
269It can be set to Java 9 like this for a parser *instance*:
270```java
271private final JavaParser parser = new JavaParser(new ParserConfiguration().setValidator(new Java9Validator()));
272```
273and like this for the static parse methods:
274```java
275JavaParser.getStaticConfiguration().setValidator(new Java9Validator());
276```
277
278* 862 552 "_" is an illegal identifier on source level 9.
279* 869 867 109 855 857 smaller improvements and fixes
280
Danny van Bruggen79776b72017-03-11 15:07:40 +0100281Version 3.1.2
282------------------
283Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
284
285* 594 849 831 a validation framework was introduced to inform about problems in the AST without needing to change the grammar,
286and without requiring parsing code.
287It is open for extension by users.
288* 852 853 826 832 846 839 smaller improvements and fixes
289
Danny van Bruggenf50a5512017-03-04 18:14:46 +0100290Version 3.1.1
291------------------
292Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
293
294* 654 124 lexical preservation (printing source code with the same formatting it had when parsing) has been added.
295 Thank you @ftomassetti for a lot of work!
296* 554 800 first (big) step towards Java 9 support: JavaParser can read project Jigsaw module definitions.
297* 795 786 751 extend the TreeVisitor with more traversal options. Thanks @ryan-beckett!
298* 791 `GenericListVisitorAdapter` has been added which collects its results in a list. Thanks @Gottox!
299* 815 798 797 813 clean up Problem text
300* 819 818 817 816 441 809 808 807 fix various absurd annotation related issues.
301* 777 805 802 796 790 792 793 781 784 785 783 782 779 357 799 763 smaller improvements and fixes
302
Danny van Bruggen076d3ee2017-02-19 22:56:24 +0100303Version 3.1.0
304------------------
Danny van Bruggenf50a5512017-03-04 18:14:46 +0100305Beta: `TreeStructureVisitor` and `ConcreteSyntaxModel`.
Danny van Bruggen076d3ee2017-02-19 22:56:24 +0100306
307* 705 755 Add the concrete syntax model, which will give you information about the exact syntax a certain nodes matches.
308
309* 777 smaller improvements and fixes
310
Danny van Bruggenadae33f2017-02-14 19:59:50 +0100311Version 3.1.0-beta.2
312------------------
313This version is a beta because `TreeStructureVisitor` is not in its definite state yet.
314
315* 762 761 772 merge `javaparser-metamodel` and `javaparser-generator-utils` into `javaparser-core`.
316* 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give different results than before.
317* 755 `ConstructorDeclaration` and `MethodDeclaration` now share a parent: `CallableDeclaration`
318* 687 759 773 769 768 767 765 759 smaller improvements and fixes
319
Danny van Bruggen23d54772017-02-05 16:21:16 +0100320Version 3.1.0-beta.1
Danny van Bruggen70f343e2017-01-28 14:07:25 +0100321------------------
Danny van Bruggen23d54772017-02-05 16:21:16 +0100322This version is a beta because there are a lot of new features that may still change.
323
324This version needs a minor version increase because of a backwards compatability issue:
325* 719 `getJavadoc`, `getJavadocComment` and `getComment` could return null. Our promise was to return `Optional`, so that is what they do now.
Danny van Bruggen70f343e2017-01-28 14:07:25 +0100326
327New:
Danny van Bruggene6079d82017-02-05 16:50:01 +0100328* 658 718 736 737 we have created a metamodel.
Danny van Bruggen23d54772017-02-05 16:21:16 +0100329It gives information about the structure of the various AST nodes, as if you are introspecting them.
330You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel`
Danny van Bruggene6079d82017-02-05 16:50:01 +0100331* 353 365 visitors are no longer hand made, they are now generated from the metamodel. This should make them 100% reliable.
Danny van Bruggen23d54772017-02-05 16:21:16 +0100332Affected visitors are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`.
333
334If you want to generate your own visitors, you can use the `VisitorGenerator` class from `javaparser-core-generators`
335
336If 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 Bruggene6079d82017-02-05 16:50:01 +0100337* 538 735 `TreeStructureVisitor` has been added, which should be considered beta.
338* 220 733 717 749 745 750 743 748 666 732 746 734 733 smaller improvements and fixes
Danny van Bruggen70f343e2017-01-28 14:07:25 +0100339
Danny van Bruggenc5f6e9b2017-01-15 20:58:52 +0100340Version 3.0.1
341------------------
342* 699 433 325 Javadoc can now be parsed
343* 703 696 added NodeWithOptionalScope
344* 702 FieldAccessExpr now implements NodeWithSimpleName, *which means that "field" has been renamed to "name"*
345* 707 706 improve range of array types and levels
346* 709 smaller improvements and fixes
347
Danny van Bruggen1804ea22017-01-07 23:06:22 +0100348Version 3.0.0
349------------------
350* 695 697 689 680 693 691 682 690 677 679 688 684 683 smaller improvements and fixes
351
Danny van Bruggene11ed222016-12-24 22:25:49 +0100352Version 3.0.0-RC.4
353------------------
354* 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt
355* 347 665 every node now has some documentation
356* 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration
357* 659 The pretty printer can now take customized visitors
358* 650 671 672 674 524 smaller improvements and fixes
359
Danny van Bruggenfc9c4a92016-12-18 23:13:10 +0100360Version 3.0.0-RC.3
361------------------
362* 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
363
Danny van Bruggendd5d4d02016-12-09 16:40:59 +0100364Version 3.0.0-RC.2
365------------------
366* 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed
367* 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name"
368* 614 617 the list of tokens has been linearized and simplified
369* 615 support for arrays has once more been changed. See [the issue](https://github.com/javaparser/javaparser/issues/592)
370* 580 453 380 618 580 611 610 424 608 smaller improvements and fixes
371
Danny van Bruggen61aaeaf2016-12-01 18:37:11 +0100372Version 3.0.0-RC.1
373------------------
374* 499 601 renames many fields to be more consistent
375* 596 605 602 604 smaller improvements and fixes
376
Danny van Bruggen47379542016-11-27 16:54:33 +0100377Version 3.0.0-alpha.11
378------------------
379* 547 595 Node.range is now using Optional instead of Range.UNKNOWN
Danny van Bruggen6738e1c2016-11-28 19:46:45 +0100380* 584 588 548 585 bug fixes and improvements
Danny van Bruggen47379542016-11-27 16:54:33 +0100381
matozoidf52d1ad2016-11-20 16:36:22 +0100382Version 3.0.0-alpha.10
383------------------
384* 578 579 577 575 290 570 568 567 562 564 551 bug fixes and improvements
385
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +0100386Version 3.0.0-alpha.9
387------------------
388* 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.
matozoidd2c9f432016-11-13 17:29:38 +0100389* 516 536 use Optional<> for return values.
matozoid789ddfe2016-11-13 17:33:43 +0100390* 556 557 558 550 small improvements and fixes.
391* 560 559 make nodes observable.
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +0100392
matozoidaa79a622016-11-06 14:13:37 +0100393Version 3.0.0-alpha.8
394------------------
395* 344 529 turn DumpVisitor into an official PrettyPrinter
396* 532 508 427 530 531 513 528 cleanups
397
matozoidde10e892016-10-26 19:48:54 +0200398Version 3.0.0-alpha.7
399------------------
matozoid57a10942016-10-30 21:14:28 +0100400* 515 roll back attempt at using Optional
401* 522 504 make NodeList not a Node (restores parent/children behaviour to before alpha.4)
402* 527 526 rename getChildrenNodes to getChildNodes
403* 525 495 520 bug fix
matozoidde10e892016-10-26 19:48:54 +0200404
405Version 3.0.0-alpha.6
406------------------
407* 503 modified ImportDeclaration hierarchy to have getters for static and "asterisk" again
408* 506 bug fix
409
matozoid9ac80482016-10-16 22:08:51 +0200410Version 3.0.0-alpha.5
411------------------
412* 451 null is no longer allowed in the AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451)
413* 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)
414
matozoid93c5ac12016-10-09 22:03:29 +0200415Version 3.0.0-alpha.4
416------------------
417* 463 471 nodes can now be removed easily
418* 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)
419* 452 355 474 494 various improvements
420* 493 492 485 Simplify the JavaParser interface
421
matozoid6ea2c522016-09-30 18:55:44 +0200422Version 3.0.0-alpha.3
423------------------
matozoid93c5ac12016-10-09 22:03:29 +0200424* 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)
matozoid6ea2c522016-09-30 18:55:44 +0200425* 472 456 makes the "data" field on every node more structured.
426* 477 468 refactor TypeArguments. You will find that TypeArguments is no longer a type, it is just a list in some nodes.
427* 482 adds the "nodeTypes" packages to the osgi export.
428* 479 476 makes all setters on nodes return this so they become chainable.
429* 473 437 clean up CloneVisitor.
matozoid53d288a2016-07-18 13:32:44 +0200430
matozoid6ea2c522016-09-30 18:55:44 +0200431Version 3.0.0-alpha.2
432------------------
433* 157 a new parser frontend, check https://github.com/javaparser/javaparser/pull/447 for explanations
434* 435 more builder methods like 400 and 405
435* 111 440 443 444 445 446 bugs & cleanups
matozoid53d288a2016-07-18 13:32:44 +0200436
matozoid6ea2c522016-09-30 18:55:44 +0200437Version 3.0.0-alpha.1
438------------------
439* 400 405 introduce many "builder" style methods for constructing code. Thanks DeepSnowNeeL!
440* 409 remove ASTHelper (methods are now on specific Node subclasses)
441* 414 JavaParser can now be instantiated and reused. InstanceJavaParser removed
442* 418 417 411 408 bugs
443* 367 420 407 402 various cleanups
444
445Version 2.5.1
matozoid53d288a2016-07-18 13:32:44 +0200446-------------
matozoid6ea2c522016-09-30 18:55:44 +0200447* 394 OSGi manifest added
448* 391 fix ModifierVisitor NullPointerException bug
449* 385 a few new parse methods
450* 386 fix dumping an empty import (a single ; after the package declaration)
matozoid53d288a2016-07-18 13:32:44 +0200451
452Version 2.5.0
453-------------
454API breaking changes:
455
456* 191: moved TreeVisitor to visitor package
457* 368, 162, 303, 302, 360: use correct type in some places.
458* 371: code is now compiled with Java 8
459* 342, 331: ModifierVisitorAdapter detects and removes broken nodes
460* 328, 270: upgrade JavaCC (use TokenMgrException now)
461Other changes:
462
463* 297: enable access to tokens.
464* 341, 361: node positions are now OO
465* 211, 373: escaping of \n \r for string literals
466* 336, 276, 141: JavaDoc support now works
467* 337, 281: reorganize the stream reading code
468* 343, 309, 332, 57: take advantage of common interfaces
469* 329, 326, 327: deal with platform issues
470* 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes
471* 310, 311, 313, 301, 294: some code clean-ups
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200472
matozoid6ea2c522016-09-30 18:55:44 +0200473Version 2.4.0
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200474-------------
matozoid6ea2c522016-09-30 18:55:44 +0200475* several fixes in DumpVisitor for bugs due to lazy initialization
476* make TypeDeclaration implements DocumentableNode directly
477* TypedNode interface introduced
478* introduce MultiBoundType
479* refactored IntersectionType and UnionType
480* refactored CatchClause
481* parsing annotations in throws declarations
482* parse orphan semicolons in import statements
483* added PackageDeclaration.getPackageName
484* solved issue with newlines in string literals
485* fixed handling of UnknownType in EqualsVisitor
486* improvements to CommentsParser
487* removing old grammar
matozoid13818472016-08-23 22:03:06 +0200488
matozoid6ea2c522016-09-30 18:55:44 +0200489Version 2.3.0
490-------------
491* ClassOrInterfaceType implements NamedNode
492* DumpVisitor can now be extended
493* Improved documentation
494* AST: lists are now lazy initialized
matozoid8669cf42016-09-30 18:39:12 +0200495
Danny van Bruggen27b32072017-02-19 23:27:37 +0100496Version 2.1.0
matozoideae61572016-09-30 18:57:34 +0200497-------------
498* Features
499 * [#75 performance improvement for `PositionUtils.sortByBeginPosition`](https://github.com/javaparser/javaparser/issues/75)
500 * [#64 In getDeclarationAsString parameter names should be optional](https://github.com/javaparser/javaparser/issues/64)
501* Bugfixes
502 * [#79 Fix NPE in `ConstructorDeclaration.getDeclarationAsString`](https://github.com/javaparser/javaparser/pull/79)
503 * [#86 Add missing functions to ModifierVisitorAdapter](https://github.com/javaparser/javaparser/pull/86)
504 * [#82 set LambdaExpr as parent of its child nodes](https://github.com/javaparser/javaparser/issues/82)
505 * [#87 implement `setJavadoc` and `getJavadoc` at various classes](https://github.com/javaparser/javaparser/issues/87)
506 * [#96 Fixed encoding issue in `Javaparser.parse`](https://github.com/javaparser/javaparser/pull/96)
507 * [#85 Casting a lambda expression causes a parsing failure](https://github.com/javaparser/javaparser/issues/85)
508 * [#88 `MethodReferenceExpr` and `TypeExpr` don't set themselves as parents](https://github.com/javaparser/javaparser/issues/88)
509* Internal
510 * [#89 CommentsParser.State contains unused fields](https://github.com/javaparser/javaparser/issues/89)
511 * Switched from drone.io to [Travis](https://travis-ci.org/javaparser/javaparser)
512 * [#105 Enforce compiling the library for a certain Java version](https://github.com/javaparser/javaparser/pull/105)
513
514[Code changes](https://github.com/javaparser/javaparser/compare/javaparser-parent-2.0.0...master)
515
516Version 2.0.0
517-------------
518* support Java 8
Danny van Bruggen27b32072017-02-19 23:27:37 +0100519
520Version 1.0.8 (2010-01-17)
521-------------
522* Fixed issues:
523 * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses
524 * Issue 21: Java 5 JavaParser compiled JARs
525 * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet
526 * Issue 27: Implement the "equal" method
527 * Issue 30: equals and hashCode methods
528
529Version 1.0.7 (2009-04-12)
530-------------
531* Issue 19 fixed:
532* Tests changed to run with junit 4
533
534Version 1.0.6 (2009-01-11)
535-------------
536* Issue 11 fixed: changed method get/setPakage to get/setPackage in the class CompilationUnit
537* Created new visitor adapter to help AST modification: ModifierVisitorAdapter
538* Changed visitor adapters to abstract
539
540Version 1.0.5 (2008-10-26)
541-------------
542* Created simplified constructors in the nodes of the AST (without positional arguments)
543* Created ASTHelper class with some helpful methods (more methods are still needed)
544
545Version 1.0.4 (2008-10-07)
546-------------
547* Moved to javacc 4.1.
548* The java_1_5.jj can be build alone without compilation errors
549
550Version 1.0.3 (2008-09-06)
551-------------
552* Removed SuperMemberAccessExpr class, it was no longer used
553* Removed the methods get/setTypeArgs() from ArrayCreationExpr, this node shouldn't have these methods.
554* Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr
555* The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class
556
557Version 1.0.2 (2008-07-20)
558-------------
559* Issue fixed: Issue 1: Add support for editing AST nodes or create new ones
560
561Version 1.0.1 (2008-07-01)
562-------------
563* Issue fixed: Issue 5: end line and end column equal to begin line and begin column
564
565Version 1.0.0 (2008-06-25)
566-------------
567* Changed version numbering, starting version 1.0.0
568* Javadoc done for packages:
569 * japa.parser
570 * japa.parser.ast
571* Corrected bug when parsing in multithread:
572 * JavaParser.setCacheParser(false) must be called before to use the parser concurrent
573
5742008-06-19
575-------------
576* No code changes, added binary distribution to download page
577
5782008-06-11
579-------------
580* Bug corrected: NPE in VoidVisitorAdapter
581 * http://code.google.com/p/javaparser/issues/detail?id=2
582
5832008-06-09
584-------------
585* Added Adapters for de visitors
586
5872008-05-28
588-------------
589* This project now is published at Google Code:
590 * http://code.google.com/p/javaparser/
591
5922008-05-25
593-------------
594* Added support for comments and javadoc to the tree.
595 * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), accessible by the method getJavadoc().
596 * All comments are stored in the CompilationUnit, accessible by the method getComments().
597
5982008-04-01
599-------------
600* Changed all nodes public attributes to be private and created getters to access them
601* Changed the methods of the Node getLine e getColumn to getBeginLine and getBeginColumn
602* Added the methods getEndLine and getEndColumn to the Node class (works only in the BlockNode)
603
6042007-12-22
605-------------
606* Corrected ConditionalExpression bug
607
6082007-10-21
609-------------
610* Added LGPL License
611
6122007-10-21
613-------------
614* Bugs corrected:
615 * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration
616 * Parameterized anonymous constructor invocation
617 * Explicit constructor invotation Type Arguments
618 * ctrl+z ("\u001A") ar end of compilation unit
619
6202007-10-09
621-------------
622* EnumConstantDeclaration annotation support corrected
623* Parssing Java Unicode escape characters suport added
624
6252007-10-03
626-------------
627* Bug corrected: "MotifComboPopup.this.super()" statement was generating parser error
628
6292007-10-01
630-------------
631* Bug corrected: Casting signed primitive values
632```
633 double d = (double) -1;
634 ^
635```
6362007-08-06
637-------------
638* Bug with the single line comments in the final of the unit corrected
639
6402007-07-31
641-------------
642* Fixed the bug with the following expression: `Class c = (int.class);`
643
6442007-06-26
645-------------
646* Bug fixes from Leon Poyyayil work
647 * suport for hex floating point
648 * unicode digits in indentifier
649 * MemberValueArrayInitializer
650
6512007-03-09
652-------------
653* Long and Integer literal MIN_VALUE bug
654
6552007-02-24
656-------------
657* '\0' bug fixed
658
6592007-02-01
660-------------
661* Many bug fixes
662* Added line/column to nodes