Java类文件格式的注释规范?(Annotations Specification in Java Class File format?)
我正在阅读Java 6的Java虚拟机规范第二版。但我发现它没有Java类文件格式的注释细节。 虽然jvm 6可以识别注释。 另一个问题是,像其他羽毛一样,ACC_BRIDGE标志在虚拟机规范第二版中未提及,但出现在Java 7虚拟机规范中。 告诉我为什么? 这些功能似乎是由JVM 6接受但是为什么不在java 6规范中提及它。 我错过了什么?
I am reading Java Virtual Machine Specification second edition for Java 6. But I found it no annotation detail for Java Class File Format. Although the jvm 6 can recognise the annotation. another question is there also like other feathers like ACC_BRIDGE flag not mention in Virtual machine Specification second edtion but appeared in Java 7 Virtual machine Specification. Tell me why? those features seems like accept by JVM 6 But why didn't metion it in java 6 specification. What I missed?
原文:https://stackoverflow.com/questions/9971829
最满意答案
是的 - 这是要走的路。 在德语Windows上,
Environment.SpecialFolder.ProgramFiles
设置将返回C:\Programme
,而Environment.SpecialFolder.CommonProgramFiles
将返回C:\Programme\Gemeinsame Dateien
(或类似的东西 - 我总是自己使用C:\Programme\Gemeinsame Dateien
Windows)。不要硬编码 - 使用Environment.SpecialFolders!
渣子
Yes - that's the way to go. On a German Windows, the
Environment.SpecialFolder.ProgramFiles
setting would returnC:\Programme
, and theEnvironment.SpecialFolder.CommonProgramFiles
would returnC:\Programme\Gemeinsame Dateien
(or something similar - I always use US-English Windows myself).Don't hardcode - use the Environment.SpecialFolders!
Marc
相关问答
更多-
http://msdn.microsoft.com/en-us/library/77zkk0b6.aspx 试试这些: Environment.GetEnvironmentVariable("SystemRoot") Environment.GetEnvironmentVariable("windir") http://msdn.microsoft.com/en-us/library/77zkk0b6.aspx Try these: Environment.GetEnvironmentVariable( ...
-
本地系统帐户是系统中功能最强大的用户,甚至比管理员帐户更强大。 因此,虽然我从未尝试过您所描述的内容,但我希望本地系统帐户具有足够的权限。 Local System Account is the most powerful user on the system, even more powerful than administrator accounts. So, whilst I have never attempted what you describe, I would expect that Loc ...
-
没有 - 与文件系统不同,没有必要使用这种方法,因为注册管理机构有一些标准化的位置。 您应该按照以下格式将数据存储在密钥中: HKEY_HIVE\SOFTWARE\Publisher\Program 例如: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 如果你需要数据在整个机器上是全局的,把你的东西放在HKEY_LOCAL_MACHINE里面,但是请注意写入这个位置需要管理权限,除非你修改密钥上的DACL以表现不同的行为(以某种形式的安装程序或类似的东西)。 如 ...
-
是的 - 这是要走的路。 在德语Windows上, Environment.SpecialFolder.ProgramFiles设置将返回C:\Programme ,而Environment.SpecialFolder.CommonProgramFiles将返回C:\Programme\Gemeinsame Dateien (或类似的东西 - 我总是自己使用C:\Programme\Gemeinsame Dateien Windows)。 不要硬编码 - 使用Environment.SpecialFolde ...
-
存储小键值对: Xamarin.Forms实现Application.Current.Properties ,它将关键值数据存储在应用程序的本地存储中,对这些键值对的访问对于只存储它们的应用程序是安全的。 存储文件/数据库(Sqlite): 每个平台都有自己的文件夹结构来存储应用程序特定的数据/文件。 Android : Environment.SpecialFolder.Personal & MyDocuments都映射到: /data/data/@PACKAGE_NAME@/files Environm ...
-
在Mac OSX中,应用程序首选项通过NSUserDefaults自动存储,并将它们保存到.plist文件~/Library/Preferences/ 。 你不需要对这个文件做任何事情,NSUserDefaults会为你处理所有事情。 如果您在非文档应用程序(例如AddressBook.app)中有数据文件,则应将其存储在~/Library/Application Support/Your App Name/ 。 没有内置的方法来查找或创建此文件夹,您需要自己做。 这里有一个来自我自己的应用程序的例子,如果 ...
-
要获得驱动器,请使用Path.GetPathRoot 。 请参阅http://msdn.microsoft.com/en-us/library/system.io.path.getpathroot.aspx var root = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.Windows)); To get the drive, use Path.GetPathRoot. See http://msdn.micr ...
-
如何获取(逻辑)桌面(C#)上的项目总数(How to get the total number of items on the (logical) desktop (C#))[2023-09-13]
Windows外壳对此有全面和全面的支持。 调用SHGetDesktopFolder()以获取桌面的IShellFolder 。 调用IShellFolder::EnumObjects()来获取内容。 此代码项目文章从C#视角给出了一些使用示例。 I'm answering for myself the answer I finally found out with the help of tips and links posted here. private const uint GET_ITEM ... -
是的,它确实。 您可以通过更新该文件夹的相应注册表项来自行测试。 看下...... HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Shell文件夹 Yes it does. You can test this out yourself by updating the corresponding registry entry for the folder. Look under ... HKEY ...
-
我99%肯定这会归结为权限问题。 在IIS7中,有一个名为AppPoolIdentity的新“用户”,它是应用程序池的默认标识。 此用户的权限低于IIS 6中的默认值。 我可以重现你的问题,我必须将我的AppPool设置为LocalSystem或具有管理权限的特定用户运行,以检索Environment.SpecialFolder.InternetCache,当我查看相关文件夹并查看其权限时这是有意义的。 请注意,运行具有更高权限的IIS应用程序池存在安全问题。 I'm 99% sure this is go ...