The Artima Developer Community
Sponsored Link

Java Buzz Forum
re: SourceDir should be a standard class attribute

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   Next Topic
Flat View: This topic has 0 replies on 1 page
Vlad Roubtsov

Posts: 20
Nickname: vladr
Registered: May, 2003

Vlad Roubtsov is a Java Q&A columnist for JavaWorld
re: SourceDir should be a standard class attribute Posted: Jul 29, 2003 4:54 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Vlad Roubtsov.
Original Post: re: SourceDir should be a standard class attribute
Feed Title: Java Curiosity Shop
Feed URL: http://www.blog-city.com/bc/
Feed Description: Java esoterics: things from "don't try this at home" category
Latest Java Buzz Posts
Latest Java Buzz Posts by Vlad Roubtsov
Latest Posts From Java Curiosity Shop

Advertisement
In response to this comment by euxx: >It would be a bad idea to stick your sources to directory on someone else's computer. I don't think my suggestion was to "stick" anything to directories on other computers. When you compile, the sources are already on your computer somewhere. A number of tools could benefit from looking up SourceDir shortly after a compile and getting access to the source without the user having to specify this location in a manual/non-standard way. If the source file is found at that location (and its timestamp makes sense), use it. If no file is found, don't do anything. This is analogous to LineNumberTable attribute and a few others: in many cases you can only use the information in that attribute if you have access to the original source (and of the version that was used during the compile). If you don't have the source, the attribute is of limited use. Same with SourceDir. It should be thought of as an optional debug information like LineNumberTable, LocalVariableTable, etc.  

Read: re: SourceDir should be a standard class attribute

Topic: Laws of Software Complexity Previous Topic   Next Topic Topic: Sublinking

Sponsored Links



Google
  Web Artima.com   

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