Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 987

Summary: Building w/JDK 1.8 fails in GSSUPContextSpi and GSSUPCredentialSpi
Product: JacORB Reporter: Joseph Schwarz <joseph.h.schwarz>
Component: Configuration and BuildAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: major CC: hsommer, jacorb
Priority: P5    
Version: 3.4   
Hardware: PC   
OS: Linux   
Attachments: Log of attempted build with JDK 1.8

Description Joseph Schwarz 2014-06-10 08:51:13 UTC
Here's the javac error output:

     [echo] Compiling project sas. Target: JDK (1.8+)
    [javac] Compiling 17 source files to /home/almamgr/alma/ACS-2014.2/JacORB/classes
    [javac] /home/almamgr/alma/ACS-2014.2/JacORB/src/org/jacorb/security/sas/GSSUPContextSpi.java:43: error: GSSUPContextSpi is not abstract and does not override abstract method inquireSecContext(InquireType) in GSSContextSpi
    [javac] public final class GSSUPContextSpi
    [javac]              ^
    [javac] /home/almamgr/alma/ACS-2014.2/JacORB/src/org/jacorb/security/sas/GSSUPCredentialSpi.java:38: error: GSSUPCredentialSpi is not abstract and does not override abstract method impersonate(GSSNameSpi) in GSSCredentialSpi
    [javac] public final class GSSUPCredentialSpi implements GSSCredentialSpi

In the first case, com.sun.security.jgss.InquireType is defined as an enum, but the argument to the concrete method is an Enum, i.e.,

    public Object inquireSecContext(java.lang.Enum arg0) throws GSSException {
        throw new GSSException(GSSException.FAILURE);
    }

Why not just use InquireType as the argument?
Comment 1 Nick Cross 2014-06-10 09:00:04 UTC
Can you test with 3.5 SNAPSHOT please ? ( i.e. https://github.com/JacORB/JacORB/ )

Thanks
Comment 2 Joseph Schwarz 2014-06-10 10:16:14 UTC
Created attachment 440 [details]
Log of attempted build with JDK 1.8
Comment 3 Joseph Schwarz 2014-06-10 10:17:58 UTC
As a virgin maven user (I was surprised by the change from ant to mvn), I did the following and was rewarded with a slew (88, to be precise) of errors:

1. Downloaded and unpacked the zip from https://github.com/JacORB/JacORB/archive/master.zip
2. Installed maven 3.0.4
3. Created a fresh directory and exported JACORB_HOME to point to it
4. cd JacORB-master
5. mvn clean compile

What am I doing wrong? I have attached a gzip of the build log.
Comment 4 Nick Cross 2014-06-11 15:55:15 UTC
I would recommend using 

mvn clean install -DskipTests=true -DskipPDFGeneration=true
Comment 5 Nick Cross 2014-07-10 16:48:37 UTC
Fixed in upcoming 3.5 release.