ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10682] New: - AntClassLoader error on "sun/reflect/MethodAccessorImpl"
Date Thu, 11 Jul 2002 12:45:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10682>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10682

AntClassLoader error on  "sun/reflect/MethodAccessorImpl"

           Summary: AntClassLoader error on
                    "sun/reflect/MethodAccessorImpl"
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: thorsten.sommermann@vsa.de


The error occurs, when launching a "java"-task in the same VM (no fork). I ran 
it on win2000 (SP2) with jdk1.4.0_01 and tried to invoke the Castor XML binder. 
Castor obviously used a "sun.reflect.MethodAccessorImpl" instance. A debugging 
session on ant showed the reason for not finding the appropriate class. I fixed 
the error in the following two classes:

org.apache.tools.ant.util.JavaEnvUtils: method "buildJrePackages()"

adding a new entry within the case block:

    case 12:
      jrePackages.addElement("sun.misc");
      jrePackages.addElement("sun.reflect");    <----- add entry


org.apache.tools.ant.AntClassLoader: Constructor

"addJavaLibraries" de-comment:

    this.parentFirst = parentFirst;
    //TODO: turn on
    addJavaLibraries();                  <-- was commented out !
    addSystemPackageRoot("java");
    addSystemPackageRoot("javax");

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message