JDK-4268000 : java.lang.reflect.Modifer vague wrt constants from classfile spec
  • Type: Enhancement
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-09-02
  • Updated: 2000-09-07
  • Resolved: 2000-09-07
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 09/01/99


java.lang.reflect.Modifier defines constants like
ABSTRACT as an int - but does the value of ABSTRACT
have to be 0x0400 as it is in the classfile spec?

Suggestion: state in the javadoc for Modifier that the
constants are derived from the classfile spec.

I hope this isn't too picky but it seems that the class might
as well state this...


References - the classfile spec:

http://www.javasoft.com/docs/books/vmspec/html/ClassFile.doc.html

And one bug id that I hope you don't close this as a dup of :)

4105333

-------------

9/1/99 eval1127@eng -- 4105333 does seem to have the same subject, but its claimed fix is both unverified and undocumented (no ref to where/when fixed).  
FIling new bug, even if only FYI...
(Review ID: 94692) 
======================================================================

Comments
WORK AROUND Name: krT82822 Date: 09/01/99 Define classfile constants yourself or experiment and see if they match. ======================================================================
11-06-2004