• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inconsistency in APIs

 
Devendra Joshi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getAttributeNamesInScope(int scope) API in JspContext class returns Enumeration<String>, where as the getAttributeNames() APIs in other classes (ServletRequest, ServletContext etc) returns Enumeration (not parameterized).

Are we expected to remember such differences/in-consistencies for SCWCD 1.5?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're looking at the wrong material. The exam uses the J2EE 1.4 specs and APIs. In 1.4 they all return a plain old Enumeration.
 
Arjan Times
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marc Peabody:
You're looking at the wrong material. The exam uses the J2EE 1.4 specs and APIs. In 1.4 they all return a plain old Enumeration.


As I mentioned before in other topics; this is exactly why it's so highly confusing that SCWCD 5 is about 1.4 and not about 5.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic