Microsoft KB Archive/245643: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
(One intermediate revision by the same user not shown) | |||
Line 78: | Line 78: | ||
== MORE INFORMATION == | == MORE INFORMATION == | ||
This code causes the Application error and results in the error message in the | This code causes the Application error and results in the error message in the "Symptoms" section: | ||
<pre class="codesample">public class Test | <pre class="codesample">public class Test | ||
{ | { | ||
private static void DoTest() | private static void DoTest() | ||
{ | { | ||
for( int i = 0; i | for( int i = 0; i < 10; i++ ) | ||
{ | { | ||
System.out.println( (char)('a' + i) ); | System.out.println( (char)('a' + i) ); | ||
Line 91: | Line 91: | ||
public static void main( String[] args ) | public static void main( String[] args ) | ||
{ | { | ||
System.out.println( | System.out.println( "starting" ); | ||
DoTest(); | DoTest(); |
Latest revision as of 13:49, 21 July 2020
Article ID: 245643
Article Last Modified on 6/14/2006
APPLIES TO
- Microsoft Java Virtual Machine
This article was previously published under Q245643
SYMPTOMS
When running Java code with the JIT compiler turned on, some uses of character constants in a loop can cause an Application error to occur. This article describes one example of code that causes an Application error and results in the following error message:
CAUSE
This problem is caused by a bug in the way that the JIT compiler handles character constants when unrolling a loop.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem has been fixed in version 3190 and 3236 of the Microsoft virtual machine.
This problem was corrected in Windows 2000 Service Pack 1.
MORE INFORMATION
This code causes the Application error and results in the error message in the "Symptoms" section:
public class Test { private static void DoTest() { for( int i = 0; i < 10; i++ ) { System.out.println( (char)('a' + i) ); } } public static void main( String[] args ) { System.out.println( "starting" ); DoTest(); } }
REFERENCES
For additional information about the latest service pack for Windows 2000, click the article number below to view the article in the Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
251299 FIX: Problem Promoting Objects in 'Finally' Blocks in Interpreted Methods During Garbage Collection
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Keywords: kbbug kbfix kbjit kbjavavm33xxfix kbqfe kbcompiler kbhotfixserver KB245643