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

initialization related issue of int

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      Java 8

      ADDITIONAL OS VERSION INFORMATION :
      Window 7 64 bit

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Using in Eclipse (ADT)


      A DESCRIPTION OF THE PROBLEM :

       Found compile time issue while initializing int variable with value = 09990

      but when I initialize another value like value = 010 it is compiling

      I mean it is working upto 07770 after that it is not working in compile time.

             // code sample

              int i = 09990; // The literal 09990 of type int is out of range
      //works on 777 but not above 778
      int i = 07770;
      int j = 010;
      int n = 00001;


      REGRESSION. Last worked in version 8u101


      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: