JiBX
  1. JiBX
  2. JIBX-290

JIBX does not run under IBM JVM 1.4.2

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JiBX 1.2.2
    • Component/s: CodeGen
    • Labels:
      None
    • Number of attachments :
      0

      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

        Hide
        jogotec added a comment -

        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.

        Show
        jogotec added a comment - 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.
        Hide
        jogotec added a comment -

        I digged deeper:
        The fix for the append method is no fix. It is not a IBM JVM problem, it is a java 1.5 problem. The append method that is used is only support by java 1. or higher.

        Show
        jogotec added a comment - I digged deeper: The fix for the append method is no fix. It is not a IBM JVM problem, it is a java 1.5 problem. The append method that is used is only support by java 1. or higher.
        Hide
        Dennis Sosnoski added a comment -

        Fixed the code to eliminate the use of post-1.4 methods, and tested the operation of the runtime, binding compiler, and code generation from schema using a 1.4 JVM.

        However, due to other changes (especially http://jira.codehaus.org/browse/JIBX-293) it'll require JDK 1.5 or later to actually build JiBX. I'm adding this constraint to the instructions on building JiBX.

        Show
        Dennis Sosnoski added a comment - Fixed the code to eliminate the use of post-1.4 methods, and tested the operation of the runtime, binding compiler, and code generation from schema using a 1.4 JVM. However, due to other changes (especially http://jira.codehaus.org/browse/JIBX-293 ) it'll require JDK 1.5 or later to actually build JiBX. I'm adding this constraint to the instructions on building JiBX.
        Dennis Sosnoski made changes -
        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 ]
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            jogotec
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: