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

webmgt does not compile with Java 1.5 On Solaris 10 Build 59

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • solaris_10
    • tools
    • generic
    • solaris_10

      Also see comments.

      The problem seems to be that javac is croaking on a non-ASCII character within
      a block comment, specifically the Copyright block whihc is used in numerous
      java src files all over the A/I gate.

      Subject: webmgt does not build with java 1.5 - removing from build.
      Date: Tue, 18 May 2004 17:29:17 -0700 (PDT)
      From: Vassili Igouchkine <###@###.###>
      Reply-To: Vassili Igouchkine <###@###.###>
      To: ###@###.###, ###@###.###



      webmgt does not build with java 1.5 - removing from build.

      if [ -s .classes.list ] ; then //usr/java/bin/javac -deprecation -classpath /nightly/s10x/src/src/bundled/app/webmgt/services:/nightly/s10x/src/src/bundled/a
      pp/webmgt/services:/usr/apache/tomcat/common/lib/servlet.jar:/nightly/s10x/src/sr
      c/bundled/app/webmgt/jato-2.0.4/jato.jar: `cat .classes.list` ; fi
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOToken.java:3
      : unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
              ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOToken.java:3
      : unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                    ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenID.java
      :3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
              ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenID.java
      :3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                    ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOException.ja
      va:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                  ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOException.ja
      va:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                    ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenListene
      r.java:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                  ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenListene
      r.java:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                    ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenEvent.j
      ava:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                  ^
      /nightly/s10x/src/src/bundled/app/webmgt/services/com/iplanet/sso/SSOTokenEvent.j
      ava:3: unmappable character for encoding ASCII
      * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                    ^
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      10 errors
      *** Error code 1
      make: Fatal error: Command failed for target `.compile.classlist'
      Current working directory /nightly/s10x/src/src/bundled/app/webmgt/services/com/sun/management/services/aut
      hentication*** Error code 1
      make: Fatal error: Command failed for target `authentication'
      Current working directory /nightly/s10x/src/src/bundled/app/webmgt/services/com/sun/management/services
      *** Error code 1
      make: Fatal error: Command failed for target `services'
      Current working directory /nightly/s10x/src/src/bundled/app/webmgt/services/com/sun/management
      *** Error code 1


      The problem can be reproduced via this simple java class. It compiles fine with
      1.4.2 but fails on 1.5:

      /*
       * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
       * Copyright ® 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ®
       * 2000 Netscape Communications Corp. All rights reserved.
       */

      public class Test {
          Test() {}
      }

      divet% /usr/j2se/bin/java -version
      java version "1.4.2_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
      Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
      divet% /usr/j2se/bin/javac Test.java
      divet% /usr/jdk/j2sdk1.5.0/bin/java -version
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32d)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b32d, mixed mode)
      divet%

      ts34% uname -a
      SunOS ts34 5.10 s10_59 sun4u sparc SUNW,Ultra-60
      ts34% /usr/jdk/j2sdk1.5.0/bin/java -version
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b49)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b49, mixed mode, sharing)
      ts34% /usr/jdk/j2sdk1.5.0/bin/javac Test.java
      Test.java:3: unmappable character for encoding ASCII
       * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                   ^
      Test.java:3: unmappable character for encoding ASCII
       * Copyright ? 2000 Sun Microsystems, Inc. Some preexisting portions Copyright ?
                                                                                     ^
      2 errors
      ts34%




            gafter Neal Gafter (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: