You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "olabusayoT (via GitHub)" <gi...@apache.org> on 2025/02/13 23:09:40 UTC
[PR] Fix nullary with side effects error [daffodil]
olabusayoT opened a new pull request, #1437:
URL: https://github.com/apache/daffodil/pull/1437
- add () to test and trace definition/calls
- add () to test defs
DAFFODIL-2152
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix nullary with side effects error [daffodil]
Posted by "olabusayoT (via GitHub)" <gi...@apache.org>.
olabusayoT commented on code in PR #1437:
URL: https://github.com/apache/daffodil/pull/1437#discussion_r1962240510
##########
daffodil-test-ibm1/src/test/scala/org/apache/daffodil/IBMTests.scala:
##########
@@ -132,50 +132,50 @@ object IBMTestsDPAEXT2 extends TdmlSuite {
class IBMTestsDPAEXT2 extends TdmlTests {
val tdmlSuite = IBMTestsDPAEXT2
- @Test def simple_type_properties_text_boolean_13_01 = test
- @Test def simple_type_properties_text_boolean_13_02 = test
+ @Test def simple_type_properties_text_boolean_13_01() = test()
Review Comment:
Unfortunately this didn't work. But we decided to just ignore the warnings instead
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix nullary with side effects error [daffodil]
Posted by "jadams-tresys (via GitHub)" <gi...@apache.org>.
jadams-tresys commented on code in PR #1437:
URL: https://github.com/apache/daffodil/pull/1437#discussion_r1956311333
##########
daffodil-lib/src/test/scala/org/apache/daffodil/lib/util/TestListSerialization.scala:
##########
@@ -22,7 +22,7 @@ import org.junit.Assert.fail
import org.junit.Test
class Thing() extends Serializable {
- var things: Seq[Thing] = _
+ var things: collection.Seq[Thing] = _
Review Comment:
More collection.Seq instead of just Seq; is this necessary? I don't think it is.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix nullary with side effects error [daffodil]
Posted by "olabusayoT (via GitHub)" <gi...@apache.org>.
olabusayoT commented on code in PR #1437:
URL: https://github.com/apache/daffodil/pull/1437#discussion_r1960691706
##########
daffodil-lib/src/test/scala/org/apache/daffodil/lib/util/TestListSerialization.scala:
##########
@@ -22,7 +22,7 @@ import org.junit.Assert.fail
import org.junit.Test
class Thing() extends Serializable {
- var things: Seq[Thing] = _
+ var things: collection.Seq[Thing] = _
Review Comment:
I think you're right. In this case, I can leave it as Seq, but I need to change the assert to not look for Collection.Seq, because in 2.13, the value will be Immutable.Seq.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix nullary with side effects error [daffodil]
Posted by "mbeckerle (via GitHub)" <gi...@apache.org>.
mbeckerle commented on code in PR #1437:
URL: https://github.com/apache/daffodil/pull/1437#discussion_r1956336998
##########
daffodil-test-ibm1/src/test/scala/org/apache/daffodil/IBMTests.scala:
##########
@@ -132,50 +132,50 @@ object IBMTestsDPAEXT2 extends TdmlSuite {
class IBMTestsDPAEXT2 extends TdmlTests {
val tdmlSuite = IBMTestsDPAEXT2
- @Test def simple_type_properties_text_boolean_13_01 = test
- @Test def simple_type_properties_text_boolean_13_02 = test
+ @Test def simple_type_properties_text_boolean_13_01() = test()
Review Comment:
Couldn't we just change the definition of test so that we don't have (and cannot) call it with the ()?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fix nullary with side effects error [daffodil]
Posted by "olabusayoT (via GitHub)" <gi...@apache.org>.
olabusayoT merged PR #1437:
URL: https://github.com/apache/daffodil/pull/1437
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org