blob: 44d5e1a3e829fdb1e5b42d8e5a9d04c90d089ec4 [file] [log] [blame] [view]
Danny van Bruggenf50a5512017-03-04 18:14:46 +01001Version 3.1.1
2------------------
3Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
4
5* 654 124 lexical preservation (printing source code with the same formatting it had when parsing) has been added.
6 Thank you @ftomassetti for a lot of work!
7* 554 800 first (big) step towards Java 9 support: JavaParser can read project Jigsaw module definitions.
8* 795 786 751 extend the TreeVisitor with more traversal options. Thanks @ryan-beckett!
9* 791 `GenericListVisitorAdapter` has been added which collects its results in a list. Thanks @Gottox!
10* 815 798 797 813 clean up Problem text
11* 819 818 817 816 441 809 808 807 fix various absurd annotation related issues.
12* 777 805 802 796 790 792 793 781 784 785 783 782 779 357 799 763 smaller improvements and fixes
13
Danny van Bruggen076d3ee2017-02-19 22:56:24 +010014Version 3.1.0
15------------------
Danny van Bruggenf50a5512017-03-04 18:14:46 +010016Beta: `TreeStructureVisitor` and `ConcreteSyntaxModel`.
Danny van Bruggen076d3ee2017-02-19 22:56:24 +010017
18* 705 755 Add the concrete syntax model, which will give you information about the exact syntax a certain nodes matches.
19
20* 777 smaller improvements and fixes
21
Danny van Bruggenadae33f2017-02-14 19:59:50 +010022Version 3.1.0-beta.2
23------------------
24This version is a beta because `TreeStructureVisitor` is not in its definite state yet.
25
26* 762 761 772 merge `javaparser-metamodel` and `javaparser-generator-utils` into `javaparser-core`.
27* 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give different results than before.
28* 755 `ConstructorDeclaration` and `MethodDeclaration` now share a parent: `CallableDeclaration`
29* 687 759 773 769 768 767 765 759 smaller improvements and fixes
30
Danny van Bruggen23d54772017-02-05 16:21:16 +010031Version 3.1.0-beta.1
Danny van Bruggen70f343e2017-01-28 14:07:25 +010032------------------
Danny van Bruggen23d54772017-02-05 16:21:16 +010033This version is a beta because there are a lot of new features that may still change.
34
35This version needs a minor version increase because of a backwards compatability issue:
36* 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 +010037
38New:
Danny van Bruggene6079d82017-02-05 16:50:01 +010039* 658 718 736 737 we have created a metamodel.
Danny van Bruggen23d54772017-02-05 16:21:16 +010040It gives information about the structure of the various AST nodes, as if you are introspecting them.
41You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel`
Danny van Bruggene6079d82017-02-05 16:50:01 +010042* 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 +010043Affected visitors are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`.
44
45If you want to generate your own visitors, you can use the `VisitorGenerator` class from `javaparser-core-generators`
46
47If 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 +010048* 538 735 `TreeStructureVisitor` has been added, which should be considered beta.
49* 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 +010050
Danny van Bruggenc5f6e9b2017-01-15 20:58:52 +010051Version 3.0.1
52------------------
53* 699 433 325 Javadoc can now be parsed
54* 703 696 added NodeWithOptionalScope
55* 702 FieldAccessExpr now implements NodeWithSimpleName, *which means that "field" has been renamed to "name"*
56* 707 706 improve range of array types and levels
57* 709 smaller improvements and fixes
58
Danny van Bruggen1804ea22017-01-07 23:06:22 +010059Version 3.0.0
60------------------
61* 695 697 689 680 693 691 682 690 677 679 688 684 683 smaller improvements and fixes
62
Danny van Bruggene11ed222016-12-24 22:25:49 +010063Version 3.0.0-RC.4
64------------------
65* 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt
66* 347 665 every node now has some documentation
67* 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration
68* 659 The pretty printer can now take customized visitors
69* 650 671 672 674 524 smaller improvements and fixes
70
Danny van Bruggenfc9c4a92016-12-18 23:13:10 +010071Version 3.0.0-RC.3
72------------------
73* 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
74
Danny van Bruggendd5d4d02016-12-09 16:40:59 +010075Version 3.0.0-RC.2
76------------------
77* 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed
78* 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name"
79* 614 617 the list of tokens has been linearized and simplified
80* 615 support for arrays has once more been changed. See [the issue](https://github.com/javaparser/javaparser/issues/592)
81* 580 453 380 618 580 611 610 424 608 smaller improvements and fixes
82
Danny van Bruggen61aaeaf2016-12-01 18:37:11 +010083Version 3.0.0-RC.1
84------------------
85* 499 601 renames many fields to be more consistent
86* 596 605 602 604 smaller improvements and fixes
87
Danny van Bruggen47379542016-11-27 16:54:33 +010088Version 3.0.0-alpha.11
89------------------
90* 547 595 Node.range is now using Optional instead of Range.UNKNOWN
Danny van Bruggen6738e1c2016-11-28 19:46:45 +010091* 584 588 548 585 bug fixes and improvements
Danny van Bruggen47379542016-11-27 16:54:33 +010092
matozoidf52d1ad2016-11-20 16:36:22 +010093Version 3.0.0-alpha.10
94------------------
95* 578 579 577 575 290 570 568 567 562 564 551 bug fixes and improvements
96
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +010097Version 3.0.0-alpha.9
98------------------
99* 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 +0100100* 516 536 use Optional<> for return values.
matozoid789ddfe2016-11-13 17:33:43 +0100101* 556 557 558 550 small improvements and fixes.
102* 560 559 make nodes observable.
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +0100103
matozoidaa79a622016-11-06 14:13:37 +0100104Version 3.0.0-alpha.8
105------------------
106* 344 529 turn DumpVisitor into an official PrettyPrinter
107* 532 508 427 530 531 513 528 cleanups
108
matozoidde10e892016-10-26 19:48:54 +0200109Version 3.0.0-alpha.7
110------------------
matozoid57a10942016-10-30 21:14:28 +0100111* 515 roll back attempt at using Optional
112* 522 504 make NodeList not a Node (restores parent/children behaviour to before alpha.4)
113* 527 526 rename getChildrenNodes to getChildNodes
114* 525 495 520 bug fix
matozoidde10e892016-10-26 19:48:54 +0200115
116Version 3.0.0-alpha.6
117------------------
118* 503 modified ImportDeclaration hierarchy to have getters for static and "asterisk" again
119* 506 bug fix
120
matozoid9ac80482016-10-16 22:08:51 +0200121Version 3.0.0-alpha.5
122------------------
123* 451 null is no longer allowed in the AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451)
124* 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)
125
matozoid93c5ac12016-10-09 22:03:29 +0200126Version 3.0.0-alpha.4
127------------------
128* 463 471 nodes can now be removed easily
129* 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)
130* 452 355 474 494 various improvements
131* 493 492 485 Simplify the JavaParser interface
132
matozoid6ea2c522016-09-30 18:55:44 +0200133Version 3.0.0-alpha.3
134------------------
matozoid93c5ac12016-10-09 22:03:29 +0200135* 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 +0200136* 472 456 makes the "data" field on every node more structured.
137* 477 468 refactor TypeArguments. You will find that TypeArguments is no longer a type, it is just a list in some nodes.
138* 482 adds the "nodeTypes" packages to the osgi export.
139* 479 476 makes all setters on nodes return this so they become chainable.
140* 473 437 clean up CloneVisitor.
matozoid53d288a2016-07-18 13:32:44 +0200141
matozoid6ea2c522016-09-30 18:55:44 +0200142Version 3.0.0-alpha.2
143------------------
144* 157 a new parser frontend, check https://github.com/javaparser/javaparser/pull/447 for explanations
145* 435 more builder methods like 400 and 405
146* 111 440 443 444 445 446 bugs & cleanups
matozoid53d288a2016-07-18 13:32:44 +0200147
matozoid6ea2c522016-09-30 18:55:44 +0200148Version 3.0.0-alpha.1
149------------------
150* 400 405 introduce many "builder" style methods for constructing code. Thanks DeepSnowNeeL!
151* 409 remove ASTHelper (methods are now on specific Node subclasses)
152* 414 JavaParser can now be instantiated and reused. InstanceJavaParser removed
153* 418 417 411 408 bugs
154* 367 420 407 402 various cleanups
155
156Version 2.5.1
matozoid53d288a2016-07-18 13:32:44 +0200157-------------
matozoid6ea2c522016-09-30 18:55:44 +0200158* 394 OSGi manifest added
159* 391 fix ModifierVisitor NullPointerException bug
160* 385 a few new parse methods
161* 386 fix dumping an empty import (a single ; after the package declaration)
matozoid53d288a2016-07-18 13:32:44 +0200162
163Version 2.5.0
164-------------
165API breaking changes:
166
167* 191: moved TreeVisitor to visitor package
168* 368, 162, 303, 302, 360: use correct type in some places.
169* 371: code is now compiled with Java 8
170* 342, 331: ModifierVisitorAdapter detects and removes broken nodes
171* 328, 270: upgrade JavaCC (use TokenMgrException now)
172Other changes:
173
174* 297: enable access to tokens.
175* 341, 361: node positions are now OO
176* 211, 373: escaping of \n \r for string literals
177* 336, 276, 141: JavaDoc support now works
178* 337, 281: reorganize the stream reading code
179* 343, 309, 332, 57: take advantage of common interfaces
180* 329, 326, 327: deal with platform issues
181* 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes
182* 310, 311, 313, 301, 294: some code clean-ups
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200183
matozoid6ea2c522016-09-30 18:55:44 +0200184Version 2.4.0
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200185-------------
matozoid6ea2c522016-09-30 18:55:44 +0200186* several fixes in DumpVisitor for bugs due to lazy initialization
187* make TypeDeclaration implements DocumentableNode directly
188* TypedNode interface introduced
189* introduce MultiBoundType
190* refactored IntersectionType and UnionType
191* refactored CatchClause
192* parsing annotations in throws declarations
193* parse orphan semicolons in import statements
194* added PackageDeclaration.getPackageName
195* solved issue with newlines in string literals
196* fixed handling of UnknownType in EqualsVisitor
197* improvements to CommentsParser
198* removing old grammar
matozoid13818472016-08-23 22:03:06 +0200199
matozoid6ea2c522016-09-30 18:55:44 +0200200Version 2.3.0
201-------------
202* ClassOrInterfaceType implements NamedNode
203* DumpVisitor can now be extended
204* Improved documentation
205* AST: lists are now lazy initialized
matozoid8669cf42016-09-30 18:39:12 +0200206
Danny van Bruggen27b32072017-02-19 23:27:37 +0100207Version 2.1.0
matozoideae61572016-09-30 18:57:34 +0200208-------------
209* Features
210 * [#75 performance improvement for `PositionUtils.sortByBeginPosition`](https://github.com/javaparser/javaparser/issues/75)
211 * [#64 In getDeclarationAsString parameter names should be optional](https://github.com/javaparser/javaparser/issues/64)
212* Bugfixes
213 * [#79 Fix NPE in `ConstructorDeclaration.getDeclarationAsString`](https://github.com/javaparser/javaparser/pull/79)
214 * [#86 Add missing functions to ModifierVisitorAdapter](https://github.com/javaparser/javaparser/pull/86)
215 * [#82 set LambdaExpr as parent of its child nodes](https://github.com/javaparser/javaparser/issues/82)
216 * [#87 implement `setJavadoc` and `getJavadoc` at various classes](https://github.com/javaparser/javaparser/issues/87)
217 * [#96 Fixed encoding issue in `Javaparser.parse`](https://github.com/javaparser/javaparser/pull/96)
218 * [#85 Casting a lambda expression causes a parsing failure](https://github.com/javaparser/javaparser/issues/85)
219 * [#88 `MethodReferenceExpr` and `TypeExpr` don't set themselves as parents](https://github.com/javaparser/javaparser/issues/88)
220* Internal
221 * [#89 CommentsParser.State contains unused fields](https://github.com/javaparser/javaparser/issues/89)
222 * Switched from drone.io to [Travis](https://travis-ci.org/javaparser/javaparser)
223 * [#105 Enforce compiling the library for a certain Java version](https://github.com/javaparser/javaparser/pull/105)
224
225[Code changes](https://github.com/javaparser/javaparser/compare/javaparser-parent-2.0.0...master)
226
227Version 2.0.0
228-------------
229* support Java 8
Danny van Bruggen27b32072017-02-19 23:27:37 +0100230
231Version 1.0.8 (2010-01-17)
232-------------
233* Fixed issues:
234 * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses
235 * Issue 21: Java 5 JavaParser compiled JARs
236 * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet
237 * Issue 27: Implement the "equal" method
238 * Issue 30: equals and hashCode methods
239
240Version 1.0.7 (2009-04-12)
241-------------
242* Issue 19 fixed:
243* Tests changed to run with junit 4
244
245Version 1.0.6 (2009-01-11)
246-------------
247* Issue 11 fixed: changed method get/setPakage to get/setPackage in the class CompilationUnit
248* Created new visitor adapter to help AST modification: ModifierVisitorAdapter
249* Changed visitor adapters to abstract
250
251Version 1.0.5 (2008-10-26)
252-------------
253* Created simplified constructors in the nodes of the AST (without positional arguments)
254* Created ASTHelper class with some helpful methods (more methods are still needed)
255
256Version 1.0.4 (2008-10-07)
257-------------
258* Moved to javacc 4.1.
259* The java_1_5.jj can be build alone without compilation errors
260
261Version 1.0.3 (2008-09-06)
262-------------
263* Removed SuperMemberAccessExpr class, it was no longer used
264* Removed the methods get/setTypeArgs() from ArrayCreationExpr, this node shouldn't have these methods.
265* Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr
266* The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class
267
268Version 1.0.2 (2008-07-20)
269-------------
270* Issue fixed: Issue 1: Add support for editing AST nodes or create new ones
271
272Version 1.0.1 (2008-07-01)
273-------------
274* Issue fixed: Issue 5: end line and end column equal to begin line and begin column
275
276Version 1.0.0 (2008-06-25)
277-------------
278* Changed version numbering, starting version 1.0.0
279* Javadoc done for packages:
280 * japa.parser
281 * japa.parser.ast
282* Corrected bug when parsing in multithread:
283 * JavaParser.setCacheParser(false) must be called before to use the parser concurrent
284
2852008-06-19
286-------------
287* No code changes, added binary distribution to download page
288
2892008-06-11
290-------------
291* Bug corrected: NPE in VoidVisitorAdapter
292 * http://code.google.com/p/javaparser/issues/detail?id=2
293
2942008-06-09
295-------------
296* Added Adapters for de visitors
297
2982008-05-28
299-------------
300* This project now is published at Google Code:
301 * http://code.google.com/p/javaparser/
302
3032008-05-25
304-------------
305* Added support for comments and javadoc to the tree.
306 * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), accessible by the method getJavadoc().
307 * All comments are stored in the CompilationUnit, accessible by the method getComments().
308
3092008-04-01
310-------------
311* Changed all nodes public attributes to be private and created getters to access them
312* Changed the methods of the Node getLine e getColumn to getBeginLine and getBeginColumn
313* Added the methods getEndLine and getEndColumn to the Node class (works only in the BlockNode)
314
3152007-12-22
316-------------
317* Corrected ConditionalExpression bug
318
3192007-10-21
320-------------
321* Added LGPL License
322
3232007-10-21
324-------------
325* Bugs corrected:
326 * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration
327 * Parameterized anonymous constructor invocation
328 * Explicit constructor invotation Type Arguments
329 * ctrl+z ("\u001A") ar end of compilation unit
330
3312007-10-09
332-------------
333* EnumConstantDeclaration annotation support corrected
334* Parssing Java Unicode escape characters suport added
335
3362007-10-03
337-------------
338* Bug corrected: "MotifComboPopup.this.super()" statement was generating parser error
339
3402007-10-01
341-------------
342* Bug corrected: Casting signed primitive values
343```
344 double d = (double) -1;
345 ^
346```
3472007-08-06
348-------------
349* Bug with the single line comments in the final of the unit corrected
350
3512007-07-31
352-------------
353* Fixed the bug with the following expression: `Class c = (int.class);`
354
3552007-06-26
356-------------
357* Bug fixes from Leon Poyyayil work
358 * suport for hex floating point
359 * unicode digits in indentifier
360 * MemberValueArrayInitializer
361
3622007-03-09
363-------------
364* Long and Integer literal MIN_VALUE bug
365
3662007-02-24
367-------------
368* '\0' bug fixed
369
3702007-02-01
371-------------
372* Many bug fixes
373* Added line/column to nodes