Menu

#16 failure to loop in ByteCodeCallsSnippetF

Version_0.6
open
nobody
5
2002-06-15
2002-06-15
Anonymous
No

pulled from cvs today, got the following. fixed by
changing line 108 from
attribute = (CodeAttribute)genAttributes[0];
to
attribute = (CodeAttribute)genAttributes[counter];

C:\nounit\batch>java -
classpath "C:\nounit\nounit.jar;C:\nounit\jdom.jar;C:\data\
projects\jaxp-1.1
\jaxp.jar;C:\nounit\parser.jar;C:\nounit\xalan.jar;C:\nounit\
xerces.jar;C:\nounit\jclasslib.jar;"
net.firstpartners.nounit.ui.command.CommandLineProce
ssor start_dir C:\jide\classes\com\unext\jide\database\
output_dir C:\nounit\output\ report_class net
firstpartners.nounit.report.CallsReport report_name
C:\nounit\xslt\no-unit.xsl output_file no-unit.htm

Exception in thread "main"
java.lang.ClassCastException:
org.gjt.jclasslib.structures.attributes.ExceptionsAttribute
at
net.firstpartners.nounit.reader.bytecode.ByteCodeCallsS
nippetFactory.<init>
(ByteCodeCallsSnippetFactory.java:108)
at
net.firstpartners.nounit.reader.bytecode.ByteCodeMethod
SnippetFactory.addMethods
(ByteCodeMethodSnippetFactory.java:111)
at
net.firstpartners.nounit.reader.bytecode.ByteCodeMethod
SnippetFactory.getSnippets
(ByteCodeMethodSnippetFactory.java:57)
at
net.firstpartners.nounit.reader.bytecode.ByteCodeClassS
nippetFactory.getSnippets
(ByteCodeClassSnippetFactory.java:77)
at
net.firstpartners.nounit.reader.bytecode.ByteCodePacka
geSnippetFactory.getSnippets
(ByteCodePackageSnippetFactory.java:76)
at
net.firstpartners.nounit.reader.bytecode.ByteCodeProject
SnippetFactory.getSnippets
(ByteCodeProjectSnippetFactory.java:80)
at
net.firstpartners.nounit.ui.common.Processor.transform
(Processor.java:48)
at
net.firstpartners.nounit.ui.command.CommandLineProce
ssor.main(CommandLineProcessor.java:54)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB