Summary: | Compiler optimization breaks user code | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | David Whiteman <dlwhiteman> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | svandijk |
Version: | 3.0 | ||
Target Milestone: | 3.0 M2 | ||
Hardware: | PC | ||
OS: | Linux-GTK | ||
Whiteboard: |
Description
David Whiteman
2003-07-09 17:16:21 EDT
Actually, our old behavior was wrong (see bug 37565). The class literal should not force to load the target class. Using a straight Class.forName("Bar") will do the trick. What the compiler instead performs is: Class.forName("[LBar;").getComponentType() so as to avoid initializing the class (Jikes and future Javac will presumably do it so). |