OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000672OMNeT++IDE / documentation generatorpublic2013-08-22 12:042013-08-26 13:43
Reporterandras 
Assigned Tolevy 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.10
Product Version4.3 
Target VersionFixed in Version4.3.1 
Summary0000672: generating neddoc from INET fails
DescriptionBoth OMNeT++ 4.2.2 and 4.3 stop with the following exception:

An internal error occurred during: "Generating NED Documentation...".
java.lang.IllegalArgumentException: Illegal group reference

It chokes on the @include line in src/inet-doc.ned:

//
// <nohtml>
// @include ../WHATSNEW
// </nohtml>
// 



Place of error in the code:

DocumentationGenerator.java:
    private String processIncludes(String comment, Stack<File> parents) throws IOException {
        if (comment.contains("@include")) {
            Matcher matcher = includePattern.matcher(comment);
            StringBuffer buffer = new StringBuffer();

            while (matcher.find()) {
                File dir = parents.peek().getParentFile();
                File file = new File(dir, matcher.group(1)).getCanonicalFile();
                String content = getFileContent(file, parents);
                matcher.appendReplacement(buffer, content); <-----------
            }

            matcher.appendTail(buffer);
            comment = buffer.toString();
        }
        return comment;
    }


The cause might be a JRE regression, because relevant parts of our code haven't changed since 2011.

$ java -version
java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-08-22 12:04 andras New Issue
2013-08-26 13:43 levy Status new => resolved
2013-08-26 13:43 levy Fixed in Version => 4.3.1
2013-08-26 13:43 levy Resolution open => fixed
2013-08-26 13:43 levy Assigned To => levy


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker