Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31571 > unrolled thread

Re: What is this? (Java syntax)

Started byJeff Higgins <jeff@invalid.invalid>
First post2015-04-14 14:13 -0400
Last post2015-04-14 14:13 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: What is this? (Java syntax) Jeff Higgins <jeff@invalid.invalid> - 2015-04-14 14:13 -0400

#31571 — Re: What is this? (Java syntax)

FromJeff Higgins <jeff@invalid.invalid>
Date2015-04-14 14:13 -0400
SubjectRe: What is this? (Java syntax)
Message-ID<mgjlc6$d3e$1@dont-email.me>
On 04/14/2015 12:43 PM, Stefan Ram wrote:
>    I found this on a web page:
>
> private enum WinRegistryMethod {
>      OpenKey("WindowsRegOpenKey", int.class, byte[].class, int.class) {
>          @Override
>          protected void verifyReturnValue(Object retValue)
>          ...
>
>    What is the part beginning at »OpenKey«?
>
>    I would understand this if there was a »new« in front of
>    »OpenKey«. In this case, it would be an instance creation
>    expression (anonymous inner class). But there is no »new«.
>
>    According to the web page, the above code is Java code and it
>    seems to have been used successfully. Do I miss some part of
>    the Java syntax?
>
>    Or maybe, the »new« was in the source code of the poster and
>    got lost for some technical reason?
>
Someone suggests running reg might be a more robust solution.
<https://technet.microsoft.com/en-us/library/cc732643.aspx>

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web