com.google.gwt.dev.SourceSaver cannot be compiled with java6

48 views
Skip to first unread message

Juan Pablo Gardella

unread,
Mar 2, 2015, 9:38:17 AM3/2/15
to google-web-tool...@googlegroups.com
Hi team,

I've just imported gwt-dev in Eclipse and I saw there is only one class that doesn't compile: com.google.gwt.dev.SourceSaver:


line 213:    try (InputStream resourceAsStream =                 Resources.asByteSource(resource).openStream();
             OutputStream out = dest.openForWrite(destPrefix + path);) {
              ByteStreams.copy(resourceAsStream, out);
         }

If I change to the compiler compliance to 1.7 it works. Should the eclipse/README.txt be updated?

eclipse/README.txt:
------------ Compiler settings ------------
Window->Preferences->Java->Compiler
Set the compiler compliance level to 1.6.

Juan

Daniel Kurka

unread,
Mar 2, 2015, 9:53:43 AM3/2/15
to google-web-tool...@googlegroups.com
Yes the readme needs to be updated. Trunk does not support java6 anymore. Mind sending a patch?

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CA%2BkiFse3mu9hURYFcPGeFP5uCWgf-c1SM2DzEFSSVXs6m86qUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Juan Pablo Gardella

unread,
Mar 2, 2015, 10:39:25 AM3/2/15
to google-web-tool...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages