Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Changes.md 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. ### Changes
  2. #### version 3.30
  3. * `Readme.html` was deleted (GitHub Issue #414).
  4. #### version 3.29 on May 13, 2022
  5. * GitHub Issue #378, PR #278, #299, #382, #383, #390, #391, #395, #399, #409.
  6. #### version 3.28 on May 8, 2021
  7. * GitHub Issue #305, #328, #339, #350, #357, and PR #363.
  8. #### version 3.27 on March 19, 2020
  9. * GitHub Issue #271 (PR #279), #280 (PR #281), #282, and PR #294.
  10. #### version 3.26 on October 3, 2019
  11. * GitHub Issue #270 (PR #272), #265 (PR #267), #271, #222, and #275.
  12. #### version 3.25 on April 16, 2019
  13. * GitHub Issue #72 (PR #231), #241, #242 (PR #243), PR #244,
  14. #246 (PR #247), PR #250, #252 (PR #253), PR #254.
  15. #### version 3.24.1 on December 9, 2018
  16. * GitHub Issue #228, #229
  17. #### version 3.24 on November 1, 2018
  18. * Java 11 supports.
  19. * JIRA JASSIST-267.
  20. * Github PR #218.
  21. #### version 3.23.1 on July 2, 2018
  22. * Github PR #171.
  23. #### version 3.23 on June 21, 2018
  24. * Fix leaking file handlers in ClassPool and removed ClassPath.close(). Github issue #165.
  25. #### version 3.22 on October 10, 2017
  26. * Java 9 supports.
  27. * JIRA JASSIST-261.
  28. #### version 3.21 on October 4, 2016
  29. * JIRA JASSIST-244, 245, 248, 250, 255, 256, 259, 262.
  30. * `javassist.tools.Callback` was modified to be Java 1.4 compatible.
  31. The parameter type of `Callback#result()` was changed.
  32. * The algorithm for generating a stack-map table was modified to fix github issue #83.
  33. * A bug of ProxyFactory related to default methods was fixed. It is github issue #45.
  34. #### version 3.20 on June 25, 2015
  35. * JIRA JASSIST-241, 242, 246.
  36. #### version 3.19 on January 6, 2015
  37. * JIRA JASSIST-158, 205, 206, 207, 208, 209, 211, 212, 216, 220, 223, 224,
  38. 227, 230, 234, 235, 236, 237, 238, 240.
  39. #### version 3.18 on June 3, 2013
  40. * The source code repository has been moved to [GitHub](https://github.com/jboss-javassist/javassist).
  41. * JIRA JASSIST-181, 183, 184, 189, 162, 185, 186, 188, 190, 195, 199, 201.
  42. #### version 3.17.1 on December 3, 2012
  43. * JIRA JASSIST-177, 178, 182.
  44. #### version 3.17 on November 8, 2012
  45. * OSGi bundle info is now included in the jar file.
  46. * A stackmap generator has been rewritten.
  47. * JIRA JASSIST-160, 163, 166, 168, 170, 171, 174, 175, 176 have been fixed.
  48. #### version 3.16.1 on March 6, 2012
  49. * Maven now works. JIRA JASSIST-44, 106, 156 have been fixed.
  50. #### version 3.16 on February 19, 2012
  51. * JIRA JASSIST-126, 127, 144, 145, 146, 147, 149, 150, 151, 152, 153, 155.
  52. * `javassist.bytecode.analysis.ControlFlow` was added.
  53. * Java 7 compatibility.
  54. #### version 3.15 on July 8, 2011
  55. * The license was changed to MPL/LGPL/Apache triple.
  56. * JIRA JASSIST-138 and 142 were fixed.
  57. #### version 3.14 on October 5, 2010
  58. * JIRA JASSIST-121, 123, 128, 129, 130, 131, 132.
  59. #### version 3.13 on July 19, 2010
  60. * JIRA JASSIST-118, 119, 122, 124, 125.
  61. #### version 3.12.1 on June 10, 2010
  62. #### version 3.12 on April 16, 2010
  63. #### version 3.11 on July 3, 2009
  64. * JIRA JASSIST-67, 68, 74, 75, 76, 77, 81, 83, 84, 85, 86, 87 were fixed.
  65. * Now javassist.bytecode.CodeIterator can insert a gap into
  66. a large method body more than 32KB. (JIRA JASSIST-79, 80)
  67. #### version 3.10 on March 5, 2009
  68. * JIRA JASSIST-69, 70, 71 were fixed.
  69. #### version 3.9 on October 9, 2008
  70. * ClassPool.makeClassIfNew(InputStream) was implemented.
  71. * CtNewMethod.wrapped(..) and CtNewConstructor.wrapped(..)
  72. implicitly append a method like _added_m$0.
  73. This method now has a synthetic attribute.
  74. * JIRA JASSIST-66 has been fixed.
  75. #### version 3.8.1 on July 17, 2008
  76. * CtClass.rebuildClassFile() has been added.
  77. * A few bugs of javassist.bytecode.analysis have been fixed.
  78. 3.8.0 could not correctly deal with one letter class name
  79. such as I and J.
  80. #### version 3.8.0 on June 13, 2008
  81. * javassist.bytecode.analysis was implemented.
  82. * JASSIST-45, 47, 51, 54-57, 60, 62 were fixed.
  83. #### version 3.7.1 on March 10, 2008
  84. * a bug of javassist.util.proxy has been fixed.
  85. #### version 3.7 on January 20, 2008
  86. * Several minor bugs have been fixed.
  87. #### version 3.6.0 on September 13, 2007
  88. #### version 3.6.0.CR1 on July 27, 2007
  89. * The stack map table introduced since Java 6 has been supported.
  90. * CtClass#getDeclaredBehaviors() now returns a class initializer
  91. as well as methods and constructors.
  92. * The default status of automatic pruning was made off.
  93. Instead of pruning, this version of Javassist compresses
  94. the data structure of a class file after toBytecode() is called.
  95. The compressed class file is automatically decompressed when needed.
  96. This saves memory space better than pruning.
  97. * [JIRA JASSIST-33](http://jira.jboss.com/jira/browse/JASSIST-33) has been fixed.
  98. #### version 3.5 on April 29, 2007
  99. * Various minor updates.
  100. #### version 3.4 on November 17, 2006
  101. * A bug in CodeConverter#replaceFieldRead() and CodeConverter#replaceFieldWrite()
  102. was fixed. [JBAOP-284](http://jira.jboss.com/jira/browse/JBAOP-284).
  103. * A synchronization bug and a performance bug in `javassist.util.proxy`
  104. have been fixed
  105. ([JASSIST-28](http://jira.jboss.com/jira/browse/JASSIST-28)).
  106. Now generated proxy classes are cached. To turn the caching off,
  107. set `ProxyFactory.useCache` to `false`.
  108. #### version 3.3 on August 17, 2006
  109. * CtClass#toClass() and ClassPool#toClass() were modified to accept a
  110. `ProtectionDomain`
  111. ([JASSIST-23](http://jira.jboss.com/jira/browse/JASSIST-23)).
  112. Now ClassPool#toClass(CtClass, ClassLoader) should not be overridden. All
  113. subclasses of ClassPool must override toClass(CtClass, ClassLoader,
  114. ProtectionDomain).
  115. * CtClass#getAvailableAnnotations() etc. have been implemented.
  116. * A bug related to a way of dealing with a bridge method was fixed
  117. ([HIBERNATE-37](http://jira.jboss.com/jira/browse/HIBERNATE-37)).
  118. * javassist.scopedpool package was added.
  119. #### version 3.2 on June 21, 2006
  120. * The behavior of CtBehavior#getParameterAnnotations() has been changed.
  121. It is now compatible to Java Reflection API
  122. ([JASSIST-19](http://jira.jboss.com/jira/browse/JASSIST-19)).
  123. #### version 3.2.0.CR2 on May 9, 2006
  124. * A bug of replace(String,ExprEditor) in javassist.expr.Expr has been fixed.
  125. * Updated ProxyFactory getClassLoader to choose the javassit class loader
  126. when the proxy superclass has a null class loader (a jdk/endorsed class)
  127. ([JASSIST-18](http://jira.jboss.com/jira/browse/JASSIST-18)).
  128. * Updated the throws clause of the javassist.util.proxy.MethodHandler
  129. to be Throwable rather than Exception
  130. ([JASSIST-16](http://jira.jboss.com/jira/browse/JASSIST-16)).
  131. #### version 3.2.0.CR1 on March 18, 2006
  132. * Annotations enhancements to javassist.bytecode.MethodInfo.
  133. * Allow a ClassPool to override the "guess" at the classloader to use.
  134. #### version 3.1 on February 23, 2006
  135. * getFields(), getMethods(), and getConstructors() in CtClass
  136. were changed to return non-private memebers instead of only
  137. public members.
  138. * getEnclosingClass() in javassist.CtClass was renamed
  139. to getEnclosingMethod().
  140. * getModifiers() was extended to return Modifier.STATIC if the class
  141. is a static inner class.
  142. * The return type of CtClass.stopPruning() was changed from void
  143. to boolean.
  144. * toMethod() in javassist.CtConstructor has been implemented.
  145. * It includes new javassist.util.proxy package
  146. similar to Enhancer of CGLIB.
  147. * The subpackages of Javassist were restructured.
  148. * javassist.tool package was renamed to javassist.tools.
  149. * HotSwapper was moved to javassist.util.
  150. * Several subpackages were moved to javassist.tools.
  151. * javassist.preproc package was elminated and the source was
  152. moved to the sample directory.
  153. #### version 3.1 RC2 on September 7, 2005
  154. * RC2 is released mainly for an administrative reason.
  155. * A few bugs have been fixed.
  156. #### version 3.1 RC1 on August 29, 2005
  157. * Better annotation supports. See `CtClass.getAnnotations()`
  158. * javassist.tool.HotSwapper was added.
  159. * javassist.ClassPool.importPackage() was added.
  160. * The compiler now accepts array initializers
  161. (only one dimensional arrays).
  162. * javassist.Dump was moved to javassist.tool.Dump.
  163. * Many bugs were fixed.
  164. #### version 3.0 on January 18, 2005
  165. * The compiler now supports synchronized statements and finally
  166. clauses.
  167. * You can now remove a method and a field.
  168. #### version 3.0 RC1 on September 13, 2004.
  169. * CtClass.toClass() has been reimplemented. The behavior has been
  170. changed.
  171. * javassist.expr.NewArray has been implemented. It enables modifying
  172. an expression for array creation.
  173. * `.class` notation has been supported. The modified class
  174. file needs javassist.runtime.DotClass at runtime.
  175. * a bug in `CtClass.getMethods()` has been fixed.
  176. * The compiler supports a switch statement.
  177. #### version 3.0 beta on May 18th, 2004.
  178. * The ClassPool framework has been redesigned.
  179. * writeFile(), write(), ... in ClassPool have been moved to CtClass.
  180. * The design of javassist.Translator has been changed.
  181. * javassist.bytecode.annotation has been added for meta tags.
  182. * CtClass.makeNestedClass() has been added.
  183. * The methods declared in javassist.bytecode.InnerClassesAttribute
  184. have been renamed a bit.
  185. * Now local variables were made available in the source text passed to
  186. CtBehavior.insertBefore(), MethodCall.replace(), etc.
  187. * CtClass.main(), which prints the version number, has been added.
  188. * ClassPool.SimpleLoader has been public.
  189. * javassist.bytecode.DeprecatedAttribute has been added.
  190. * javassist.bytecode.LocalVariableAttribute has been added.
  191. * CtClass.getURL() and javassist.ClassPath.find() has been added.
  192. * CtBehavior.insertAt() has been added.
  193. * CtClass.detach() has been added.
  194. * CodeAttribute.computeMaxStack() has been added.
  195. #### version 2.6 in August, 2003.
  196. * The behavior of CtClass.setSuperclass() was changed.
  197. To obtain the previous behavior, call CtClass.replaceClassName().
  198. * CtConstructor.setBody() now works for class initializers.
  199. * CtNewMethod.delegator() now works for static methods.
  200. * javassist.expr.Expr.indexOfBytecode() has been added.
  201. * javassist.Loader has been modified so that getPackage() returns
  202. a package object.
  203. * Now, the compiler can correctly compile a try statement and an
  204. infinite while-loop.
  205. #### version 2.5.1 in May, 2003.
  206. Simple changes for integration with JBoss AOP
  207. * Made ClassPool.get0 protected so that subclasses of ClassPool can call it.
  208. * Moved all access to the class cache (the field ClassPool.classes) to a method called getCached(String classname). This is so subclasses of ClassPool can override this behavior.
  209. #### version 2.5 in May, 2003.
  210. From this version, Javassist is part of the JBoss project.
  211. * The license was changed from MPL to MPL/LGPL dual.
  212. * ClassPool.removeClassPath() and ClassPath.close() have been added.
  213. * ClassPool.makeClass(InputStream) has been added.
  214. * CtClass.makeClassInitializer() has been added.
  215. * javassist.expr.Expr has been changed to a public class.
  216. * javassist.expr.Handler has been added.
  217. * javassist.expr.MethodCall.isSuper() has been added.
  218. * CtMethod.isEmpty() and CtConstructor.isEmpty() have been added.
  219. * LoaderClassPath has been implemented.
  220. #### version 2.4 in February, 2003.
  221. * The compiler included in Javassist did not correctly work with
  222. interface methods. This bug was fixed.
  223. * Now javassist.bytecode.Bytecode allows more than 255 local
  224. variables in the same method.
  225. * javassist.expr.Instanceof and Cast have been added.
  226. * javassist.expr.{MethodCall,NewExpr,FieldAccess,Instanceof,Cast}.where()
  227. have been added. They return the caller-side method surrounding the
  228. expression.
  229. * javassist.expr.{MethodCall,NewExpr,FieldAccess,Instanceof,Cast}.mayThrow()
  230. have been added.
  231. * $class has been introduced.
  232. * The parameters to replaceFieldRead(), replaceFieldWrite(),
  233. and redirectFieldAccess() in javassist.CodeConverter are changed.
  234. * The compiler could not correctly handle a try-catch statement.
  235. This bug has been fixed.
  236. #### version 2.3 in December, 2002.
  237. * The tutorial has been revised a bit.
  238. * SerialVersionUID class was donated by Bob Lee. Thanks.
  239. * CtMethod.setBody() and CtConstructor.setBody() have been added.
  240. * javassist.reflect.ClassMetaobject.useContextClassLoader has been added.
  241. If true, the reflection package does not use Class.forName() but uses
  242. a context class loader specified by the user.
  243. * $sig and $type are now available.
  244. * Bugs in Bytecode.write() and read() have been fixed.
  245. #### version 2.2 in October, 2002.
  246. * The tutorial has been revised.
  247. * A new package `javassist.expr` has been added.
  248. This is replacement of classic `CodeConverter`.
  249. * javassist.ConstParameter was changed into
  250. javassist.CtMethod.ConstParameter.
  251. * javassist.FieldInitializer was renamed into
  252. javassist.CtField.Initializer.
  253. * A bug in javassist.bytecode.Bytecode.addInvokeinterface() has been
  254. fixed.
  255. * In javassist.bytecode.Bytecode, addGetfield(), addGetstatic(),
  256. addInvokespecial(), addInvokestatic(), addInvokevirtual(),
  257. and addInvokeinterface()
  258. have been modified to update the current statck depth.
  259. #### version 2.1 in July, 2002.
  260. * javassist.CtMember and javassist.CtBehavior have been added.
  261. * javassist.CtClass.toBytecode() has been added.
  262. * javassist.CtClass.toClass() and javassist.ClassPool.writeAsClass()
  263. has been added.
  264. * javassist.ByteArrayClassPath has been added.
  265. * javassist.bytecode.Mnemonic has been added.
  266. * Several bugs have been fixed.
  267. #### version 2.0 (major update) in November, 2001.
  268. * The javassist.bytecode package has been provided. It is a
  269. lower-level API for directly modifying a class file although
  270. the users must have detailed knowledge of the Java bytecode.
  271. * The mechanism for creating CtClass objects have been changed.
  272. * javassist.tool.Dump moves to the javassist package.
  273. version 1.0 in July, 2001.
  274. * javassist.reflect.Metaobject and ClassMetaobject was changed.
  275. Now they throw the same exception that they receive from a
  276. base-level object.
  277. #### version 0.8
  278. * javassist.tool.Dump was added. It is a class file viewer.
  279. * javassist.FiledInitializer.byNewArray() was added. It is for
  280. initializing a field with an array object.
  281. * javassist.CodeConverter.redirectMethodCall() was added.
  282. * javassist.Run was added.
  283. #### version 0.7
  284. * javassit.Loader was largely modified. javassist.UserLoader was
  285. deleted. Instead, Codebase was renamed to ClassPath
  286. and UserClassPath was added. Now programmers who want to
  287. customize Loader must write a class implementing UserClassPath
  288. instead of UserLoader. This change is for sharing class search paths
  289. between Loader and CtClass.CtClass(String).
  290. * CtClass.addField(), addMethod(), addConstructor(), addWrapper() were
  291. also largely modified so that it receives CtNewMethod, CtNewConstructor,
  292. or CtNewField. The static methods for creating these objects were
  293. added to the API.
  294. * Constructors are now represented by CtConstructor objects.
  295. CtConstructor is a subclass of CtMethod.
  296. * CtClass.getUserAttribute() was removed. Use CtClass.getAttribute().
  297. * javassist.rmi.RmiLoader was added.
  298. * javassist.reflect.Metalevel._setMetaobject() was added. Now
  299. metaobjects can be replaced at runtime.
  300. #### version 0.6
  301. * Javassist was modified to correctly deal with array types appearing
  302. in signatures.
  303. * A bug crashed resulting bytecode if a class includes a private static
  304. filed. It has been fixed.
  305. * javassist.CtNewInterface was added.
  306. * javassist.Loader.recordClass() was renamed into makeClass().
  307. * javassist.UserLoader.loadClass() was changed to take the second
  308. parameter.
  309. #### version 0.5
  310. * a bug-fix version.
  311. #### version 0.4
  312. * Major update again. Many classes and methods were changed.
  313. Most of methods taking java.lang.Class have been changed to
  314. take javassist.CtClass.
  315. #### version 0.3
  316. * Major update. Many classes and methods were changed.
  317. #### version 0.2
  318. * Jar/zip files are supported.
  319. #### version 0.1 on April 16, 1999.
  320. * The first release.