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 17576] New: - org/apache/bcel/classfile/FieldOrMethod not found in classconstants
Date Mon, 03 Mar 2003 00:46:19 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=17576>.
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=17576

org/apache/bcel/classfile/FieldOrMethod not found in classconstants

           Summary: org/apache/bcel/classfile/FieldOrMethod not found in
                    classconstants
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: abattenhouse@austin.rr.com


I defined a simple versioning target of the form:
<loadproperties srcfile="Version.class">
  <filterchain>
    <classconstants/>
  </filterchain>
</loadproperties>

When I execute it I get the following error:
java.lang.NoClassDefFoundError: org/apache/bcel/classfile/FieldOrMethod
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at org.apache.tools.ant.filters.ClassConstants.read(ClassConstants.java:
144)
        at org.apache.tools.ant.filters.BaseFilterReader.readLine(BaseFilterRead
er.java:208)
        at org.apache.tools.ant.filters.PrefixLines.read(PrefixLines.java:137)
        at org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilterReader.j
ava:123)
        at java.io.Reader.read(Reader.java:102)
        at org.apache.tools.ant.util.FileUtils.readFully(FileUtils.java:793)
        at org.apache.tools.ant.filters.util.ChainReaderHelper.readFully(ChainRe
aderHelper.java:238)
        at org.apache.tools.ant.taskdefs.LoadProperties.execute(LoadProperties.j
ava:139)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

When I look at the source code, my 1.5.1 source drop says JAVA_CLASS_HELPER 
should be "org.apache.tools.ant.filters.util.JavaClassHelper", but I see from 
the comments at the top of the ClassConstants.java file that "This filter uses 
the BCEL external toolkit". So I'm wondering if somehow the 1.5.1 classes I 
downloaded were compiled from the source I'm looking at.

Mime
View raw message