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 19392 Details for
Bug 86167
[1.5] Add support for package-info.java
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_86167.txt (text/plain), 1.80 KB, created by
Olivier Thomann
on 2005-03-30 23:08:28 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-03-30 23:08:28 EST
Size:
1.80 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java,v >retrieving revision 1.43 >diff -u -r1.43 CompilationUnitDeclaration.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 10 Mar 2005 16:28:15 -0000 1.43 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration.java 31 Mar 2005 04:08:07 -0000 >@@ -280,13 +280,15 @@ > if (this.currentPackage != null) { > if (this.currentPackage.annotations != null) { > if (CharOperation.equals(this.getMainTypeName(), TypeConstants.PACKAGE_INFO_NAME)) { >- // resolve annotations >- final TypeDeclaration syntheticTypeDeclaration = types[0]; >- syntheticTypeDeclaration.resolve(this.scope); >- resolveAnnotations(syntheticTypeDeclaration.staticInitializerScope, this.currentPackage.annotations, this.scope.fPackage); >- // set the synthetic bit >- syntheticTypeDeclaration.binding.modifiers |= AccSynthetic; >- startingTypeIndex = 1; >+ if (this.types != null) { >+ // resolve annotations >+ final TypeDeclaration syntheticTypeDeclaration = types[0]; >+ syntheticTypeDeclaration.resolve(this.scope); >+ resolveAnnotations(syntheticTypeDeclaration.staticInitializerScope, this.currentPackage.annotations, this.scope.fPackage); >+ // set the synthetic bit >+ syntheticTypeDeclaration.binding.modifiers |= AccSynthetic; >+ startingTypeIndex = 1; >+ } > } else { > scope.problemReporter().invalidFileNameForPackageAnnotations(this.currentPackage.annotations[0]); > }
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 86167
:
18261
|
18292
|
18609
|
18611
|
18649
| 19392