You are right, there should be an extra option -sourceLevel auto and that
should be the default for devmode.

On Nov 8, 2013, at 17:47, Colin Alworth <niloc...@gmail.com> wrote:

Thanks Roberto, I'll give that a shot. I normally work with Java 7, but we
want our code to work with anyone who chooses to use Java 6 as well - and I
surmised that GWT had the same goal.

Would it make sense to consider a warning indicating that the flag is
needed with Java 6, or auto-detecting that Java 6 is running so a
JavaScriptObject$ compiled for 7 can't possibly work?

On Friday, November 8, 2013 6:01:40 PM UTC-6, Roberto Lublinerman wrote:
>
> You should be able to invoke devmode with -sourceLevel 6.
>
> Roberto Lublinerman | Software Engineer | rlu...@google.com <javascript:>
>  | 408-500-9148
>
>
> On Fri, Nov 8, 2013 at 3:31 PM, Colin Alworth <nilo...@gmail.com<javascript:>
> > wrote:
>
>> I'm not yet convinced that this isn't either a) a workspace issue or b) a
>> decision the community reached and I missed, but I figured I should stick
>> it out there and see if someone can correct me.
>>
>> I've just brought our project up to date with GWT 2.6.0-rc1 from maven,
>> and I can verify that the class files have magic number 50.0 set on them,
>> indicating Java 6. I can compile the project with a Java 6 jdk, and gwtc
>> behaves as expected, but I can't run dev mode. The error I get usually goes
>> a little like this:
>>
>> ERROR: Unable to initialize static dispatcher
>> java.lang.UnsupportedClassVersionError:
>> com/google/gwt/core/client/JavaScriptObject$ : Unsupported major.minor
>> version 51.0
>>     at java.lang.ClassLoader.defineClass1(Native Method)
>>     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>>     at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
>>     at
>> com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1121)
>>     at
>> com.google.gwt.dev.shell.CompilingClassLoader.loadClass(CompilingClassLoader.java:1194)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>     at java.lang.Class.forName0(Native Method)
>>     at java.lang.Class.forName(Class.java:249)
>>     at com.google.gwt.dev.shell.JsValueGlue.set(JsValueGlue.java:220)
>>
>> The magic number 51.0 indicates Java7 - how is it that while I'm running
>> Java 6, I am generating Java 7-only classes?
>>
>> My working theory is that since we moved some internals to be Java 7
>> capable (somewhere around https://gwt.googlesource.com/gwt/+/e4f6142 or
>> a related commit), it was set as the default. My question: do we intend to
>> require Java 7 for dev mode (and therefore also GWTTestCase run in dev
>> mode), but allow Java 6 for essentially everything else?
>>
>> --
>> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>> ---
>> 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-contributors+unsubscr...@googlegroups.com<javascript:>
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
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-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
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-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to