Details

    • Type: Sub-task Sub-task
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 1.11
    • Component/s: Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:992)
      at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1298)
      at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:973)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:322)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:354)
      at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:350)
      at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:440)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
      at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:437)
      at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:426)
      at ch.fhnw.i4ds.yadoc.MainTest.main(MainTest.java:44)

        Activity

        Hide
        Marco Soldati added a comment -
        /**
         * The problem are the two comments before the JDK1_2 value.
         * Remove Comment 1 or Comment 2 and everything runs fine.
         */
        public void testTwoCommentsBeforeEnumValue() {
        	JavaDocBuilder builder = new JavaDocBuilder();		
        	String source = 
        		"public enum Source {\n" +
        		"    /** comment 1 */    \n" +
        		"    /** comment 2 */\n" +
        		"    JDK1_2(\"1.2\");\n" +
        		"}\n";	
        	builder.addSource(new StringReader(source));
        }
        
        Show
        Marco Soldati added a comment - /** * The problem are the two comments before the JDK1_2 value. * Remove Comment 1 or Comment 2 and everything runs fine. */ public void testTwoCommentsBeforeEnumValue() { JavaDocBuilder builder = new JavaDocBuilder(); String source = " public enum Source {\n" + " /** comment 1 */ \n" + " /** comment 2 */\n" + " JDK1_2(\" 1.2\ ");\n" + "}\n" ; builder.addSource( new StringReader(source)); }
        Robert Scholte made changes -
        Field Original Value New Value
        Summary Exception #5 Parser exception due to double javadoc comment
        Hide
        Robert Scholte added a comment -

        Fixed in ref 697

        Show
        Robert Scholte added a comment - Fixed in ref 697
        Robert Scholte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.11 [ 16104 ]
        Assignee Robert Scholte [ rfscholte ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Marco Soldati
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: