GCC Bugzilla – Attachment 10503 Details for
Bug 25429
can't see private static final int CREATE = 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
attachment.cgi (text/plain), 1.06 KB, created by
Andrew Haley
on 2005-12-15 16:32:02 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Andrew Haley
Created:
2005-12-15 16:32:02 UTC
Size:
1.06 KB
patch
obsolete
>2005-12-13 Andrew Haley <aph@redhat.com> > > * parse.y (resolve_expression_name): Don't generate accessor > methods for initialized static final variables. > >Index: java/parse.y >=================================================================== >--- java/parse.y (revision 108423) >+++ java/parse.y (working copy) >@@ -9584,8 +9584,12 @@ > > /* If we're processing an inner class and we're trying > to access a field belonging to an outer class, build >- the access to the field. */ >- if (nested_member_access_p (current_class, decl)) >+ the access to the field. >+ As usual, we have to treat initialized static final >+ variables as a special case. */ >+ if (nested_member_access_p (current_class, decl) >+ && ! (JDECL_P (decl) && CLASS_FINAL_VARIABLE_P (decl) >+ && DECL_INITIAL (decl) != NULL_TREE)) > { > if (!fs && CLASS_STATIC (TYPE_NAME (current_class))) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25429
: 10503