santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42061] Method to disable XMLUtils.addReturnToElement
Date Thu, 16 Apr 2009 19:30:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=42061





--- Comment #5 from sean.mullan@sun.com  2009-04-16 12:30:11 PST ---

(In reply to comment #4)

> My point is that enforcing whether to insert new-lines or not by polling a
> system property once is unnecessarily restrictive, as it doesn't give the
> programmer any control over this. 

Agree. Personally, I'm not a big fan of system properties. They have their
place of course, and are good for workarounds where the API can't be changed,
or you can't or don't want to change your application. In hindsight I think I
should have initially added an API to control this behavior on a per signature
basis. I think adding a static method to toggle this behavior could cause more
harm than good. 

> I guess ideally there should be no static variable which controls this for all
> applications, and it should be done by non-static methods on each of the
> classes. 

So what I'll do is leave this open to add a method on a per Signature basis, as
that seems easy enough to add for the next release.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message