Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4787017

REGRESSION:javac doesn't compile files generated by jaxb-1.0-beta

XMLWordPrintable

    • b14
    • x86
    • linux


      ###@###.### 2002-12-02

      J2SE Version (please include all output from java -version flag):
        java version "1.4.2-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b08)
        Java HotSpot(TM) Client VM (build 1.4.2-beta-b08, mixed mode)

      Does this problem occur on J2SE 1.3 or 1.4? Yes / No (pick one)
        No; works fine with 1.4.1_01

      Operating System Configuration Information (be specific):
        Linux *** 2.4.19-xfs #5 SMP i686 GNU/Linux

      Bug Description:
       javac doesn't compile files generated by jaxb-1.0-beta (see below)

      Steps to Reproduce (be specific):
        1. Get jaxb-1.0-beta
        2. Compile the XSD file (attached to this e-mail)
        3. Try to compile one of the generated files with J2SDK 1.4.2-beta-b08:
           javac -classpath xerces2/xercesImpl.jar:jaxb-1.0/lib/jaxp-api.jar:jaxb-1.0/lib/jaxb-api.jar:jaxb-1.0/lib/sax.jar:jaxb-1.0/lib/dom.jar:jaxb-1.0/lib/jax-qname.jar:jaxb-1.0/lib/jaxb-ri.jar:jaxb-1.0/lib/jaxb-xjc.jar:jaxb-1.0/lib/jaxb-libs.jar:jaxb-1.0/lib/xercesImpl.jar:jaxb-1.0/lib/ant.jar -d xsd -sourcepath xsd xsd/com/pironet/pbng/docstore/publicxsd/hierarchies/impl/FilesystemlikefoldersImpl.java

      --> Fails with:
      pl.java:110: an enclosing instance that contains com.pironet.pbng.docstore.publicxsd.hierarchies.impl.FilesystemlikefoldersTypeImpl.Unmarshaller is required
      spawnSuperClassFromLeaveElement((new com.pironet.pbng.docstore.publicxsd.hierarchies.impl.FilesystemlikefoldersTypeImpl.Unmarshaller(context)), 2, ___uri, ___local);
                                                               ^
      1 error


      javac from J2SDK 1.4.1-01 works fine


      Test program:(java-4787017.zip)
      ---------------
        The Java class files are generated by the Sun JAXB-1.0 Beta reference
      implementation's XML schema compiler(xjc) and can not be modified by
      the CAP member to workaround the problem.

      Steps to reproduce the problem:
      --------------------------------
       - unzip java-4787017.zip
       - chmod 755 c.sh; rm -rf c/*
       - export JAVA_HOME=/usr/j2sdk1.4.1-01
       - export PATH=$JAVA_HOME/bin:$PATH
       - ./c.sh

      By using 1.4.2 build08, you will get the following error message:

      ./jbug4787017/impl/TagmetaImpl.java:82: an enclosing instance that contains jbug4787017.impl.TagmetaTypeImpl.Unmarshaller is required
                              spawnSuperClassFromEnterElement((new jbug4787017.impl.TagmetaTypeImpl.Unmarshaller(context)), 2, ___uri, ___local, __atts);
                                                               ^
      1 error

            gafter Neal Gafter (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: