Internal Compiler Error Arrayindexoutofboundsexception
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internal compiler error ArrayIndexOutOfBoundsException: -1 … generateUnboxingConversion up vote 2 down vote favorite I got some weird exception when trying to compile this: Byte b = 2; if (b < new Integer(5)) { ... } Is it a valid check (unboxing-implicit cast - unboxing)? java boxing autoboxing unboxing share|improve this question asked Dec 16 '09 at 21:55 Robert 361 1 What version of java are you using? I just tested this on 1.6.0_17, and it works. –Stefan Kendall Dec 16 '09 at 21:59 add a comment| 5 Answers 5 active oldest votes up vote 3 down vote If there is a bug in your compiler, here's what you do: Make sure you are using an up to date version of the compiler. If the vendor has a public bug database, check that (hint: use actual text copy-and-pasted from the exception trace). If it's a known bug, up vote it, raise an escalation, whatever. If you can't find a copy of the bug, submit a bug report with a concise, compilable (or not!) test case. In general, it's not useful to post about random bugs in software products on Q&A sites. share|improve this answer answered Dec 16 '09 at 22:09 Tom Hawtin - tackline 108k18156252 ok, I thought that the problem is the code. thanks –Robert Dec 16 '09 at 22:12 1 If the compiler throws an exception, it is a bug in the compiler! –Tom Hawtin - tackline Dec 16 '09 at 22:14 add a comment| up vote 1 down vote public class test { public static void main( String[] args ) { Byte b = 2; if( b < new Integer(5) ) { System.out.println( "Working." ); } } } Works for me. (Java 1.6.0_17). share|improve this answer answered Dec 16 '09 at 21:59 Stefan Kendall 34.8k47180333 add a comment| up vote 1 down vote If you're getting an Internal Compi
CommunityMarketplaceEventsPlanet EclipseNewsletterVideosParticipateReport a BugForumsMailing ListsWikiIRCHow to ContributeWorking GroupsAutomotiveInternet of ThingsLocationTechLong-Term SupportPolarSysScienceOpenMDM Toggle navigation Bugzilla – Bug465330 Internal Compiler Error: ArrayIndexOutOfBoundsException Last modified: 2016-05-24 16:26:52 EDT Home | New | Browse | Search | [?] | Reports | Requests | Help | Log In [x] | Forgot Password Login: [x] | Terms of Use | Copyright Agent First Last Prev Next This bug is not in your last search results. Bug465330 - Internal Compiler Error: ArrayIndexOutOfBoundsException http://stackoverflow.com/questions/1918060/internal-compiler-error-arrayindexoutofboundsexception-1-generateunboxingc Summary: Internal Compiler Error: ArrayIndexOutOfBoundsException Status: VERIFIED DUPLICATE of bug 435869 Product: JDT Classification: Eclipse Component: Core Version: 4.4.2 Hardware: PC Windows 7 Importance: P3 normal (vote) TargetMilestone: 4.5 M1 Assigned To: Stephan Herrmann QA Contact: URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree https://bugs.eclipse.org/bugs/show_bug.cgi?id=465330 Reported: 2015-04-23 12:51 EDT by Rüdiger Herrmann Modified: 2016-05-24 16:26 EDT (History) CC List: 3 users (show) jchorko ruediger.herrmann stephan.herrmann See Also: Attachments Self contained project to reproduce the exception (2.62 MB, application/x-zip-compressed) 2015-04-23 13:46 EDT, Rüdiger Herrmann no flags Details File reproducing bug (4.46 KB, application/octet-stream) 2016-05-24 16:15 EDT, Janusz Chorko no flags Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Rüdiger Herrmann 2015-04-23 12:51:09 EDT When creating an AST for a certain class, I see an ArrayIndexOutOfBounds exception thrown by compiler code. The malicious code is triggered from various places: the Java builder, save participants, decorators, etc. Language level is at 1.8 Stacktrace: --- java.lang.ArrayIndexOutOfBoundsException: 3000 at org.eclipse.jdt.internal.compiler.ClassFile.generateBootstrapMethods(ClassFile.java:2957) at org.eclipse.jdt.internal.compiler.ClassFile.addAttributes(ClassFile.java:391) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:577) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.j
Sign in Pricing Blog Support Search GitHub This repository Watch 51 Star http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2016-January/034482.html 282 Fork 117 groovy/groovy-eclipse Code Issues 67 Pull requests 18 Projects 0 Wiki Pulse Graphs New internal compiler issue Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92) #182 Open zymzxq opened this Issue Jun 21, 2016 · 0 comments Projects None yet Labels None yet Milestone No milestone Assignees internal compiler error No one assigned 1 participant zymzxq commented Jun 21, 2016 Looks like there's a JDT bug and need to update the jdt dependency of groovy-eclipse-batch https://bugs.eclipse.org/bugs/show_bug.cgi?id=472178 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Summary: Add support for large code... Next message: [Bug 2782] CACAO - Internal compiler error: java.lang.ArrayIndexOutOfBoundsException (ECJ race condition) Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2782 Bug ID: 2782 Summary: CACAO - Internal compiler error: java.lang.ArrayIndexOutOfBoundsException (ECJ race condition) Product: IcedTea Version: 2.6.3 Hardware: ppc OS: Linux Status: NEW Severity: normal Priority: P5 Component: CACAO Assignee: stefan at complang.tuwien.ac.at Reporter: chewi at gentoo.org CC: unassigned at icedtea.classpath.org, xerxes at zafena.se When trying to compile gnu-classpath 0.98 (and probably 0.99, haven't tried) with any version of ECJ (3.7, 4.2, 4.4, 4.5, 4.6M4), I get output like the following from a CACAO-based icedtea. 1. ERROR in /var/tmp/portage/dev-java/gnu-classpath-0.98-r4/work/classpath-0.98/org/omg/CORBA/DynEnum.java (at line 0) /* DynEnum.java -- ^ Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: 45 at java.lang.Throwable.fillInStackTrace(Throwable.java:783) I know it's a race condition because it works if I manually perform the compilation under "taskset -c 0". I'm pretty sure it's a CACAO problem because it doesn't happen with a Zero-based icedtea, IBM's JVM, or a native ECJ built with GCJ. It also happens with icedtea 1.13.9 so I don't believe it's a recent CACAO issue. -- You are receiving this mail because: You are on the CC list for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: