How and when do the GWT emulated class work?

2018-06-05 Thread Amey Parundekar
I want to know when the GWT Emulated classes from the /emul are invoked 
overriding the normal java classes.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Emulated classes

2018-06-05 Thread Jens
GWT has a feature called "super source" which allows you to override 
existing source files with your own implementation. GWT itself uses this 
technique to emulate JRE classes and you can use that technique as well to 
emulate additional classes.

Take a look at 
http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
 
and scroll a little down until you see the headline "Overriding one package 
implementation with another" to get a short description of "super source".

All JRE classes emulated by GWT can be found in 
https://github.com/gwtproject/gwt/tree/master/user/super/com/google/gwt/emul 
and when you look at 
https://github.com/gwtproject/gwt/blob/master/user/super/com/google/gwt/emul/Emulation.gwt.xml
 
you can see the  tag. This tag does not set a path 
attribute which means that the whole folder which contains the 
Emulation.gwt.xml file should be treated as super source.


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Emulated classes

2018-06-05 Thread dinesh kumar
I just want to know how does the emulated classes work in GWT. 

How does the GWT decides where to look for an imported class(inside JDK or 
emulated classes)? Where is this information is specified?

Is there any documentation for this? 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Update to 2.8.2

2018-06-05 Thread dinesh kumar
Yes, still getting same error.


On Tuesday, June 5, 2018 at 2:08:36 PM UTC+5:30, Thomas Broyer wrote:
>
>
>
> On Tuesday, June 5, 2018 at 8:57:44 AM UTC+2, dinesh kumar wrote:
>>
>> I have updated to GWT 2.8.2 and getting a compilation error : 
>>
>> Compilation unit 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_se.java'
>>  
>> is removed due to invalid reference(s):
>>  [java]  java.lang.String
>>  [java]   Compilation unit 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java'
>>  
>> is removed due to invalid reference(s):
>>  [java]  java.lang.String
>>  [java]   Compilation unit 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/dom/builder/client/DomMediaBuilderBase.java'
>>  
>> is removed due to invalid reference(s):
>>  [java]  java.lang.String
>>  [java]   Compilation unit 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_lkt.java'
>>  
>> is removed due to invalid reference(s):
>>  [java]  java.lang.String
>>  [java]   Compilation unit 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/impl/cldr/DateTimeFormatInfoImpl_jgo.java'
>>  
>> is removed due to invalid reference(s):
>>  [java]  java.lang.String
>>
>> .
>> .
>> .
>> ..
>>[ERROR] Errors in 
>> 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Object.java'
>>  [java]  [ERROR] java.lang.Throwable cannot be resolved to a 
>> type
>>  [java]   [ERROR] Errors in 
>> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/core/client/JavaScriptObject.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>
>
> Have you cleaned your .gwt-unitCache? IIRC that might be a reason. 
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT Update to 2.8.2

2018-06-05 Thread Thomas Broyer


On Tuesday, June 5, 2018 at 8:57:44 AM UTC+2, dinesh kumar wrote:
>
> I have updated to GWT 2.8.2 and getting a compilation error : 
>
> Compilation unit 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_se.java'
>  
> is removed due to invalid reference(s):
>  [java]  java.lang.String
>  [java]   Compilation unit 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java'
>  
> is removed due to invalid reference(s):
>  [java]  java.lang.String
>  [java]   Compilation unit 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/dom/builder/client/DomMediaBuilderBase.java'
>  
> is removed due to invalid reference(s):
>  [java]  java.lang.String
>  [java]   Compilation unit 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_lkt.java'
>  
> is removed due to invalid reference(s):
>  [java]  java.lang.String
>  [java]   Compilation unit 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/impl/cldr/DateTimeFormatInfoImpl_jgo.java'
>  
> is removed due to invalid reference(s):
>  [java]  java.lang.String
>
> .
> .
> .
> ..
>[ERROR] Errors in 
> 'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Object.java'
>  [java]  [ERROR] java.lang.Throwable cannot be resolved to a 
> type
>  [java]   [ERROR] Errors in 
> 'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/core/client/JavaScriptObject.java'
>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>

Have you cleaned your .gwt-unitCache? IIRC that might be a reason. 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Errors while updating to GWT2.8.2

2018-06-05 Thread dinesh kumar
Still getting same error. I think instead of getting the String/Object... 
classes from the jdk, it is trying to look for them in the emulated classes.

On Thursday, May 31, 2018 at 6:01:53 PM UTC+5:30, Thomas Broyer wrote:
>
> You may have to clean your .gwt-unitCache (it's a good idea anyway 
> whenever your change GWT version)
>
> On Thursday, May 31, 2018 at 12:14:42 PM UTC+2, dinesh kumar wrote:
>>
>> I have updated the following jars :
>> 
>> GWT2.8.2
>> ---
>>gwt-dev
>>gwt-user
>>gwet-servlet
>>
>> gxt-2.3.1a
>>
>> Now I get the following error while compilation:
>>
>> [ERROR] Errors in 'com/google/gwt/emul/java/util/OptionalInt.java'
>>  [java]  [ERROR] Line 92: The method compare(int, int) is 
>> undefined for the type Integer
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/stream/DoubleStream.java'
>>  [java]  [ERROR] java.util.PrimitiveIterator.OfDouble cannot 
>> be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/stream/Stream.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/stream/BaseStream.java'
>>  [java]  [ERROR] java.lang.AutoCloseable cannot be resolved 
>> to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/IntSummaryStatistics.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/Double.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/Long.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/Map.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/Appendable.java'
>>  [java]  [ERROR] java.io.IOException cannot be resolved to a 
>> type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/i18n/client/DateTimeFormatInfo.java'
>>  [java]  [ERROR] 
>> com.google.gwt.i18n.shared.DateTimeFormatInfo cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/i18n/client/LocalizedNames.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/i18n/client/constants/DateTimeConstants.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/i18n/client/impl/LocaleInfoImpl.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/i18n/client/constants/NumberConstants.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/OptionalLong.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/LongSummaryStatistics.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/NumberFormatException.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/Number.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/DoubleSummaryStatistics.java'
>>  [java]  [ERROR] java.lang.String cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/function/Predicate.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/function/BinaryOperator.java'
>>  [java]  [ERROR] java.util.Comparator cannot be resolved to a 
>> type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/Optional.java'
>>  [java]  [ERROR] java.lang.Object cannot be resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/stream/Collector.java'
>>  [java]  [ERROR] java.util.function.BinaryOperator cannot be 
>> resolved to a type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/lang/AutoCloseable.java'
>>  [java]  [ERROR] java.lang.Exception cannot be resolved to a 
>> type
>>  [java]   [ERROR] Errors in 
>> 'com/google/gwt/emul/java/util/Collection.java'
>>  

GWT Update to 2.8.2

2018-06-05 Thread dinesh kumar
I have updated to GWT 2.8.2 and getting a compilation error : 

Compilation unit 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_se.java'
 
is removed due to invalid reference(s):
 [java]  java.lang.String
 [java]   Compilation unit 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/constants/NumberConstants.java'
 
is removed due to invalid reference(s):
 [java]  java.lang.String
 [java]   Compilation unit 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/dom/builder/client/DomMediaBuilderBase.java'
 
is removed due to invalid reference(s):
 [java]  java.lang.String
 [java]   Compilation unit 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/shared/impl/cldr/DateTimeFormatInfoImpl_lkt.java'
 
is removed due to invalid reference(s):
 [java]  java.lang.String
 [java]   Compilation unit 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/i18n/client/impl/cldr/DateTimeFormatInfoImpl_jgo.java'
 
is removed due to invalid reference(s):
 [java]  java.lang.String

.
.
.
..
   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Object.java'
 [java]  [ERROR] java.lang.Throwable cannot be resolved to a 
type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/core/client/JavaScriptObject.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Throwable.java'
 [java]  [ERROR] java.io.PrintStream cannot be resolved to a 
type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/Class.java'
 [java]  [ERROR] com.google.gwt.core.client.JavaScriptObject 
cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/String.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/CloneNotSupportedException.java'
 [java]  [ERROR] java.lang.Exception cannot be resolved to a 
type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/io/PrintStream.java'
 [java]  [ERROR] java.io.FilterOutputStream cannot be resolved 
to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/io/PrintWriter.java'
 [java]  [ERROR] java.lang.String cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StackTraceElement.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/ClassNotFoundException.java'
 [java]  [ERROR] java.lang.Exception cannot be resolved to a 
type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/lang/reflect/Method.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/CharSequence.java'
 [java]  [ERROR] java.lang.String cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/Iterable.java'
 [java]  [ERROR] java.util.Spliterator cannot be resolved to a 
type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/javaemul/internal/NativeRegExp.java'
 [java]  [ERROR] java.lang.String cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/nio/charset/Charset.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuffer.java'
 [java]  [ERROR] java.lang.Object cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/ptc/fox_10/Windchill/srclib/wnc/CoreGWT-src.jar!/gwt/java/util/Locale.java'
 [java]  [ERROR] java.lang.String cannot be resolved to a type
 [java]   [ERROR] Errors in 
'jar:file:/opt/wnc/3rdPartyJars/lib/gwt-user.jar!/com/google/gwt/emul/java/lang/StringBuilder.java'
 [java]