Skip to content

PR1102 regression fix; half the annotation was removed - #1110

Merged
asfgit merged 1 commit into
apache:masterfrom
DaanHoogland:PR1102-fix
Nov 24, 2015
Merged

asfgit merged 1 commit into
apache:masterfrom
DaanHoogland:PR1102-fix

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

I am having troubles getting this to work but it passes the point at which the master slowbuild is broken.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

The error occurs in 4.6 as well, so I think this PR should go through

@asfbot

asfbot commented Nov 23, 2015

Copy link
Copy Markdown

Daan Hoogland on dev@cloudstack.apache.org replies:
Did anybody build 4.6 noredist? I can not get it or master built.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

the problem seems to be only in using java8.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author
mvn -P developer,systemvm clean install -Dnoredist
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:40 min
[INFO] Finished at: 2015-11-23T19:22:21+01:00
[INFO] Final Memory: 85M/810M
[INFO] ------------------------------------------------------------------------

@rafaelweingartner

Copy link
Copy Markdown
Member

@DaanHoogland, I have just ran "mvn clean install -Dnoredist -P developer,systemvm" with java 8 and everything was ok. What version of java 8 are you using?

mine is: Java version: 1.8.0_66, vendor: Oracle Corporation

BTW: your code LGTM

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

macosx 10.11.1:

$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

btw: It was the f5 plugin project not compiling

@rafaelweingartner

Copy link
Copy Markdown
Member

That is the plugin, here everything compiled without problems.
~$ mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: /home/rafael/Java/jdk1.8.0_66/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-68-generic", arch: "amd64", family: "unix"

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

retried but it is repeatable :')

$ mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13:57:37+02:00)
Maven home: /usr/local/Cellar/maven/3.3.3/libexec
Java version: 1.8.0_66, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.1", arch: "x86_64", family: "mac"

@asfgit
asfgit merged commit 4bc6bcf into apache:master Nov 24, 2015
asfgit pushed a commit that referenced this pull request Nov 24, 2015
PR1102 regression fix; half the annotation was removedI am having troubles getting this to work but it passes the point at which the master slowbuild is broken.

* pr/1110:
  PR1102 regression fix; half the annotation was removed at several locations

Signed-off-by: Daan Hoogland <daan@onecht.net>
@remibergsma

Copy link
Copy Markdown
Contributor

Guys, why didn't we get 2x LGTM on this?

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

My bad @remibergsma I counted @ProjectMoon as lgtm

@rafaelweingartner

Copy link
Copy Markdown
Member

@DaanHoogland , I have just checked with @cristofolini, I also had the problem you described here. I did not see that before because I had compiled without using “-Dnoredist -P developer,systemvm” parameters, then eclipse had already built the f5 plugin using Java 7. Then when I used “mvn install -Dnoredist -P developer,systemvm", without “clean” in my command line, I did not get that error.

We found out that, this problem occurs with java 1.8.0_66, which is the Java version that you, me and critofolini are using. I tried the Java version 1.8.0_5 that I had here, and the f5 plugin project compiled. Have you tried with different versions of java 1.8?

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

i have some lying around:

    1.8.0_25, x86_64:   "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
    1.8.0_05, x86_64:   "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home

will give them a spin.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

1.8.0_05 works, 1.8.0_25 doesn't

@rafaelweingartner

Copy link
Copy Markdown
Member

Interesting, so it looks like a Java problem

@ProjectMoon

Copy link
Copy Markdown

This build problem happens to me on Java 1.7. Isn't this just a syntax error? The annotation markers are missing.

@rafaelweingartner

Copy link
Copy Markdown
Member

That problem, was solved when this PR was merged. The problem we were talking about was the build of f5 plugin project that is not building with Java 1.8.0_66 and 1.8.0_25.
We tried with 1.8.0_5 and it worked.

@DaanHoogland
DaanHoogland deleted the PR1102-fix branch August 16, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants