The following comment has been added to this issue:

     Author: Mark Mindenhall
    Created: Mon, 6 Jun 2005 11:40 AM
       Body:
The following enum still breaks with the latest patch.  It does not expect to 
encounter the semicolon following the opening bracket on the first line.



public static enum Flag {;
                
        public static String getDBValue(boolean indicator) {
                String key = null;
                        if (indicator) {
                                key = CHAR_TRUE;
                        } else {
                                key = CHAR_FALSE;
                        }
        
                return key;
        }
                
        public static boolean getFlagType(String indicator) {
                boolean result = false;
                        
                if (indicator != null)
                        if (indicator.equals(CHAR_TRUE)) {
                                result = true;
                        }
                return result;
        }
                
        public static boolean getFlagType(String indicator, boolean 
defaultValue) {
                boolean result = false;
                        
                if (indicator != null)
                        if (indicator.equals(CHAR_TRUE)) {
                                result = true;
                        } else if (indicator.equals(CHAR_FALSE)) {
                                result = false;
                        } else {
                                result = defaultValue;
                        }
                return result;
        }
                
        public static final String CHAR_FALSE = "F";
        public static final String CHAR_TRUE = "T";
};

---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41?page=comments#action_16684

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XJD-41
    Summary: Support Java 1.5 Syntax ?
       Type: Improvement

     Status: Open
   Priority: Critical

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XJavaDoc
 Components: 
             Parser
   Fix Fors:
             1.2
   Versions:
             1.0.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Hao Chen

    Created: Mon, 1 Mar 2004 9:11 AM
    Updated: Mon, 6 Jun 2005 11:40 AM

Description:
Is there any plan to upgrade the parser to support Java 1.5 syntax?


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to