revaultch / gwtx

Automatically exported from code.google.com/p/gwtx
0 stars 0 forks source link

Unresolvable native reference to type 'org.gwt.mosaic.core.client.util.regex.Pattern' #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use Pattern and Matcher,but there are some errors. 
Pattern p = Pattern.compile("'[^']+'");//".+"
        Matcher m = p.matcher(rawQuery);
        if (!reSearch) keyWord = new ArrayList<String>();
        while (m.find()) {
        keyWord.add(rawQuery.substring(m.start()+1,m.end()-1));
        }
     [java]       [ERROR] Errors in
jar:file:/D:/workspace/Retrieval/lib/gwtx-1.5.1.jar!/com/googlecode/gwtx/java/ut
il/emul/java/util/regex/Pattern.java
     [java]          [ERROR] Line 138:  Unresolvable native reference to
type 'org.gwt.mosaic.core.client.util.regex.Pattern'
     [java]          [ERROR] Line 147:  Unresolvable native reference to
type 'org.gwt.mosaic.core.client.util.regex.Pattern'
     [java]          [ERROR] Line 181:  Unresolvable native reference to
type 'org.gwt.mosaic.core.client.util.regex.Pattern'
     [java]          [ERROR] Line 192:  Unresolvable native reference to
type 'org.gwt.mosaic.core.client.util.regex.Pattern'
     [java]       [ERROR] Cannot proceed due to previous errors

Original issue reported on code.google.com by fengyel on 19 Feb 2009 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by nicolas....@gmail.com on 27 Feb 2009 at 2:38

GoogleCodeExporter commented 9 years ago
We grabbed the svn as this bug is 'fixed' this afternoon and tried to 
incorporate it
into a maven build

 [ERROR] Errors in
jar:file:/Users/pmac/.m2/repository/com/code/gwtx/gwtx/1.5.3-SNAPSHOT/gwtx-1.5.3
-SNAPSHOT.jar!/com/googlecode/gwtx/java/util/emul/java/util/regex/Pattern.java
         [ERROR] Line 138:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 147:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 181:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 192:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
      [ERROR] Cannot proceed due to previous errors
[ERROR] Build failed

Any ideas?

Ta

Tom

Original comment by TomBarbe...@googlemail.com on 3 Mar 2009 at 9:07

GoogleCodeExporter commented 9 years ago
This issue was marked as fixed in version 1.5.2, so I just downloaded it and 
get the
same problems as others. 

      [ERROR] Errors in
jar:file:/D:/repo/com/googlecode/gwtx/1.5.2/gwtx-1.5.2-sources.jar!/com/googleco
de/gwtx/java/util/emul/java/util/regex/Pattern.java
         [ERROR] Line 138:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 147:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 181:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
         [ERROR] Line 192:  Unresolvable native reference to type
'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
      [ERROR] Cannot proceed due to previous errors

Thanks in advance,
Paul

Original comment by pmw...@gmail.com on 20 Mar 2009 at 4:43

GoogleCodeExporter commented 9 years ago
[ERROR] Errors in jar:file:/E:/javalearn/gwt/mosaic/widgets/WebContent/WEB-
INF/lib/gwtx-
1.5.2.jar!/com/googlecode/gwtx/java/util/emul/java/util/regex/Pattern.java
[ERROR] Line 138:  Unresolvable native reference to 
type 'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
[ERROR] Line 147:  Unresolvable native reference to 
type 'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'
[ERROR] Line 181:  Unresolvable native reference to 
type 'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern'

Original comment by changshihu on 21 Mar 2009 at 6:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am having the same issue even though i am not using Pattern class. 
Any older version i can use where this issue is not there. Or is there any way 
to
suppress this. 

Thanks

Original comment by paul.alok on 29 Apr 2009 at 3:16

GoogleCodeExporter commented 9 years ago
Hi,

I think the gwt compiler has changed and the JSNI calls are incorrect now.
I modified the Pattern class to be new JSNI compatible. 
All you have to do is to replace update the Pattern.java file in the 
gwtx-1.5.2.jar
with the attached one.

File location:
gwtx-1.5.2.jar:/com/googlecode/gwtx/java/util/emul/java/util/regex/Pattern.java

Best,
Derek

Original comment by darek.ko...@gmail.com on 7 Nov 2009 at 12:37

Attachments:

GoogleCodeExporter commented 9 years ago
The fix of this issue just documented and not included in the gwtx-1.5.2.jar. 
Every 
time gwtx-1.5.2.jar is downloaded it needs to be updated with attached 
Pattern.java.

Can we have a release that produces gwtx-1.5.x.jar containing attached 
Pattern.java ?

Original comment by Jayesh...@gmail.com on 30 Mar 2010 at 5:21