OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Updated proposal for JAVA-42: Incorrect examples of methods annotated @Init and @Destroy


Hi,

 

I would like to present an updated proposal for http://www.osoa.org/jira/browse/JAVA-42

 

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

Updated proposal:

 

The updated line numbers are based on Committee Draft 01 - 03 October 2008

 

Section 8.9: @Destroy - Line 1202

1202 void myDestroyMethod() {

 

Section 8.12: @Init - Line 1278

1278 public void myInitMethod() {

 

 

 

The restriction on making @Init and @Destroy methods public has been removed and the methods can now have any access modifier (See lines 1192-1193 and 1269-1270)

 

In the latest version of the specification, the @Init marked method (line 1278) is already marked as public so one of these changes has already been applied.

 

To ensure consistency across the two examples, it would be worth making the @Destroy method public as well.

 

I would like to propose the following:

 

Resolve JAVA-42 by adding the word "public" at the start of line 1202

 

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

 

Thanks,

 

Mark

Mark Combellack| Software Developer| Avaya | Eastern Business Park | St. Mellons | Cardiff | CF3 5EA | Voice: +44 (0) 29 2081 7624 | mcombellack@avaya.com

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]