-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue compiling Hono #932
Comments
Adding the argument |
I actually can reproduce this locally when doing Running with Java:
|
Same result with:
|
We are running into the same issue. However, since the code seems to be correct (at least nobody who took a look so far could find something suspicious), I would attribute this to the (growing) list of issues with OpenJDK 8 ... I (we at Bosch) have moved on to OpenJDK 11.0.1 which behaves as expected ... |
I agree that this could be the issue. That would also explain why this isn't an issue with the Eclipse IDE, as it uses ECJ instead of javac. On the other side, we did promise support for Java 8 in Hono 0.8, and so I would like to fix at least the deployment scripts for OpenShift S2I, adding this particular Maven switch. But this would need to be done in the branch of 0.8.x. We wouldn't need to re-release though, as this is only the template file. |
The binaries can be run with a version 8 JVM. The problem is only with compiling.
Then by all means, create the branch 👍 |
Just a side note: i was also facing the same issue compiling the sources with Oracle JDK 8. so probably the issue is not specific to OpenJDK |
I agree, I think this is an issue with OpenJDK(-based) javac. The ECJ is more powerful, as least from what I experienced (javac developers might disagree). As the Oracle JDK is based on OpenJDK, it provides the some issues as OpenJDK 😁 Moving on to Java 11 might be the right thing to do here. But we should, to some degree, support users of Java 8, as said to support Hono 0.8 with that. Anyway, I think the issue is solved for the S2I based deployment when #934 is merged. |
@ctron can we (you) close this issue? |
Well the issue is not solved in general … for OpenShift S2I, we have a workaround. The question is do we really want to solve this, or simply go for Java 11 and ignore it … I would have no issues going for the latter. |
How could we resolve an issue with OpenJDK? FMPOV we have a workaround for Hono altogether, which is to use OpenJDK 11 for compiling ... So +1 for going to Java 11, which we already have done |
We could re-write that section to make it "compliant" with the OpenJDK 8 It looks like fabric8io-images/s2i#203 is near completion … let's move on to Java 11 and don't look back. And if someone has a complaint, re-open the issue. |
I noticed this a while back, but didn't really look into it, as it only sporadically popped up in a CI instance.
However now I run into this when deploying Hono 0.8 (the released version) on OpenShift. I didn't run into this before though.
Compiling Hono gives:
The text was updated successfully, but these errors were encountered: