#1613 closed defect (fixed)

fails to build with Java 9

Reported by: afif Owned by:
Priority: normal Milestone:
Component: sge Version: 8.1.9
Severity: minor Keywords:
Cc:

Description

This is Debian #875404:
From the Java9 pitfalls page linked below, I think the problem in SGE
has to do with using -source 1.5 when building the Java component.

regards
Afif

~
Source: gridengine
Version: 8.1.9+dfsg
Severity: normal
User: debian-java@…
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

sun.rmi, sun.management packages seem to have gone. They're not on the
list of things moved to modules, but maybe they have been!

Note that without ant 1.9.9-5 UNRELEASED you won't see this error.

Build log:

[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/JGDISecurityManager.java:34:
warning: [deprecation] RMISecurityManager in java.rmi has been deprecated

[java] [javac] import java.rmi.RMISecurityManager;
[java] [javac]
[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:62:
warning: UnicastServerRef? is internal proprietary API and may be removed
in a future release

[java] [javac] import sun.rmi.server.UnicastServerRef?;
[java] [javac]
[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:63:
warning: UnicastServerRef2 is internal proprietary API and may be
removed in a future release

[java] [javac] import sun.rmi.server.UnicastServerRef2;
[java] [javac]
[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:64:
error: cannot find symbol

[java] [javac] import sun.management.Agent;
[java] [javac]
[java] [javac] symbol: class Agent
[java] [javac] location: package sun.management
[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:65:
error: cannot find symbol

[java] [javac] import sun.management.AgentConfigurationError?;
[java] [javac]
[java] [javac] symbol: class AgentConfigurationError?
[java] [javac] location: package sun.management
[java] [javac]

/build/gridengine-8.1.9+dfsg/source/libs/jgdi/src/com/sun/grid/jgdi/management/ConnectorBootstrap.java:66:
error: cannot find symbol

[java] [javac] import static

sun.management.AgentConfigurationError?.*;

Cheers,
Chris.
~

Change History (1)

comment:1 Changed 14 months ago by admin

  • Resolution set to fixed
  • Status changed from new to closed

In 4876/sge:

Update javac versions

Note: See TracTickets for help on using tickets.