148. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/25/2018 2:13:06 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

148.1 Files compared

# Location File Last Modified
1 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\tools\internal\ws\wscompile JavaCompilerHelper.java Mon Jan 22 14:46:46 2018 UTC
2 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\com\sun\tools\internal\ws\wscompile JavaCompilerHelper.java Wed Sep 12 16:46:42 2018 UTC

148.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 184
Changed 2 4
Inserted 0 0
Removed 0 0

148.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

148.4 Active regular expressions

No regular expressions were active.

148.5 Comparison detail

  1   /*
  2    * Copyrig ht (c) 199 7, 2012, O racle and/ or its aff iliates. A ll rights  reserved.
  3    * DO NOT  ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER.
  4    *
  5    * This co de is free  software;  you can r edistribut e it and/o r modify i t
  6    * under t he terms o f the GNU  General Pu blic Licen se version  2 only, a s
  7    * publish ed by the  Free Softw are Founda tion.  Ora cle design ates this
  8    * particu lar file a s subject  to the "Cl asspath" e xception a s provided
  9    * by Orac le in the  LICENSE fi le that ac companied  this code.
  10    *
  11    * This co de is dist ributed in  the hope  that it wi ll be usef ul, but WI THOUT
  12    * ANY WAR RANTY; wit hout even  the implie d warranty  of MERCHA NTABILITY  or
  13    * FITNESS  FOR A PAR TICULAR PU RPOSE.  Se e the GNU  General Pu blic Licen se
  14    * version  2 for mor e details  (a copy is  included  in the LIC ENSE file  that
  15    * accompa nied this  code).
  16    *
  17    * You sho uld have r eceived a  copy of th e GNU Gene ral Public  License v ersion
  18    * 2 along  with this  work; if  not, write  to the Fr ee Softwar e Foundati on,
  19    * Inc., 5 1 Franklin  St, Fifth  Floor, Bo ston, MA 0 2110-1301  USA.
  20    *
  21    * Please  contact Or acle, 500  Oracle Par kway, Redw ood Shores , CA 94065  USA
  22    * or visi t www.orac le.com if  you need a dditional  informatio n or have  any
  23    * questio ns.
  24    */
  25  
  26   package co m.sun.tool s.internal .ws.wscomp ile;
  27  
  28   import com .sun.istac k.internal .tools.Par allelWorld ClassLoade r;
  29   import com .sun.tools .internal. ws.resourc es.Javacom pilerMessa ges;
  30  
  31   import jav a.io.File;
  32   import jav a.io.Outpu tStream;
  33   import jav a.io.Print Writer;
  34   import jav a.lang.ref lect.Invoc ationTarge tException ;
  35   import jav a.lang.ref lect.Metho d;
  36   import jav a.net.Malf ormedURLEx ception;
  37   import jav a.net.URL;
  38   import jav a.net.URIS yntaxExcep tion;
  39  
  40   /**
  41    * A helpe r class to  invoke ja vac.
  42    *
  43    * @author  WS Develo pment Team
  44    */
  45   class Java CompilerHe lper{
  46       static  File getJ arFile(Cla ss clazz)  {
  47           UR L url = nu ll;
  48           tr y {
  49                url = Pa rallelWorl dClassLoad er.toJarUr l(clazz.ge tResource( '/'+clazz. getName(). replace('. ','/')+".c lass"));
  50                return n ew File(ur l.toURI()) ;
  51           }  catch (Cla ssNotFound Exception  e) {
  52                // if we  can't fig ure out wh ere JAXB/J AX-WS API  are, we co uldn't hav e been exe cuting thi s code.
  53                throw ne w Error(e) ;
  54           }  catch (Mal formedURLE xception e ) {
  55                // if we  can't fig ure out wh ere JAXB/J AX-WS API  are, we co uldn't hav e been exe cuting thi s code.
  56                throw ne w Error(e) ;
  57           }  catch (URI SyntaxExce ption e) {
  58                // url.t oURI() is  picky and  doesn't li ke ' ' in  URL, so th is is the  fallback
  59                return n ew File(ur l.getPath( ));
  60           }
  61       }
  62  
  63       static  boolean c ompile(Str ing[] args , OutputSt ream out,  ErrorRecei ver receiv er){
  64           Cl assLoader  cl = Threa d.currentT hread().ge tContextCl assLoader( );
  65           tr y {
  66                /* try t o use the  new compil er */
  67                Class co mSunToolsJ avacMainCl ass =
  68                         cl.loadCla ss("com.su n.tools.ja vac.Main") ;
  69                try {
  70                    Meth od compile Method =
  71                             comSun ToolsJavac MainClass. getMethod(
  72                                      "compile ",
  73                                      compileM ethodSigna ture);
  74                         Object res ult =
  75                                 co mpileMetho d.invoke(
  76                                          null , args, ne w PrintWri ter(out));
  77                         return res ult instan ceof Integ er && (Int eger) resu lt == 0;
  78                } catch  (NoSuchMet hodExcepti on e2) {
  79                      receiver.e rror(Javac ompilerMes sages.JA DNS  MPILER_NOS UCHMETHOD_ ERROR("get Method(\"c ompile\",  Class[])") , e2);
  80                } catch  (IllegalAc cessExcept ion e) {
  81                    rece iver.error (e);
  82                } catch  (Invocatio nTargetExc eption e)  {
  83                    rece iver.error (e);
  84                }
  85           }  catch (Cla ssNotFound Exception  e) {
  86                  receiver.e rror(Javac ompilerMes sages.JA DNS  MPILER_CLA SSPATH_ERR OR("com.su n.tools.ja vac.Main") , e);
  87           }  catch (Sec urityExcep tion e) {
  88                receiver .error(e);
  89           }
  90           re turn false ;
  91       }
  92  
  93       privat e static f inal Class [] compile MethodSign ature = {S tring[].cl ass, Print Writer.cla ss};
  94   }