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