[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    Re: Report on building JAM with Tiger beta 2
From:       Patrick Calahan <pcal () bea ! com>
Date:       2004-05-31 19:57:54
Message-ID: 5.0.0.25.0.20040531125455.02b81510 () 127 ! 0 ! 0 ! 1
[Download RAW message or body]

Hi Ias.  Right, thanks.  I still have those b51-compatible lines commented 
out because everyone is still using earlier betas to work on xbeans.  As 
soon as everyone can agree to move forward to the next beta (or at least 
something later than b48, which I believe is where this change chame in), 
then I'll go ahead and activate that code as shown in your patch.

Everyone has to move at once, though - once this part of JAM is updated, 
xbeans will not build under anything before b48.

-p



At 06:36 PM 5/31/2004 +0900, Ias wrote:
>I found that the latest JAM on the CVS couldn't be built with Tiger beta 2
>(b51) because com.sun.javadoc slightly changed. I made a patch for resolving
>the trouble.
>
>Hoping the following would be helpful,
>
>Ias
>
>  Index: Javadoc15DelegateImpl.java
>===================================================================
>RCS file:
>/home/cvspublic/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/interna
>l/java15/Javadoc15DelegateImpl.java,v
>retrieving revision 1.6
>diff -u -r1.6 Javadoc15DelegateImpl.java
>--- Javadoc15DelegateImpl.java  25 May 2004 20:44:43 -0000      1.6
>+++ Javadoc15DelegateImpl.java  31 May 2004 09:32:50 -0000
>@@ -20,6 +20,8 @@
>  import org.apache.xmlbeans.impl.jam.internal.javadoc.JavadocClassBuilder;
>  import org.apache.xmlbeans.impl.jam.internal.elements.ElementContext;
>  import org.apache.xmlbeans.impl.jam.JClass;
>+
>+import com.sun.javadoc.AnnotationTypeElementDoc;
>  import com.sun.javadoc.ProgramElementDoc;
>  import com.sun.javadoc.AnnotationDesc;
>  import com.sun.javadoc.Parameter;
>@@ -28,8 +30,6 @@
>  import com.sun.javadoc.FieldDoc;
>  import com.sun.javadoc.ClassDoc;
>  import com.sun.javadoc.SourcePosition;
>-// import com.sun.javadoc.AnnotationTypeElementDoc;
>-import com.sun.javadoc.AnnotationTypeMemberDoc;
>  import com.sun.javadoc.ExecutableMemberDoc;
>
>
>@@ -99,13 +99,13 @@
>                                    SourcePosition sp) {
>      if (sp != null) JavadocClassBuilder.addSourcePosition(dest,sp);
>  //    AnnotationDesc.ElementValuePair[] mvps = src.elementValues();
>-    AnnotationDesc.MemberValuePair[] mvps = src.memberValues();
>+    AnnotationDesc.ElementValuePair[] mvps = src.elementValues();
>      for(int i=0; i<mvps.length; i++) {
>  //      Type jmt = mvps[i].element().returnType();
>-      Type jmt = mvps[i].member().returnType();
>+      Type jmt = mvps[i].element().returnType();
>        String typeName = jmt.qualifiedTypeName();
>  //      String name = mvps[i].element().name();
>-      String name = mvps[i].member().name();
>+      String name = mvps[i].element().name();
>        AnnotationValue aval = mvps[i].value();
>        Object valueObj;
>        try {
>@@ -153,7 +153,7 @@
>          // this is another big chunk of work, just factored into a new
>          // method to keep things cleaner
>  //
>populateArrayMember(dest,mvps[i].element(),(AnnotationValue[])valueObj,sp);
>-
>populateArrayMember(dest,mvps[i].member(),(AnnotationValue[])valueObj,sp);
>+
>populateArrayMember(dest,mvps[i].element(),(AnnotationValue[])valueObj,sp);
>        } else {
>          mContext.getLogger().error("Value of annotation member "+name+" is
>" +
>                                     "of an unexpected type: "+
>@@ -192,7 +192,7 @@
>     */
>    private void populateArrayMember(MAnnotation dest,
>  //                                   AnnotationTypeElementDoc memberDoc,
>-                                   AnnotationTypeMemberDoc memberDoc,
>+                                   AnnotationTypeElementDoc memberDoc,
>                                     AnnotationValue[] annValueArray,
>                                     SourcePosition sp)
>    {
>
>- ---------------------------------------------------------------------
>To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
>Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic