From: <leg...@at...> - 2003-12-27 17:53:29
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Sat, 27 Dec 2003 11:52 AM Body: The reason it is still there is like any other deprecation - to be as much backwards compatiable as possible. Being deprecated does not make the method "not-work", it is just a hint to users that we might/would like to remove the method in the next major release. You second answer i do not know the concrete answer for (i normally don't mess with stuff that cannot be reliably used across VM's) - post it in the forum, and you will probably get a better answer ;) Regarding "safenes" of addJar(String resname) is that according to the java lang spec .class files and resources does not necessarily need to be a file system. Furthermore your program is not allowed to access the contents of META-INF/ and below via the classloaders - thus making it really hard to access that stuff ;) Thus relying on being able to use File() on them (addJar(String) does) is not good. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-580 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-580 Summary: Undo deprecation of Configuration.addJar(String) Type: Improvement Status: Closed Priority: Critical Resolution: WON'T FIX Project: Hibernate2 Components: core Versions: 2.1.1 Assignee: Reporter: tom quas Created: Fri, 26 Dec 2003 3:51 PM Updated: Sat, 27 Dec 2003 11:52 AM Environment: API Description: I just realized that Configuration.addJar( String filename ) has been deprecated. I regularly use it to load mappings from the classpath. Could you please leave it in for convenience? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |