Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 32636 Details for
Bug 122995
[1.5][compiler] Access rules don't apply to generic types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch that fixes the problem by checking restrictions on erased type
generic-access-rules.patch (text/plain), 887 bytes, created by
Matt McCutchen
on 2006-01-06 22:11:47 EST
(
hide
)
Description:
Patch that fixes the problem by checking restrictions on erased type
Filename:
MIME Type:
Creator:
Matt McCutchen
Created:
2006-01-06 22:11:47 EST
Size:
887 bytes
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java,v >retrieving revision 1.56 >diff -u -r1.56 ASTNode.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java 4 Jan 2006 13:31:52 -0000 1.56 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java 7 Jan 2006 03:12:02 -0000 >@@ -365,7 +365,7 @@ > } > > if (refType.hasRestrictedAccess()) { >- AccessRestriction restriction = scope.environment().getAccessRestriction(type); >+ AccessRestriction restriction = scope.environment().getAccessRestriction(type.erasure()); > if (restriction != null) { > scope.problemReporter().forbiddenReference(type, this, restriction.getMessageTemplate(), restriction.getProblemId()); > }
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 122995
:
32636
|
32973