Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6297094
Votes 0
Synopsis The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int"
Category hotspot:compiler2
Reported Against b01
Release Fixed 6u2(b01), 5.0u12(b01) (Bug ID:2144703)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6461827 , 6489569
Submit Date 15-JUL-2005
Description
There is a bug in the inlining of Class.getModifiers.  The result type of Class.getModifiers is labeled as a "boolean" to the optimizer instead of "int".  An inlined isFinal call masks with 16 - which against a boolean always returns a 0 (masking against an int produces the obvious extract instructions).  Bug can be reproduced by running JCK test "javasoft.sqe.tests.api.java.lang.Class.GetModifiersTests -TestCaseID ALL"
using C2 -Xcomp.   A suggested fix is provided.



  xxxxx@xxxxx   2005-07-15 00:08:19 GMT
Work Around
N/A
Evaluation
Yes, that's a bug, and the suggested fix is correct.
  xxxxx@xxxxx   2005-07-15 05:01:45 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang