• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Object[].method() calls in 1.5

 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reading the class files produced by 1.5, I noticed that since 1.5 it's now okay to use arrays class types when calling methods on arrays. In 1.4, and earlier, calling Object[].toString() would create a invokemethod instruction with class_index pointing to 'java.lang.Object', but in 1.5 it would actually point to '[Ljava.lang.Object;'. Was there any [known] reason to change this, given that the methods for the array objects can still not be overridden ?

Thanks !
 
reply
    Bookmark Topic Watch Topic
  • New Topic