cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1410158 - /cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java
Date Fri, 16 Nov 2012 02:06:31 GMT
Author: dkulp
Date: Fri Nov 16 02:06:31 2012
New Revision: 1410158

URL: http://svn.apache.org/viewvc?rev=1410158&view=rev
Log:
Another random failure on IBM7 JDK

Modified:
    cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java

Modified: cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java?rev=1410158&r1=1410157&r2=1410158&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java
(original)
+++ cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToIDLGenerationTest.java
Fri Nov 16 02:06:31 2012
@@ -672,16 +672,18 @@ public class WSDLToIDLGenerationTest ext
             idlgen.setGenerateAllBindings(true);            
             idlgen.generateIDL(null);
 
-            InputStream origstream;
-            if ("IBM Corporation".equals(System.getProperty("java.vendor"))) {
-                // The ibm jdk outputs the idl modules in a different order
+            InputStream origstream = getClass().getResourceAsStream("/idlgen/expected_multiplebinding.idl");
+            byte orig[] = inputStreamToBytes(origstream);
+            
+            try {
+                checkIDLStrings(orig, idloutput.toByteArray());           
+            } catch (Throwable ex) {
+                // The ibm jdk SOMTIMES outputs the idl modules in a different order
                 // (still valid idl).
                 origstream = getClass().getResourceAsStream("/idlgen/expected_multiplebinding_ibmjdk.idl");
-            } else {
-                origstream = getClass().getResourceAsStream("/idlgen/expected_multiplebinding.idl");
+                orig = inputStreamToBytes(origstream);
+                checkIDLStrings(orig, idloutput.toByteArray());    
             }
-            byte orig[] = inputStreamToBytes(origstream);
-            checkIDLStrings(orig, idloutput.toByteArray());           
         } finally {
             new File("multiplebinding.idl").deleteOnExit();
         }



Mime
View raw message