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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to