bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/26971] New: javax.naming.directory.BasicAttribute$BasicAt


From: johnandtina at byu dot net
Subject: [Bug classpath/26971] New: javax.naming.directory.BasicAttribute$BasicAttributeEnumeration is broken
Date: 1 Apr 2006 00:52:39 -0000

bsh % import javax.naming.directory.*;
bsh % a = new BasicAttribute("test");
bsh % a.add("test1");
bsh % a.add("test2");
bsh % show();
bsh % e.hasMore();
<true>
bsh % e.next();
<test1>
bsh % e.hasMore();
<true>
bsh % e.next();
<test2>
bsh % e.hasMore();
<true>  <--- should return false here!
bsh % e.next();
// Error: // Uncaught Exception: Method Invocation e.next : at Line: 13 : in
file: <unknown file> : e .next ( ) 

Target exception: java.util.NoSuchElementException: no more elements

java.util.NoSuchElementException: no more elements
   at
javax.naming.directory.BasicAttribute$BasicAttributeEnumeration.nextElement
(BasicAttribute.java:332)
   at javax.naming.directory.BasicAttribute$BasicAttributeEnumeration.next
(BasicAttribute.java:321)
   at java.lang.reflect.Method.invokeNative (Native Method)
   at java.lang.reflect.Method.invoke (Method.java:355)
   at bsh.Reflect.invokeMethod (Unknown Source)
   at bsh.Reflect.invokeObjectMethod (Unknown Source)
   at bsh.Name.invokeMethod (Unknown Source)
   at bsh.BSHMethodInvocation.eval (Unknown Source)
   at bsh.BSHPrimaryExpression.eval (Unknown Source)
   at bsh.BSHPrimaryExpression.eval (Unknown Source)
   at bsh.Interpreter.run (Unknown Source)
   at bsh.Interpreter.main (Unknown Source)


-- 
           Summary: javax.naming.directory.BasicAttribute$BasicAttributeEnum
                    eration is broken
           Product: classpath
           Version: 0.90
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: johnandtina at byu dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26971





reply via email to

[Prev in Thread] Current Thread [Next in Thread]