#5 Object methods not available in interfac

open
nobody
None
5
2002-07-22
2002-07-22
No

When I call toString() on a java.util.List, I get:

no such method toString() in class java.util.List
openjava.mop.NoSuchMemberException: method
toString()
at openjava.ptree.MethodCall.getType
(MethodCall.java:237)
at openjava.ptree.util.ExpansionApplier.getType
(ExpansionApplier.java:64)
at openjava.ptree.util.ExpansionApplier.evaluateUp
(ExpansionApplier.java:362)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:784)
at openjava.ptree.MethodCall.accept
(MethodCall.java:183)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:446)
at openjava.ptree.BinaryExpression.accept
(BinaryExpression.java:334)
at openjava.ptree.List.childrenAccept(List.java:258)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:661)
at openjava.ptree.ExpressionList.accept
(ExpressionList.java:135)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:783)
at openjava.ptree.MethodCall.accept
(MethodCall.java:183)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:672)
at openjava.ptree.ExpressionStatement.accept
(ExpressionStatement.java:77)
at openjava.ptree.List.childrenAccept(List.java:258)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:860)
at openjava.ptree.StatementList.accept
(StatementList.java:135)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:794)
at openjava.ptree.MethodDeclaration.accept
(MethodDeclaration.java:260)
at openjava.ptree.List.childrenAccept(List.java:258)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:761)
at openjava.ptree.MemberDeclarationList.accept
(MemberDeclarationList.java:125)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:551)
at openjava.ptree.ClassDeclaration.accept
(ClassDeclaration.java:296)
at openjava.ptree.List.childrenAccept(List.java:258)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:562)
at openjava.ptree.ClassDeclarationList.accept
(ClassDeclarationList.java:125)
at openjava.ptree.NonLeaf.childrenAccept
(NonLeaf.java:397)
at openjava.ptree.util.EvaluationShuttle.visit
(EvaluationShuttle.java:584)
at openjava.ptree.CompilationUnit.accept
(CompilationUnit.java:195)
at openjava.ojc.Compiler.translateCallerSide
(Compiler.java:483)
at openjava.ojc.Compiler.run(Compiler.java:77)
at openjava.ojc.Main.main(Main.java:37)

Discussion


Log in to post a comment.