blob: 3ee5469c70c8229642da2d016f21a87f0d7ef649 [file] [log] [blame] [view]
Danny van Bruggen9c513212017-04-30 22:15:44 +02001Version 3.2.3
2------------------
3* 907 906 905 903 911 910 909 908 smaller improvements and fixes
4
Danny van Bruggendc8077a2017-04-23 12:04:03 +02005Version 3.2.2
6------------------
7Beta: `TreeStructureVisitor`.
8
9* 770 902 904 901 smaller improvements and fixes
10
Danny van Bruggen28cf0be2017-04-16 15:05:10 +020011Version 3.2.1
12------------------
13Beta: `TreeStructureVisitor`.
14
15* Maven dependencies were updated to their latest versions
16* 890 the concept of "method signature" now exists in JavaParser
17* 896 891 889 887 882 789 smaller improvements and fixes
18
Danny van Bruggen7a3b9602017-04-02 21:39:40 +020019Version 3.2.0
20------------------
21The lexical preservation code is stable!
22
23Beta: `TreeStructureVisitor`.
24
25* 885 884 879 878 smaller improvements and fixes
26
Danny van Bruggencadeeb52017-03-26 20:40:56 +020027Version 3.1.4
28------------------
29This is the first version to parse Java 9.
30
31Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
32
33* 872 873 874 787 Remaining Java 9 work.
34
Danny van Bruggen64dd2802017-03-19 13:52:35 +010035Version 3.1.3
36------------------
37Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
38
39A start has been made on source level support. The default level is Java 8.
40It can be set to Java 9 like this for a parser *instance*:
41```java
42private final JavaParser parser = new JavaParser(new ParserConfiguration().setValidator(new Java9Validator()));
43```
44and like this for the static parse methods:
45```java
46JavaParser.getStaticConfiguration().setValidator(new Java9Validator());
47```
48
49* 862 552 "_" is an illegal identifier on source level 9.
50* 869 867 109 855 857 smaller improvements and fixes
51
Danny van Bruggen79776b72017-03-11 15:07:40 +010052Version 3.1.2
53------------------
54Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
55
56* 594 849 831 a validation framework was introduced to inform about problems in the AST without needing to change the grammar,
57and without requiring parsing code.
58It is open for extension by users.
59* 852 853 826 832 846 839 smaller improvements and fixes
60
Danny van Bruggenf50a5512017-03-04 18:14:46 +010061Version 3.1.1
62------------------
63Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
64
65* 654 124 lexical preservation (printing source code with the same formatting it had when parsing) has been added.
66 Thank you @ftomassetti for a lot of work!
67* 554 800 first (big) step towards Java 9 support: JavaParser can read project Jigsaw module definitions.
68* 795 786 751 extend the TreeVisitor with more traversal options. Thanks @ryan-beckett!
69* 791 `GenericListVisitorAdapter` has been added which collects its results in a list. Thanks @Gottox!
70* 815 798 797 813 clean up Problem text
71* 819 818 817 816 441 809 808 807 fix various absurd annotation related issues.
72* 777 805 802 796 790 792 793 781 784 785 783 782 779 357 799 763 smaller improvements and fixes
73
Danny van Bruggen076d3ee2017-02-19 22:56:24 +010074Version 3.1.0
75------------------
Danny van Bruggenf50a5512017-03-04 18:14:46 +010076Beta: `TreeStructureVisitor` and `ConcreteSyntaxModel`.
Danny van Bruggen076d3ee2017-02-19 22:56:24 +010077
78* 705 755 Add the concrete syntax model, which will give you information about the exact syntax a certain nodes matches.
79
80* 777 smaller improvements and fixes
81
Danny van Bruggenadae33f2017-02-14 19:59:50 +010082Version 3.1.0-beta.2
83------------------
84This version is a beta because `TreeStructureVisitor` is not in its definite state yet.
85
86* 762 761 772 merge `javaparser-metamodel` and `javaparser-generator-utils` into `javaparser-core`.
87* 766 the `ModifierVisitor` is now created by a code generator. Its behaviour has been made logical, and may give different results than before.
88* 755 `ConstructorDeclaration` and `MethodDeclaration` now share a parent: `CallableDeclaration`
89* 687 759 773 769 768 767 765 759 smaller improvements and fixes
90
Danny van Bruggen23d54772017-02-05 16:21:16 +010091Version 3.1.0-beta.1
Danny van Bruggen70f343e2017-01-28 14:07:25 +010092------------------
Danny van Bruggen23d54772017-02-05 16:21:16 +010093This version is a beta because there are a lot of new features that may still change.
94
95This version needs a minor version increase because of a backwards compatability issue:
96* 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 +010097
98New:
Danny van Bruggene6079d82017-02-05 16:50:01 +010099* 658 718 736 737 we have created a metamodel.
Danny van Bruggen23d54772017-02-05 16:21:16 +0100100It gives information about the structure of the various AST nodes, as if you are introspecting them.
101You can find it in `javaparser-metamodel`, the main class is `JavaParserMetaModel`
Danny van Bruggene6079d82017-02-05 16:50:01 +0100102* 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 +0100103Affected visitors are: `GenericVisitorAdapter`, `EqualsVisitor`, `VoidVisitorAdapter`, `VoidVisitor`, `GenericVisitor`, `HashCodeVisitor`, `CloneVisitor`.
104
105If you want to generate your own visitors, you can use the `VisitorGenerator` class from `javaparser-core-generators`
106
107If 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 +0100108* 538 735 `TreeStructureVisitor` has been added, which should be considered beta.
109* 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 +0100110
Danny van Bruggenc5f6e9b2017-01-15 20:58:52 +0100111Version 3.0.1
112------------------
113* 699 433 325 Javadoc can now be parsed
114* 703 696 added NodeWithOptionalScope
115* 702 FieldAccessExpr now implements NodeWithSimpleName, *which means that "field" has been renamed to "name"*
116* 707 706 improve range of array types and levels
117* 709 smaller improvements and fixes
118
Danny van Bruggen1804ea22017-01-07 23:06:22 +0100119Version 3.0.0
120------------------
121* 695 697 689 680 693 691 682 690 677 679 688 684 683 smaller improvements and fixes
122
Danny van Bruggene11ed222016-12-24 22:25:49 +0100123Version 3.0.0-RC.4
124------------------
125* 668 669 TypeDeclarationStmt became LocalClassDeclarationStmt
126* 347 665 every node now has some documentation
127* 660 670 673 four types of import declaration have been merged back into the old ImportDeclaration
128* 659 The pretty printer can now take customized visitors
129* 650 671 672 674 524 smaller improvements and fixes
130
Danny van Bruggenfc9c4a92016-12-18 23:13:10 +0100131Version 3.0.0-RC.3
132------------------
133* 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
134
Danny van Bruggendd5d4d02016-12-09 16:40:59 +0100135Version 3.0.0-RC.2
136------------------
137* 593 EmptyImportDeclaration and NonEmptyImportDeclaration have been removed
138* 612 VariableDeclaratorId has been removed. It has been substituted by "SimpleName name"
139* 614 617 the list of tokens has been linearized and simplified
140* 615 support for arrays has once more been changed. See [the issue](https://github.com/javaparser/javaparser/issues/592)
141* 580 453 380 618 580 611 610 424 608 smaller improvements and fixes
142
Danny van Bruggen61aaeaf2016-12-01 18:37:11 +0100143Version 3.0.0-RC.1
144------------------
145* 499 601 renames many fields to be more consistent
146* 596 605 602 604 smaller improvements and fixes
147
Danny van Bruggen47379542016-11-27 16:54:33 +0100148Version 3.0.0-alpha.11
149------------------
150* 547 595 Node.range is now using Optional instead of Range.UNKNOWN
Danny van Bruggen6738e1c2016-11-28 19:46:45 +0100151* 584 588 548 585 bug fixes and improvements
Danny van Bruggen47379542016-11-27 16:54:33 +0100152
matozoidf52d1ad2016-11-20 16:36:22 +0100153Version 3.0.0-alpha.10
154------------------
155* 578 579 577 575 290 570 568 567 562 564 551 bug fixes and improvements
156
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +0100157Version 3.0.0-alpha.9
158------------------
159* 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 +0100160* 516 536 use Optional<> for return values.
matozoid789ddfe2016-11-13 17:33:43 +0100161* 556 557 558 550 small improvements and fixes.
162* 560 559 make nodes observable.
Danny van Bruggen02b3c5e2016-11-10 10:33:44 +0100163
matozoidaa79a622016-11-06 14:13:37 +0100164Version 3.0.0-alpha.8
165------------------
166* 344 529 turn DumpVisitor into an official PrettyPrinter
167* 532 508 427 530 531 513 528 cleanups
168
matozoidde10e892016-10-26 19:48:54 +0200169Version 3.0.0-alpha.7
170------------------
matozoid57a10942016-10-30 21:14:28 +0100171* 515 roll back attempt at using Optional
172* 522 504 make NodeList not a Node (restores parent/children behaviour to before alpha.4)
173* 527 526 rename getChildrenNodes to getChildNodes
174* 525 495 520 bug fix
matozoidde10e892016-10-26 19:48:54 +0200175
176Version 3.0.0-alpha.6
177------------------
178* 503 modified ImportDeclaration hierarchy to have getters for static and "asterisk" again
179* 506 bug fix
180
matozoid9ac80482016-10-16 22:08:51 +0200181Version 3.0.0-alpha.5
182------------------
183* 451 null is no longer allowed in the AST. [See last post in issue](https://github.com/javaparser/javaparser/issues/451)
184* 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)
185
matozoid93c5ac12016-10-09 22:03:29 +0200186Version 3.0.0-alpha.4
187------------------
188* 463 471 nodes can now be removed easily
189* 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)
190* 452 355 474 494 various improvements
191* 493 492 485 Simplify the JavaParser interface
192
matozoid6ea2c522016-09-30 18:55:44 +0200193Version 3.0.0-alpha.3
194------------------
matozoid93c5ac12016-10-09 22:03:29 +0200195* 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 +0200196* 472 456 makes the "data" field on every node more structured.
197* 477 468 refactor TypeArguments. You will find that TypeArguments is no longer a type, it is just a list in some nodes.
198* 482 adds the "nodeTypes" packages to the osgi export.
199* 479 476 makes all setters on nodes return this so they become chainable.
200* 473 437 clean up CloneVisitor.
matozoid53d288a2016-07-18 13:32:44 +0200201
matozoid6ea2c522016-09-30 18:55:44 +0200202Version 3.0.0-alpha.2
203------------------
204* 157 a new parser frontend, check https://github.com/javaparser/javaparser/pull/447 for explanations
205* 435 more builder methods like 400 and 405
206* 111 440 443 444 445 446 bugs & cleanups
matozoid53d288a2016-07-18 13:32:44 +0200207
matozoid6ea2c522016-09-30 18:55:44 +0200208Version 3.0.0-alpha.1
209------------------
210* 400 405 introduce many "builder" style methods for constructing code. Thanks DeepSnowNeeL!
211* 409 remove ASTHelper (methods are now on specific Node subclasses)
212* 414 JavaParser can now be instantiated and reused. InstanceJavaParser removed
213* 418 417 411 408 bugs
214* 367 420 407 402 various cleanups
215
216Version 2.5.1
matozoid53d288a2016-07-18 13:32:44 +0200217-------------
matozoid6ea2c522016-09-30 18:55:44 +0200218* 394 OSGi manifest added
219* 391 fix ModifierVisitor NullPointerException bug
220* 385 a few new parse methods
221* 386 fix dumping an empty import (a single ; after the package declaration)
matozoid53d288a2016-07-18 13:32:44 +0200222
223Version 2.5.0
224-------------
225API breaking changes:
226
227* 191: moved TreeVisitor to visitor package
228* 368, 162, 303, 302, 360: use correct type in some places.
229* 371: code is now compiled with Java 8
230* 342, 331: ModifierVisitorAdapter detects and removes broken nodes
231* 328, 270: upgrade JavaCC (use TokenMgrException now)
232Other changes:
233
234* 297: enable access to tokens.
235* 341, 361: node positions are now OO
236* 211, 373: escaping of \n \r for string literals
237* 336, 276, 141: JavaDoc support now works
238* 337, 281: reorganize the stream reading code
239* 343, 309, 332, 57: take advantage of common interfaces
240* 329, 326, 327: deal with platform issues
241* 163, 236, 252, 296, 269, 339, 321, 322, 252, 253, 293, 295: various fixes
242* 310, 311, 313, 301, 294: some code clean-ups
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200243
matozoid6ea2c522016-09-30 18:55:44 +0200244Version 2.4.0
Danny van Bruggen5f5c6cc2016-07-20 13:40:30 +0200245-------------
matozoid6ea2c522016-09-30 18:55:44 +0200246* several fixes in DumpVisitor for bugs due to lazy initialization
247* make TypeDeclaration implements DocumentableNode directly
248* TypedNode interface introduced
249* introduce MultiBoundType
250* refactored IntersectionType and UnionType
251* refactored CatchClause
252* parsing annotations in throws declarations
253* parse orphan semicolons in import statements
254* added PackageDeclaration.getPackageName
255* solved issue with newlines in string literals
256* fixed handling of UnknownType in EqualsVisitor
257* improvements to CommentsParser
258* removing old grammar
matozoid13818472016-08-23 22:03:06 +0200259
matozoid6ea2c522016-09-30 18:55:44 +0200260Version 2.3.0
261-------------
262* ClassOrInterfaceType implements NamedNode
263* DumpVisitor can now be extended
264* Improved documentation
265* AST: lists are now lazy initialized
matozoid8669cf42016-09-30 18:39:12 +0200266
Danny van Bruggen27b32072017-02-19 23:27:37 +0100267Version 2.1.0
matozoideae61572016-09-30 18:57:34 +0200268-------------
269* Features
270 * [#75 performance improvement for `PositionUtils.sortByBeginPosition`](https://github.com/javaparser/javaparser/issues/75)
271 * [#64 In getDeclarationAsString parameter names should be optional](https://github.com/javaparser/javaparser/issues/64)
272* Bugfixes
273 * [#79 Fix NPE in `ConstructorDeclaration.getDeclarationAsString`](https://github.com/javaparser/javaparser/pull/79)
274 * [#86 Add missing functions to ModifierVisitorAdapter](https://github.com/javaparser/javaparser/pull/86)
275 * [#82 set LambdaExpr as parent of its child nodes](https://github.com/javaparser/javaparser/issues/82)
276 * [#87 implement `setJavadoc` and `getJavadoc` at various classes](https://github.com/javaparser/javaparser/issues/87)
277 * [#96 Fixed encoding issue in `Javaparser.parse`](https://github.com/javaparser/javaparser/pull/96)
278 * [#85 Casting a lambda expression causes a parsing failure](https://github.com/javaparser/javaparser/issues/85)
279 * [#88 `MethodReferenceExpr` and `TypeExpr` don't set themselves as parents](https://github.com/javaparser/javaparser/issues/88)
280* Internal
281 * [#89 CommentsParser.State contains unused fields](https://github.com/javaparser/javaparser/issues/89)
282 * Switched from drone.io to [Travis](https://travis-ci.org/javaparser/javaparser)
283 * [#105 Enforce compiling the library for a certain Java version](https://github.com/javaparser/javaparser/pull/105)
284
285[Code changes](https://github.com/javaparser/javaparser/compare/javaparser-parent-2.0.0...master)
286
287Version 2.0.0
288-------------
289* support Java 8
Danny van Bruggen27b32072017-02-19 23:27:37 +0100290
291Version 1.0.8 (2010-01-17)
292-------------
293* Fixed issues:
294 * Issue 17: A refactor suggestion for AnnotationExpr and its subclasses
295 * Issue 21: Java 5 JavaParser compiled JARs
296 * Issue 22: Please use java.lang.reflect.Modifier constants in japa.parser.ast.body.ModifierSet
297 * Issue 27: Implement the "equal" method
298 * Issue 30: equals and hashCode methods
299
300Version 1.0.7 (2009-04-12)
301-------------
302* Issue 19 fixed:
303* Tests changed to run with junit 4
304
305Version 1.0.6 (2009-01-11)
306-------------
307* Issue 11 fixed: changed method get/setPakage to get/setPackage in the class CompilationUnit
308* Created new visitor adapter to help AST modification: ModifierVisitorAdapter
309* Changed visitor adapters to abstract
310
311Version 1.0.5 (2008-10-26)
312-------------
313* Created simplified constructors in the nodes of the AST (without positional arguments)
314* Created ASTHelper class with some helpful methods (more methods are still needed)
315
316Version 1.0.4 (2008-10-07)
317-------------
318* Moved to javacc 4.1.
319* The java_1_5.jj can be build alone without compilation errors
320
321Version 1.0.3 (2008-09-06)
322-------------
323* Removed SuperMemberAccessExpr class, it was no longer used
324* Removed the methods get/setTypeArgs() from ArrayCreationExpr, this node shouldn't have these methods.
325* Fixed the bug with start/end position of the nodes IntegerLiteralMinValueExpr and LongLiteralMinValueExpr
326* The methods get/setAnnotations() from all BodyDeclaration subclasses were pushed down to BodyDeclaration class
327
328Version 1.0.2 (2008-07-20)
329-------------
330* Issue fixed: Issue 1: Add support for editing AST nodes or create new ones
331
332Version 1.0.1 (2008-07-01)
333-------------
334* Issue fixed: Issue 5: end line and end column equal to begin line and begin column
335
336Version 1.0.0 (2008-06-25)
337-------------
338* Changed version numbering, starting version 1.0.0
339* Javadoc done for packages:
340 * japa.parser
341 * japa.parser.ast
342* Corrected bug when parsing in multithread:
343 * JavaParser.setCacheParser(false) must be called before to use the parser concurrent
344
3452008-06-19
346-------------
347* No code changes, added binary distribution to download page
348
3492008-06-11
350-------------
351* Bug corrected: NPE in VoidVisitorAdapter
352 * http://code.google.com/p/javaparser/issues/detail?id=2
353
3542008-06-09
355-------------
356* Added Adapters for de visitors
357
3582008-05-28
359-------------
360* This project now is published at Google Code:
361 * http://code.google.com/p/javaparser/
362
3632008-05-25
364-------------
365* Added support for comments and javadoc to the tree.
366 * Javadocs are stored directly to members (BodyDeclaration and all deriveds (classes, methods, fields, etc.)), accessible by the method getJavadoc().
367 * All comments are stored in the CompilationUnit, accessible by the method getComments().
368
3692008-04-01
370-------------
371* Changed all nodes public attributes to be private and created getters to access them
372* Changed the methods of the Node getLine e getColumn to getBeginLine and getBeginColumn
373* Added the methods getEndLine and getEndColumn to the Node class (works only in the BlockNode)
374
3752007-12-22
376-------------
377* Corrected ConditionalExpression bug
378
3792007-10-21
380-------------
381* Added LGPL License
382
3832007-10-21
384-------------
385* Bugs corrected:
386 * Created PackageDeclaration member of CompilationUnit to add suport for annotations in the package declaration
387 * Parameterized anonymous constructor invocation
388 * Explicit constructor invotation Type Arguments
389 * ctrl+z ("\u001A") ar end of compilation unit
390
3912007-10-09
392-------------
393* EnumConstantDeclaration annotation support corrected
394* Parssing Java Unicode escape characters suport added
395
3962007-10-03
397-------------
398* Bug corrected: "MotifComboPopup.this.super()" statement was generating parser error
399
4002007-10-01
401-------------
402* Bug corrected: Casting signed primitive values
403```
404 double d = (double) -1;
405 ^
406```
4072007-08-06
408-------------
409* Bug with the single line comments in the final of the unit corrected
410
4112007-07-31
412-------------
413* Fixed the bug with the following expression: `Class c = (int.class);`
414
4152007-06-26
416-------------
417* Bug fixes from Leon Poyyayil work
418 * suport for hex floating point
419 * unicode digits in indentifier
420 * MemberValueArrayInitializer
421
4222007-03-09
423-------------
424* Long and Integer literal MIN_VALUE bug
425
4262007-02-24
427-------------
428* '\0' bug fixed
429
4302007-02-01
431-------------
432* Many bug fixes
433* Added line/column to nodes