ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1085] Changed - java task seems to use a different class loader when forked
Date Thu, 10 May 2001 15:08:33 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1085

*** shadow/1085	Thu Mar 22 22:08:14 2001
--- shadow/1085.tmp.18615	Thu May 10 08:08:33 2001
***************
*** 4,13 ****
  |        Bug #: 1085                        Product: Ant                     |
  |       Status: NEW                         Version: 1.3                     |
  |   Resolution:                            Platform: PC                      |
! |     Severity: Normal                   OS/Version: Other                   |
  |     Priority: Medium                    Component: Core tasks              |
  +----------------------------------------------------------------------------+
! |  Assigned To: ant-dev@jakarta.apache.org                                   |
  |  Reported By: robert.watkins@qsipayments.com                               |
  |      CC list: Cc:                                                          |
  +----------------------------------------------------------------------------+
--- 4,13 ----
  |        Bug #: 1085                        Product: Ant                     |
  |       Status: NEW                         Version: 1.3                     |
  |   Resolution:                            Platform: PC                      |
! |     Severity: Enhancement              OS/Version: Other                   |
  |     Priority: Medium                    Component: Core tasks              |
  +----------------------------------------------------------------------------+
! |  Assigned To: conor@cortexebusiness.com.au                                 |
  |  Reported By: robert.watkins@qsipayments.com                               |
  |      CC list: Cc:                                                          |
  +----------------------------------------------------------------------------+
***************
*** 71,74 ****
          at org.apache.tools.ant.Main.main(Main.java:149)
  
  Any ideas? It's not a huge priority (I get around the problem by forking), but 
! it's a nuisance.
--- 71,85 ----
          at org.apache.tools.ant.Main.main(Main.java:149)
  
  Any ideas? It's not a huge priority (I get around the problem by forking), but 
! it's a nuisance.
! 
! ------- Additional Comments From conor@cortexebusiness.com.au  2001-05-10 08:08 -------
! The naming classes included in JDK 1.3 request the classloader from the current 
! thread (getContextClassLoader), regardless of the classloader being used. Since 
! this is a JDK 1.2 feature, it is not currently set by Ant, so the naming lookup 
! uses the system classloader to find the initial context factory. You will 
! either need to fork, as you have been, or have the context factory et al in the 
! classpath.
! 
! I'm changing this to an enhancement which will require the thread classloader 
! to be set via reflection and then reset. 

Mime
View raw message