Project

Profile

Help

generateId(/) in console in SaxonHe 11.1

Added by Vladimir Nesterovsky about 2 years ago

I have console filled with messages like:

     [java] generateId(/)
     [java] generateId(/)
     [java] generateId(/)
     [java] generateId(/)
     [java] generateId(/)

I think this is result of following print in TinyDocumentImpl:

    public void generateId(/*@NotNull*/ StringBuilder buffer) {
        System.err.println("generateId(/)");
        buffer.append('d');
        buffer.append(getTreeInfo().getDocumentNumber());
    }

Replies (2)

RE: generateId(/) in console in SaxonHe 11.1 - Added by Michael Kay about 2 years ago

Ouch, very embarrassing.

We used to have a convention that any println() statements added for debugging carried a "//KILROY" comment, and then you could search for "KILROY" at any time thereafter to track them down. Must reinstate that habit.

Meanwhile a search for System.err.println( is rather more tedious, but probably worth doing.

RE: generateId(/) in console in SaxonHe 11.1 - Added by Michael Kay about 2 years ago

I did a bit of a search for System.err.println and the vast majority of calls were safely on paths where diagnostics have to be explicitly enabled. I also found one or two on exception paths that should never happen, and I've tidied these up.

Fixes committed without raising a bug report.

    (1-2/2)

    Please register to reply