Comments (4)
JarJar was able to work on many of files from the Wicket JAR but always fails
when
attempting to use org/apache/wicket/validation/validator/StringValidator.class
from
the Wicket JAR.
Original comment by [email protected]
on 18 Dec 2007 at 2:45
from jarjar.
I've also replicated this with wicket-1.3.0 final, JDK 1.5.0_08-b03, WinXP SP2,
jarjar1.0-rc6.
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
at java.lang.String.substring(String.java:1768)
at com.tonicsystems.jarjar.PackageRemapper.mapPath(PackageRemapper.java:84)
at com.tonicsystems.jarjar.PackageRemapper.mapValue(PackageRemapper.java:101)
at com.tonicsystems.jarjar.asm.commons.RemappingClassAdapter.visitField(
Original comment by [email protected]
on 28 Jan 2008 at 12:07
from jarjar.
I did a little debugging and found that the Exception is thrown when processing
org.apache.wicket.validation.validator.UrlValidator
The Exception happens when visiting the VALID_CHARS field. In UrlValidator the
field
is defined as
private static final String SPECIAL_CHARS = ";/@&=,.?:+$";
private static final String VALID_CHARS = "[^\\s" + SPECIAL_CHARS + "]";
Inside jarjar, the Exception is thrown from
PackageRemapper.mapPath(PackageRemapper.java:84). The method is called with a
path
value of "[^\s;/@&=,.?:+$]". When it gets to line 84 it tries to do this
s = s.substring(0, s.length() - RESOURCE_SUFFIX.length()) + end;
Here s = "[L\s;" and RESOURCE_SUFFIX = "RESOURCE", so the code throws
StringIndexOutOfBoundsException.
Original comment by [email protected]
on 28 Jan 2008 at 2:11
from jarjar.
This is fixed in SVN.
Original comment by [email protected]
on 7 Feb 2008 at 1:53
- Changed state: Fixed
from jarjar.
Related Issues (20)
- Resources repackaged but not zapped
- Upgrade to ASM 4 HOT 5
- Missing 1.2 in Maven Central HOT 3
- Fix up Export-Package in MANIFEST.MF when running jar jar.
- jarjarXXXXXX.jar files are not deleted from the temp directory
- Jarjar rules file syntax should support comments HOT 1
- Provide public API for reusing jarjar as library (e.g. in a gradle task)
- The jarjar-1.4 binary package is empty
- jarjar-1.4.jar package does not contain any class file
- Java source filenames ignored by jarjar rules that work for classes.
- jarjar should rename inner $SwitchMap$com$foo$MyEnum class generated by enum switch
- version 1.4 not published in maven
- Empty directories in jar HOT 1
- Class not included in jar but it should be
- Please add to wiki (i'll be happy to if i have permission) a command line example with conversion of jar
- jarjar fails to repackage Java8 classes
- jarjar doesn't support JDK8/JDK9 HOT 1
- Support single class files as the classpath(s) to "find"
- Jarjar not shrink jar library
- Not exported to GitHub by the maintainers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jarjar.