[PR] XBEAN-454 revision - fix build on jdk 8 [geronimo-xbean ]

jungm (via GitHub) <[email protected]>
Newsgroups gmane.comp.java.geronimo.devel
Message-ID <[email protected]>
jungm opened a new pull request, #51:
URL: https://github.com/apache/geronimo-xbean/pull/51

   See output of `javap -v java.net.URL` for JDK 1.8:
   ```
     public java.net.URL(java.lang.String) throws java.net.MalformedURLException;
       descriptor: (Ljava/lang/String;)V
       flags: ACC_PUBLIC
       Code:
         stack=3, locals=2, args_size=2
            0: aload_0
            1: aconst_null
            2: aload_1
            3: invokespecial #44                 // Method "<init>":(Ljava/net/URL;Ljava/lang/String;)V
            6: return
         LineNumberTable:
           line 457: 0
           line 458: 6
       Exceptions:
         throws java.net.MalformedURLException
   ```
   
   vs JDK 9:
   ```
     public java.net.URL(java.lang.String) throws java.net.MalformedURLException;
       descriptor: (Ljava/lang/String;)V
       flags: (0x0001) ACC_PUBLIC
       Code:
         stack=3, locals=2, args_size=2
            0: aload_0
            1: aconst_null
            2: aload_1
            3: invokespecial #38                 // Method "<init>":(Ljava/net/URL;Ljava/lang/String;)V
            6: return
         LineNumberTable:
           line 468: 0
           line 469: 6
         LocalVariableTable:
           Start  Length  Slot  Name   Signature
               0       7     0  this   Ljava/net/URL;
               0       7     1  spec   Ljava/lang/String;
       Exceptions:
         throws java.net.MalformedURLException
   ```
   
   running this test on jdk 1.8 is broken and makes no sense


-- 
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: dev-unsubscribe-nmThH5wfGryY1pf4d8vP8EB+6BGkLq7r@public.gmane.org

For queries about this service, please contact Infrastructure at:
users-pF6z+fRhj9EyzMRdD/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.