spoon-core-5.3.0
danglotb
released this
19 Sep 13:13
·
3435 commits
to master
since this release
New feature
- ast
- wildcard : Creates a new metamodel element for representing a generics wildcard. (Closes #605). (Issue: #605) (PR: #796)
Fixes
- access
- Typecasts on conditionals are not scanned hence not cloned. (PR: #753)
- Avoid NullPointerException in CtExecutableReferenceImpl.getDeclaration. (closes #808). (Issue: #808) (PR: #809)
- Fix NPE in getUsedTypes (Closes #650). (Issue: #650) (PR: #800)
- Fix regressions introduced by #748. (Issue: #748) (PR: #789)
- GetAllMethods returns all methods, incl. those of library superclasses and java.lang.Object. (PR: #771)
- annotation : Supports enum fields with Annotation#annotate() method. (Closes #750). (Issue: #750) (PR: #767)
- actual : Rewrite actual types with their enclosing class. (PR: #789)
- api : CtModel.processWith(). (PR: #821)
- array
- docs : Changes target of getSignature in javadoc. (PR: #742)
- enum : Handle synthetic methods of enums (fixes #793). (Issue: #793) (PR: #794)
- executable
- factory : GetDeclaration from element created by factory should not return null. (closes #719). (Issue: #719) (PR: #735)
- fieldaccess : Static field access in anonymous executable (closes #816). (Issue: #816) (PR: #819)
- import : Skip
findImport
andcreatePackage
if necessary. Fixes #759. (Issue: #759) (PR: #760) - lambda : Resolve Literal#constant if required. Fixes #755. (Issue: #755) (PR: #758)
- method : Search method with generics. (Issue: #573) (PR: #799)
- noclasspath
- Mark target as implicit if it's an anonymous class. (Closes #707). (Issue: #707) (PR: #737)
- Correct reference to parameters in lambda methods. (Closes #779). (Issue: #779) (PR: #802)
- Access lookup in lambda expressions in noclasspath mode. (Issue: #813) (PR: #814)
- Tolerates missing annotation types. (PR: #820)
- Avoid exception when we call getAllFields method. (PR: #780)
- package : Handle packages with only package-info.java. (Closes #748). (Issue: #748) (PR: #766)
- reference
- replace : Use generic replace with CtStatementList elements (closes #792). (Issue: #792) (PR: #795)
- type : Fix exception in noclasspath due to PolyTypeBinding. (Closes #751). (Issue: #751) (PR: #804)
Refactoring
- ref : Removes unused CtCircularTypeReference. (PR: #799)
- visitor : Rename EqualVisitor to DeepRepresentationVisitor. (Closes #791). (Issue: #791) (PR: #801)
- Refactors DefaultJavaPrettyPrinter and JDTTreeBuilder to simplify future maintenance. (PR: #784)
- Moves JDTTreeBuilder inner classes into top-level classes, adds one helper class with static methods. (PR: #746)
- Removes getSignature() and create getShortRepresentation(). (PR: #738)