Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6737323
Votes 0
Synopsis (doc) Typo in javadoc for SocketPermission
Category java:classes_net
Reported Against
Release Fixed 7(b51)
State 10-Fix Delivered, bug
Priority: 5-Very Low
Related Bugs
Submit Date 14-AUG-2008
Description
Javadoc for the SocketPermission class at:
  http://java.sun.com/javase/6/docs/api/java/net/SocketPermission.html
has a typo at:
  ...
  Similarly, if the following permission:
    p1 = new SocketPermission("puffin.eng.sun.com:7777", "connect,accept"); <--
    p2 = new SocketPermission("localhost:1024-", "accept,connect,listen");
  is granted to some code, it allows that code to accept connections on, connect to, or listen
  on any port between 1024 and 65535 on the local host.
  ...

The line with "p1 = ... " is redundant here.
Posted Date : 2008-08-14 16:55:53.0
Work Around
N/A
Evaluation
remove redundant line form javadoc.
Posted Date : 2009-03-02 13:47:06.0

http://hg.openjdk.java.net/jdk7/tl/jdk/rev/03001e92d155
Posted Date : 2009-03-04 13:38:58.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang