Skip to content

Commit 8af1a17

Browse files
authored
Merge pull request #23 from cicsdev/aj-6.1
java 17 updates for 6.1
2 parents b311983 + 1ab09d6 commit 8af1a17

File tree

9 files changed

+24
-19
lines changed

9 files changed

+24
-19
lines changed

.github/workflows/java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
jdk: [8, 11, 17, 21]
32+
jdk: [17, 21]
3333
steps:
3434
- uses: actions/checkout@v3
3535
- name: Set up JDK ${{ matrix.jdk }}
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
jdk: [8, 11, 17, 21]
51+
jdk: [17, 21]
5252
steps:
5353
- uses: actions/checkout@v3
5454
- name: Set up JDK ${{ matrix.jdk }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
33
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
55
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6-
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.compliance=17
77
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
88
org.eclipse.jdt.core.compiler.debug.localVariable=generate
99
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -12,4 +12,4 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
1212
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
1313
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
1414
org.eclipse.jdt.core.compiler.release=disabled
15-
org.eclipse.jdt.core.compiler.source=1.8
15+
org.eclipse.jdt.core.compiler.source=17

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This sample demonstrates how to code, build, and deploy a CICS Java OSGi applica
77
* CICS TS V6.1 or later
88
* A connected CICS DB2CONN resource. For more information, see [CONFIGURING](#configuring)
99
* An OSGi JVM server
10-
* Java SE 1.8 or later on the workstation
10+
* Java SE 17 or later on the workstation
1111
* IBM Db2 V11 or later on z/OS
1212

1313

@@ -37,7 +37,7 @@ Choose from the following approach:
3737

3838
### Option 1 - Building with Eclipse
3939

40-
The sample comes pre-configured for use with a standard JDK 1.8 and the CICS TS V5.5 Java EE 6/7 Target Platform. When you initially import the project to your IDE, if your IDE is not configured for a JDK 1.8, or does not have CICS Explorer SDK installed with the correct 'target platform' set, you might experience local project compile errors.
40+
The sample comes pre-configured for use with a standard JDK 17 and the CICS TS V6.1 Java EE 9 Target Platform. When you initially import the project to your IDE, if your IDE is not configured for a JDK 17, or does not have CICS Explorer SDK installed with the correct 'target platform' set, you might experience local project compile errors.
4141

4242
To resolve issues:
4343
* ensure you have the CICS Explorer SDK plug-in installed

cics-java-osgi-jdbc-app/.classpath

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src/main/java"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
5-
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
10+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
611
<classpathentry kind="src" path=".apt_generated">
712
<attributes>
813
<attribute name="optional" value="true"/>
914
</attributes>
1015
</classpathentry>
11-
<classpathentry kind="output" path="bin/"/>
16+
<classpathentry kind="output" path="bin/default"/>
1217
</classpath>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
eclipse.preferences.version=1
22
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
33
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
55
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6-
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.compliance=17
77
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
88
org.eclipse.jdt.core.compiler.debug.localVariable=generate
99
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -12,4 +12,4 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
1212
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
1313
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
1414
org.eclipse.jdt.core.compiler.release=disabled
15-
org.eclipse.jdt.core.compiler.source=1.8
15+
org.eclipse.jdt.core.compiler.source=17

cics-java-osgi-jdbc-app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ plugins
77

88
java
99
{
10-
sourceCompatibility = JavaVersion.VERSION_1_8
11-
targetCompatibility = JavaVersion.VERSION_1_8
10+
sourceCompatibility = JavaVersion.VERSION_17
11+
targetCompatibility = JavaVersion.VERSION_17
1212
}
1313

1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bin.includes = META-INF/,\
22
.
33
source.. = src/main/java/
4-
jre.compilation.profile = JavaSE-1.8
4+
jre.compilation.profile = JavaSE-17
55
output.. = bin/

etc/jvmprofiles/DFHOSGI.jvmprofile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Copyright IBM Corp. 2011, 2023 #
1313
# #
1414
#######################################################################
15-
JAVA_HOME=/usr/lpp/java/J8.0_64/
15+
JAVA_HOME=/java/java17_64
1616
WORK_DIR=.
1717

1818
-Xms32M

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<properties>
4949
<!-- CICS bundle properties -->
5050
<cics.jvmserver>DFHOSGI</cics.jvmserver>
51-
<java.version>1.8</java.version>
51+
<java.version>17</java.version>
5252

5353
<!-- Java project properties -->
5454
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)