java - Xmlbeans setter not working in gradle test -


When I run a Java test, which uses XML generated objects, sometimes the setter When using, the object is found in some unknown state. Here is an example (pseudocode):

  XMLBensDock Doc = some XMLBin's Generated Document. Fracture NY instances (); doc.addSomeObject (); XmlbeansObj obj = doc.getSomeObject (); obj.setSomeIntValue (1); After using the 'setSomeIntValue ()' method, if you try and get value it returns an error. However, if you use the 'setSomeIntValue ()' method again, everything works fine and the value is actually set.  

This test runs when the test is started in the grade, if I use the exact same jar which is using Gradal, but to run the test in the ANT, everything works fine. It has been confirmed that both ANT and Gradual versions of Java (1.7.45) are using.

Any idea about why this might happen? We are in the process of switching our manufacturing system from ANT / IV to Gramdal, but if we can not do this then this show may be a stopper Thanks to all help

< div class = "post-text" itemprop = "text">

It seems that it was originally due to gradle due to Java enabled enabling, which does not ant.

Comments

Post a Comment

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -