Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-1529 Remove the autoCommit getter and change variable to Boolean #653

Merged
merged 2 commits into from Nov 21, 2011

Conversation

galderz
Copy link
Member

@galderz galderz commented Nov 18, 2011

https://issues.jboss.org/browse/ISPN-1529

The schema generator was getting confused and assuming that the XML attribute should be derived from the getter. That was cos the instance variable was using boolean instead of Boolean.

@galderz
Copy link
Member Author

galderz commented Nov 18, 2011

Actually, this ain't finished... hold off...

@galderz
Copy link
Member Author

galderz commented Nov 18, 2011

We're lacking testing overriding of default values with configurations read from XML. Sure, this is going away but I've found a bug with my original solution for this which wasn't caught by XmlFileParsingTest. I'll fix it asap...

@galderz
Copy link
Member Author

galderz commented Nov 18, 2011

This should be ready now.

@@ -1696,8 +1696,7 @@ public class Configuration extends AbstractNamedCacheConfigurationBean {
protected TransactionMode transactionMode = TransactionMode.NON_TRANSACTIONAL;

@ConfigurationDocRef(bean = Configuration.class, targetElement = "isTransactionAutoCommit")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't targetElement be "isAutoCommit"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course Galder, I missed the bean = Configuration.class part :)

* First, Remove the autoCommit getter and change variable to Boolean.
The schema generator was getting confused and assuming that the XML
attribute should be derived from the getter. That was cos the instance
variable was using boolean instead of Boolean.
* Secondly, autoCommit will only be detected if marked as overriden.
Apart from fixing this by creating a setter, transform XML file parsing
test in order to test overrides for named cache configuration tests.
@danberindei danberindei merged commit 56d47be into infinispan:master Nov 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants