[jboss-jira] [JBoss JIRA] (WFLY-9597) UndertowSubsystemParser_5_0 could be instantiated twice: once as a reader and once as a writer

Tomaz Cerar (JIRA) issues at jboss.org
Tue Dec 5 17:38:00 EST 2017


    [ https://issues.jboss.org/browse/WFLY-9597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497643#comment-13497643 ] 

Tomaz Cerar commented on WFLY-9597:
-----------------------------------

It doesn't really matter.

This is done so we can garbage collect better.

Writer is only created when it is needed, which in most common scenario is not very often, as usually you just start the server (that reads the config) and than unless you ever change config at runtime (which is rare in production) writer never gets created.

so in short. this is by design that makes readers & writers short lived for the purpose when they are needed.


> UndertowSubsystemParser_5_0 could be instantiated twice: once as a reader and once as a writer
> ----------------------------------------------------------------------------------------------
>
>                 Key: WFLY-9597
>                 URL: https://issues.jboss.org/browse/WFLY-9597
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>            Reporter: Radoslav Husar
>            Assignee: Tomaz Cerar
>
> The org.wildfly.extension.undertow.UndertowSubsystemParser_5_0#xmlDescription could be created twice, the first and last line in the diff should return the same instance or use different approach: https://github.com/rhusar/wildfly/blob/7dbc8bd0c8bcdae5db61ecdff1484a422cf4b92c/undertow/src/main/java/org/wildfly/extension/undertow/UndertowExtension.java#L100-L113
> Most likely the same issue is in multiple places.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list