Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Migrate from Vaadin 7.6.7 to 7.7.3 problem

Anatoly Shirokov
5 years ago Oct 17, 2016 1:39pm
Ilia Motornyi
5 years ago Oct 18, 2016 6:59am
Anatoly Shirokov
5 years ago Oct 18, 2016 8:07am
Ilia Motornyi
5 years ago Oct 18, 2016 8:28am
Anatoly Shirokov
5 years ago Oct 18, 2016 9:04am
Anatoly Shirokov
5 years ago Oct 18, 2016 1:09pm
C. Bosch
5 years ago Oct 19, 2016 9:33am
Anatoly Shirokov
5 years ago Oct 19, 2016 9:48am
Ilia Motornyi
5 years ago Oct 21, 2016 3:09pm
Centurion Dobrius
5 years ago Nov 01, 2016 6:31am
Sylvain Menu
5 years ago Nov 09, 2016 2:27pm

Exactly same problem with javac for me :(

Sylvain Menu
5 years ago Nov 10, 2016 8:57am

I forced the -sourcepath to javac and it works now... Vaadin jars contain java files

Sylvain Menu
5 years ago Nov 10, 2016 9:32am

Found it :) in fact java and class files have exactly the same date in the jar so javac use java files and not classes

Have a look at "SEARCHING FOR TYPES" in the man of javac. Little extract :

If newer is given, the compiler will use the newer of the two files. If source is given, it will use the source file. The default is newer.

 

Anatoly Shirokov
5 years ago Nov 10, 2016 10:00am
Sergei Stepanov
5 years ago Dec 06, 2016 8:09am
Anatoly Shirokov
5 years ago Dec 06, 2016 10:28am
Filip C
5 years ago Dec 06, 2016 11:15am
Anatoly Shirokov
5 years ago Dec 06, 2016 11:43am
Sergei Stepanov
5 years ago Dec 06, 2016 12:14pm
Centurion Dobrius
5 years ago Dec 07, 2016 6:44pm
Teemu Suo-Anttila
5 years ago Dec 08, 2016 3:55pm

Hi,

If I recall correctly this is a bug in some JDK versions (this is not the first time we've investigated this). One part of the problem is the timestamp of the .java and .class files. For this we can actually provide a fix based on some testing. I made a pull request for the Vaadin 7.7 branch. After the PR is merged, you can start using a 7.7-SNAPSHOT to get the change immediately. There will most likely be no maintenance build from Vaadin 7 anymore this year, but hopefully early next year we can get the maintenenance releases rolling again.

You can of course compile your own version from the branch already. The Pull Request is available here: https://github.com/vaadin/framework/pull/106

// Teemu