The Artima Developer Community
Sponsored Link

Java Buzz Forum
Errata to my friends idea for Java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic    
Flat View: This topic has 0 replies on 1 page
Mats Henricson

Posts: 55
Nickname: matsh
Registered: May, 2003

Mats Henricson is interested in too much
Errata to my friends idea for Java Posted: Jun 25, 2003 11:47 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mats Henricson.
Original Post: Errata to my friends idea for Java
Feed Title: Code:Q
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Mats Henricson's weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Mats Henricson
Latest Posts From Code:Q

Advertisement


There is one catch with my code example, and that is that someone can introduce a new bar() function in a class called hostiletakeover.com.acme.FriendlyClass. The fix for that would be to use "== 0" instead of "!= -1" in callerIs(), or use the more specific getClassName() and getMethodName() functions. But I would assume there are other ways around such checks anyway.

Read: Errata to my friends idea for Java

Topic: ctl+shift+v in IDEA Previous Topic    

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use