Cucumber, Java17: allowing step definition with lambda expression cucumber 7.1.1 - cucumber

Trying to update the project with Java 17. It doesn't support cucumber-java8. If I try to upgrade cucumber- java to higher version like 7.1.1. I don't find that it allows step definition as lambda expression.
I tried few lower versions but it doesn't allow this feature above jdk 12

Related

Migrated from commons-lang-2.6 to commons-lang3.12.0, facing error: NestableException

Recently migrated from commons-lang-2.6 to commons-lang3.12.0, getting below error: org.apache.commons.lang.exception.NestableException
How to resolve that?
Facing this issue as apache has taken support from Nestableexception in commons-lang3
moreover your java version might be older. They have used java 5 in lowest version of commons-lang3, and in version: commons-lang3.12.0.jar, they have used java 8+
So, if you want to update commons-lang, need to upgrade jdk also. Thats the only solution.
https://commons.apache.org/proper/commons-lang/article3_0.html
(see under nested exception)
https://commons.apache.org/proper/commons-lang/download_lang.cgi

Does Groovy 2.5 support Java 13?

I'm trying to understand if Apache Groovy 2.5 (latest stable release) supports Java 13. As per System Requirements page it should be fine to use any JDK 1.7+.
However when I try to compile my Spock tests with Gradle 6 on Java 13 I get the following error:
Caused by: BUG! exception in phase 'semantic analysis'
in source unit '/home/myself/project/Test.groovy'
Unsupported class file major version 57
Could it be due to GROOVY-9020 or is Apache Groovy 2.5 not officially supporting Java 13?
Updating to Groovy 2.5.7 or newer solves the problem. In my case transitive Spock dependencies used an older version of Groovy.
The root cause was ASM library which was reported in GROOVY-9020 and GROOVY-9055 and fixed in upgraded ASM to 7.1, added Java 13 to CompilerConfiguration #887 pull request.
Reported the issue under Update Spock 1.3-groovy-2.5 to support Java 13 #1051.

Compatibility of JBehave and Cucumber with Java 11

I am successfully using Java 8 with JBehave. Now I would like to switch to Java 11, but find no information about the JBehave compatibility.
Using Cucumber instead would also be possible, but here I only found news from 2/2019 saying that Cucumber is only partially compatible.
Does anybody have experiences with Java 11 and one of these BDD tools?
JBehave 4.5.1 is fully compatible with Java 11.
I've successfully been using latest JBehave versions with Java 9, 10, 11. No Java-specific issues are found.

Is IBM Maximo 7.6 businessobject jar compiled in Java 1.8 compatible to run in java 1.7?

I have got jar compiled in java 1.8 from maximo dir and on my machine i have java 1.7 installed do i need to update my machine java before i run this jar. I can not run it before knowing this since it will get recorded in some logs and will update some server side files.
This is more of a Java question than a Maximo question, but no, it will not. You will get an "Unsupported major.minor version 52.0" if you do. This is not because of any features issue, this is simply because the bytecode is tagged as being from Java 8 and so earlier JREs will not run it.
Now this assumes you actually compiled the class files using Java 8, which probably only happened if you have custom code in there. If you are just using the out-of-the-box Maximo classes, those came pre-compiled (in I don't recall which version of Java) and so all you might have done was to bundle them into a jar, or more likely into the Maximo ear (since you don't run the businessobjects.jar). In that case, it doesn't matter what version of Java you used to created the jar/ear, it will run on any version of Java that is the same as or higher than whatever version IBM used to compile the code into classes.

Visual Studio 2015 C# ANTLR

To convince my employers of the benefits of ANTLR and StringTemplate, I constructed a small demonstration first in Java. But Java is not one of our preferred languages, so I translated it to C#. Using VS2015 (Community Edition) and various instructions on the net I got only so far. I now get
ANTLR cannot generate 'org.antlr.v4.codegen.CSharp_v4_5_2Target' code as of version 4.3
Incompatible versions? Which versions of what libraries are compatible for a successful build. I could not work out how to use GitHub. There didn't seem to be a package to download, and I could not see how to download a set of files to compile.
Update 1
Randomly installing versions of whatever I can find, I have now got it down to loads of errors like this from the generated code.
CS0103 The name '_errHandler' does not exist in the current context
Update 2
I have subsequently tried (and failed) to get it going in VS2010(Express). I think that version is seriously hobbled. I can't get NuGet working on it. I am now going to try to install VS2013 as that seems to be the most commonly referred to in this ANTLR context. With VS2015 I have been through all the .NET versions I have installed on my machine back to v3, with no success. It now fails to generate the parsing code.
Update 3 - Solved
Problem solved! Use VS2013 and follow Sam Harwell's clear instructions. Some minor differences between Java and C# to work out when using StringTemplate

Resources