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

Can't get MalformedObjectNameException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u17
    • core-svc

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Linux bjeaslinux1.sybase.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x8
      6_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      I created a simple java testcase,which has different result between jdk15 and jdk16.
      When i run it with jdk1.5.0_17,i can get MalformedObjectNameException.But can't get any exception when run it with jdk1.6.0_18.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run this case with jdk1.5.0_17 and jdk1.6.0_18.
      I can get MalformedObjectNameException when run it with jdk1.5.0_17


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
       hope to get MalformedObjectNameException.
      ACTUAL -
      no exception

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.io.*;
      import javax.management.ObjectName ;
      import javax.management.MalformedObjectNameException ;
      public class test1{
         public static void main(String[] args)
         {
             String nameValue="domain:top=";
             try {
                 new ObjectName(nameValue) ;
             } catch (MalformedObjectNameException monEx) {
                 System.out.println("MalformedObjectNameException");
             } catch(Exception Ex)
             {
                 System.out.println("Exception");
             }
         }
      }

      ---------- END SOURCE ----------

            emcmanus Eamonn McManus
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: