Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JiBX 1.2.2
-
Component/s: CodeGen
-
Labels:None
-
Number of attachments :
Description
There are some little issues, when running JIBX under the IBM JVM:
[javac] Compiling 108 source files to C:\jibx_1_2_1\jibx\build\classes\tools
[javac] C:\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\SchemaDocumentationGenerator.java:187: cannot resolve symbol
[javac] symbol : method append (java.lang.String,int,int)
[javac] location: class java.lang.StringBuffer
[javac] buff.append(text, base, scan);
[javac] ^
[javac] C:\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\SchemaDocumentationGenerator.java:191: cannot resolve symbol
[javac] symbol : method append (java.lang.String,int,int)
[javac] location: class java.lang.StringBuffer
[javac] buff.append(text, base, text.length());
[javac] ^
[javac] C:\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\SourceBuilder.java:357: cannot resolve symbol
[javac] symbol : constructor IllegalStateException (java.lang.String,java.io.IOException)
[javac] location: class java.lang.IllegalStateException
[javac] throw new IllegalStateException("Error in source generation", e);
[javac] ^
[javac] C:\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\PackageOrganizer.java:258: cannot resolve symbol
[javac] symbol : method append (java.lang.String,int,int)
[javac] location: class java.lang.StringBuffer
[javac] buff.append(pname, split, mark + 1);
[javac] ^
[javac] C:\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\PackageOrganizer.java:260: cannot resolve symbol
[javac] symbol : method append (java.lang.String,int,int)
[javac] location: class java.lang.StringBuffer
[javac] buff.append(pname, split + 1, mark + 1);
[javac] ^
[javac] C:\\jibx_1_2_1\jibx\build\src\org\jibx\schema\codegen\PackageOrganizer.java:268: cannot resolve symbol
[javac] symbol : method append (java.lang.String,int,int)
[javac] location: class java.lang.StringBuffer
[javac] buff.append(pname, 0, mark + 1);
[javac] ^
[javac] 6 errors
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Assignee | Dennis Sosnoski [ dsosnoski ] | |
| Fix Version/s | JiBX 1.2.2 [ 15120 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
To fix the append issues call the append method with a char[] not with a String
e.g.: .append(text.toCharArray(), i, x); instead of .append(text, i, x);
To fix the IllegalStateException issue don't use the constructor with (String message, Exception e) instead use the costructor without the exception.