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