IBM Support

PM19633: Java compiler produces the 'No unique maximal instance exists' error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    - Operating System: Microsoft Windows XP
      - Product name: Rational Software Architect 7.5.0
    
    Description of problem:
    Java compiler produces 'No unique maximal instance exists' error
    
    This APAR is to include APAR IZ81205 for IBM SDK 1.6 SR2 into Ra
    tional Software Architect.
    
    Step to reproduce:
    1. Create a Java source file GenericTest2.java with the followin
    g source code (between [code] and [/code]):
    [code]
    import java.io.FileInputStream;
    import java.io.ObjectInputStream;
    
    public class GenericsTest2 {
    
        public static void main(String[] args) throws Exception {
            Integer i = readObject(args[0]);
            System.out.println(i);
        }
    
        public static ?T? T readObject(String file) throws Exception
     {
            return readObject(new ObjectInputStream(new FileInputStr
    eam(file)));
            // closing the stream in finally removed to get a small
    example
        }
    
        @SuppressWarnings('unchecked')
        public static ?T? T readObject(ObjectInputStream stream) thr
    ows Exception {
            return (T)stream.readObject();
        }
    }
    [/code]
    2. Call on the command line ?SDP?\jdk\bin\javac.exe GenericTest2
    .java where ?SDP? is the installation directory of RSA (e.g. 'C:
    \Program Files\SDP'
    Result:
    javac exists and prints the following error:
    'type parameters of T cannot be determined; no unique maximal in
    stance exists for type
    variable T with upper bounds T, java.lang.Object return readObje
    ct(new ObjectInputStream(new
    FileInputStream(file)));'
    
    Workaround:
    None
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The version of java compiler in Rational Software Architect
    7.5 contains defects.
    

Problem conclusion

  • We have upgraded the java compiler version in Rational
    Software Architect 7.5.5.4 to the newest one.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM19633

  • Reported component name

    RSA-SE WIN

  • Reported component ID

    5724V8800

  • Reported release

    755

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-02

  • Closed date

    2011-06-30

  • Last modified date

    2011-06-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RSA-SE WIN

  • Fixed component ID

    5724V8800

Applicable component levels

  • R755 PSN

       UP

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SS4JE2","label":"Rational Software Architect Standard Edition"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.5"}]

Document Information

Modified date:
06 January 2022