• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compiler reports bug in compiler

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
This is so weird. I got this when I tried to compile one of my programs
Can someone please explain what happened???


An exception has occurred in the compiler (1.4.1). Please file a bug at the Java
Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checkin
g the Bug Parade for duplicates. Include your program and the following diagnost
ic in your report. Thank you.
java.lang.ArrayIndexOutOfBoundsException: 429
at com.sun.tools.javac.v8.parser.Scanner.scanIdent(Scanner.java:500)
at com.sun.tools.javac.v8.parser.Scanner.nextToken(Scanner.java:1110)
at com.sun.tools.javac.v8.parser.Parser.accept(Parser.java:221)
at com.sun.tools.javac.v8.parser.Parser.classOrInterfaceBody(Parser.java
:1950)
at com.sun.tools.javac.v8.parser.Parser.classDeclaration(Parser.java:189
6)
at com.sun.tools.javac.v8.parser.Parser.classOrInterfaceDeclaration(Pars
er.java:1868)
at com.sun.tools.javac.v8.parser.Parser.typeDeclaration(Parser.java:1854
)
at com.sun.tools.javac.v8.parser.Parser.compilationUnit(Parser.java:1802
)
at com.sun.tools.javac.v8.JavaCompiler.parse(JavaCompiler.java:235)
at com.sun.tools.javac.v8.JavaCompiler.parse(JavaCompiler.java:259)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:332)
at com.sun.tools.javac.v8.Main.compile(Main.java:520)
at com.sun.tools.javac.Main.compile(Main.java:36)
at com.sun.tools.javac.Main.main(Main.java:27)

 
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lalitha, there are bugs in SDK 1.4.1 that might've been fixed with 1.4.2 version.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lalitha,
Could u please share the source code which generated this error ?
Also the version of JDK ?
I was using GNU compiler bundled with RedHat Linux 7.3, and it contained lots of bugs. But Sun's JDK is more stable and standard.
Gopal Shah
 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic